on 07-18-2013 8:47 AM
Hello Guys,
There are 4 line items in PO, in Account assignment tab there is one custom field, now i want to change the value of custom field in one of the item, when i click copy button, it should copy in all items, can any please help me, how to solve this issue
Thanks
Vijaya
Hi Vijaya,
The BBP_DOC_CHANGE_BADI should help. Place a breakpoint in the badi and see if it stops there once you click on the copy button. If it does then write your code for the rest of the items.
Regards,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Naveen
i have written this code, but its not working, can u please check this code and let me know the solution
READ TABLE lt_acc INTO ls_acc TRANSPORTING guid WITH KEY
guid = wa_acc-guid.
IF sy-subrc = 0.
MOVE ls_acc-zzrks TO ls_acc-zzrks.
MODIFY lt_acc FROM ls_acc. " i am getting error here
ENDIF.
ENDLOOP.
Advance Thanks
Vijaya
Hi Vijaya,
In the BADI BBP_DOC_CHANGE_BADI implementation write the below code.
LOOP AT it_account INTO ls_i_account.
MOVE-CORRESPONDING ls_i_account TO ls_e_account.
* If required move your custom value to ls_e_account
* ls_e_account-zzrks = identified value before the loop call
APPEND ls_e_account TO et_account.
ENDLOOP.
Regards
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.