cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Customer fields to the backend

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

dean_hinson2
Active Contributor
0 Kudos

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.