on 06-02-2009 1:58 PM
Can you please help; I am trying to update the backend using BADI BBP_CREATE_BE_PO_NEW
Method FILL_PO_INTERFACE1
Here is the code:
loop at is_sc_document-item ASSIGNING <lfs_item>.
loop at cs_po1_document-it_poitem ASSIGNING <lfs_poitem> where item_GUID = <lfs_item>-guid.
<lfs_poitem>-zzbus_entity = <lfs_item>-zzbus_entity.
<lfs_poitem>-zzbuilding_no = <lfs_item>-zzbuilding_no.
MODIFY cs_po1_document-it_poitem FROM <lfs_poitem>.
endloop.
endloop.
I have checked this link
https://www.sdn.sap.com/irj/scn/wiki?path=/display/srm/bbp_create_be_po_new-CreatePOin+backend but still I am not winning. Is there other way to send these fields?
Thank you in advance
Nonoza
I have tried that Dean but I cannot tell now because I am getting the Runtime Error DBIF_RSQL_SQL_ERROR when trying to insert to the table.
The error comes from this code - function module BBP_ACCOUNT_DB_UPDATE
37 * Insert new account assignments
38 DESCRIBE TABLE ins_account LINES lines.
39 IF lines GT 0.
>>>>> INSERT bbp_pdacc FROM TABLE ins_account.
41 ENDIF.
42 * Changed account assignments
43 DESCRIBE TABLE upd_account LINES lines.
44 IF lines GT 0.
45 UPDATE bbp_pdacc FROM TABLE upd_account.
46 ENDIF.
Please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Since you are using field-symbols, I do not think the MODIFY is required. If you were using a work-area, then the MODIFY would be required. See if that works.
Regards, Dean.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.