Current Position:Home > Update Likp table from HUPAST

Update Likp table from HUPAST

Update:11-30Source: network consolidation
Advertisement
I've a scenerio where i've to updated LIKP table, when user save the HUPAST. I've created the BDC program which update the likp table using VL02N transacton. but when i'm calling the BDC from a BADI its giving a error, as i'm trying to update the same delivery number. (Delivery already updated by user).
I'm now trying using events, i've traced an event CHANGED in object type LIKP , which is fired when HUPAST is saved.
How do i update the event changed ??? and call the bdc program from the event.
pls share .
Sanju

The Best Answer

Advertisement
hi,
You can do it PAI under module USER_COMMAND. and you can use standard UPDATE/MODIFY/DELETE statements to update ur database table and make sure u use a commit work after the use of ablove mentioned statements.
kindly check this.
PROCESS BEFORE OUTPUT.
MODULE status_9010.
LOOP WITH CONTROL tab_control.
MODULE move_data_to_table.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP WITH CONTROL tab_control.
MODULE move_data_from_table.
ENDLOOP.
*& Module move_data_to_table OUTPUT
This is to move the data from the internal table to the table control
MODULE move_data_to_table OUTPUT.
This is to move the data from the internal table to the table control
zmpets_mode-modecode,zmpets_range-rangeid,zmpets_servfacto-factor are column name of table control
READ TABLE int_factor INDEX tab_control-current_line.
IF sy-subrc = 0.
zmpets_mode-modecode = int_factor-modecode.
zmpets_range-rangeid = int_factor-rangeid.
zmpets_servfacto-factor = int_factor-factor.
ENDIF.
ENDMODULE. " move_data_to_table OUTPUT
*& Module move_data_from_table INPUT
Date is moved from the table control to the Internal Table
MODULE move_data_from_table INPUT.
To move the data from the table control to internal table 'INT_FACTOR'.
int_factor-modecode = zmpets_mode-modecode.
int_factor-rangeid = zmpets_range-rangeid.
int_factor-factor = zmpets_servfacto-factor.
*here if the data is there, it will modify
MODIFY int_factor INDEX tab_control-current_line.
IF sy-subrc NE 0. "data not exixting in table control . ie new data, then append it
APPEND int_factor.
CLEAR int_factor.
ENDIF.
ENDMODULE. " move_data_from_table INPUT
Also refer to this link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
<b>Reward points if found helpful…..
Cheers,
Chandra Sekhar.</b>
  • Update Likp table from HUPAST Update:11-30

    I've a scenerio where i've to updated LIKP table, when user save the HUPAST. I've created the BDC program which update the likp table using VL02N transacton. but when i'm calling the BDC from a BADI its giving a error, as i'm trying to update the sam

  • Update LIKP table while saving the output type in VT02N transaction Update:10-11

    Hi All, I have a requirement where i have to update Delivery Priority(LPRIO) field in LIKP table while saving the output type in VT02N transaction. I am not able to use the BAPI "BAPI_OUTB_DELIVERY_CHANGE" or FM "WS_DELIVERY_UPDATE" be

  • LIKP table updation using the IDOC_INPUT_DESADV1 Update:11-30

    Hi, Please help me when and where the LIKP table is updating using the FM IDOC_INPUT_DESADV1. I debugged the program several times even though i couldnt able to find the updation part. Further to the above wherer exactly the idoc number is generratin

  • Update MKPF , LIKP table Update:11-30

    Hi All, my requirement is to update a field i.e TCODE2 in MKPF table, I can update directly But SAP do not recommend, Is there any other way I can update the field from ABAP program, I also want to update field in LIKP table, please tell me how to up

  • Update LIKP and VBSK table Update:11-30

    Our requirement is to set staging lane ( LGBZO ) and Shipping door ( LGTOR ) for an entire delivery group. For this the VBSK table is appended with the above fields. A new program is to be created where in the user assigns staging lane and shipping d

  • Update value for XABLN in LIKP  table Update:11-30

    Hi , Is there any way to update the LIKP-XABLN filed yhrough BAPI? I tried with this FM    BAPI_OUTB_DELIVERY_CHANGE , but could not succeed. Edited by: nancy coner on Jan 27, 2010 9:39 AMHi, I need to update LIKP-XABLN field from a Smart Form driver

  • BAPI for changing delivery date and delivery time fields in LIKP table Update:10-11

    Hi All,      Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ? Please tell me experts if exists. Thank you, Raghu.try these: BAPI/FM to update LIKP and VTTK tables http://sap.ittoolbox.com/groups/techn

  • Req Help to Update LIKP-LIFSK,Delivery Header block through custom program. Update:11-30

    Hi everyone, Can you please suggest a FM or BAPI to update the delivery header block field, LIFSK, in LIKP table through FM or a BAPI. I tried using 'BAPI_OUTB_DELIVERY_CHANGE' as below to update the LIKP-LIFSK, but it is not working. DATA : ls_likp

  • BAPI to update LIKP and LIPS Update:11-30

    Is there a BAPI to update LIKP and LIPS? ThanksPlease close your post "Updating Address changes" if your question is answered in there. This is related to the same issue you entered there, and again I don't see how you can achieve that. You can

  • Problem in updating LIPS table in outbound delivery user exit Update:11-30

    Hi, I wrote a code in outbound delivery user exit (save document userexit) to update LIPS table. for example XLIPS-LGORT = '0657'. XLIPS-PIMNG = I_LIPS-LFMING (PICKing QUANTITY =  DELIVERY QUANTITY) MODIFY XLIPS TRANSPORTING LGORT PIMNG. After outbou