on 11-15-2010 3:18 PM
I try to make the bapi BAPI_SCEC_CREATE working but still no succes
I also had a good reference at
but still I get error messages that I can't place
my coding
ls_header-BUSINESSPROCESS = '00000000000000000000000000000001'.
ls_header-PROCESS_TYPE = 'SHC'.
ls_header-SUBTYPE = 'ER'.
ls_header-DOC_DATE = sy-datum.
ls_header-DESCRIPTION = 'testing bapi '.
ls_header-CURRENCY = 'EUR'.
ls_items-ITEM_GUID = '00000000000000000000000000000001'.
ls_items-PARENT = '00000000000000000000000000000001'.
ls_items-PRODUCT_GUID = '00000000000000000000000000000000'.
ls_items-ITEM_NUMBER = '0000000001'.
ls_items-DESCRIPTION = 'test'.
ls_items-CATEGORY_GUID = '3B64D7638F61A9E8E100000091640C09'.
ls_items-CATEGORY_ID = 'APPA-02'.
ls_items-catalogid = 'EFALG'.
ls_items-product_type = '01'.
*ls_items-LOGSYS_FI = 'BASET1055'.
ls_items-LOGSYS_FI = 'SOBEK055'.
ls_items-PRODUCT_SRC_SYS = 'SOBEK055'.
ls_items-QUANTITY = '1'.
ls_items-CURRENCY = 'EUR'.
ls_items-unit = 'ST'.
ls_items-gross_price = '500.0000'.
ls_items-price_unit = '1'.
ls_items-deliv_date = sy-datum.
ls_items-product_type = '01'.
ls_items-be_doc_type = 'CB'.
ls_items-be_plant = '2800'.
ls_items-be_pur_group = '280'.
ls_items-be_pur_org = '2800'.
ls_items-be_po_price = '1'.
append ls_items to lt_items.
ls_acc-PARENT_GUID = '00000000000000000000000000000001'.
ls_acc-GUID = '00000000000000000000000000000001'.
ls_acc-DISTR_PERC = 100.
ls_acc-ACC_NO = '0001'.
ls_acc-ACC_CAT = 'OR'.
ls_acc-G_L_ACCT = '44340'.
ls_acc-ORDER_NO = '2816100'.
ls_acc-CO_AREA = '2800'.
*ls_acc-BUS_AREA = '2800'.
ls_acc-PROFIT_CTR = '2816'.
append ls_acc to lt_acc.
Leverancier
ls_bup-PARENT_GUID = '00000000000000000000000000000002'.
ls_bup-PARTNER_GUID = '41CACEAA9C7B00680000000091640C6D'.
ls_bup-PARTNER_FCT = '19'.
ls_bup-MAINPARTNER = 'X'.
ls_bup-ADDR_TYPE = '1'.
ls_bup-ADDR_ORIGIN = 'A'.
ls_bup-partner = '552'.
append ls_bup to lt_bup.
Aanvrager
ls_bup-PARENT_GUID = '00000000000000000000000000000002'.
ls_bup-PARTNER_GUID = '3D17BC3E94564126E100000091640C09'.
ls_bup-PARTNER_FCT = '16'.
ls_bup-MAINPARTNER = 'X'.
ls_bup-ADDR_TYPE = '3'.
ls_bup-ADDR_ORIGIN = 'A'.
ls_bup-partner = '3000000121'.
append ls_bup to lt_bup.
Goederenontvanger
ls_bup-PARENT_GUID = '00000000000000000000000000000002'.
ls_bup-PARTNER_GUID = '3D17BC3E94564126E100000091640C09'.
ls_bup-PARTNER_FCT = '20'.
ls_bup-MAINPARTNER = 'X'.
ls_bup-ADDR_TYPE = '3'.
ls_bup-ADDR_ORIGIN = 'A'.
ls_bup-partner = '3000000121'.
append ls_bup to lt_bup.
Edited by: A. de Smidt on Nov 15, 2010 4:20 PM
Edited by: A. de Smidt on Nov 15, 2010 4:22 PM
I had to include the leading zeros at
ls_bup-PARTNER_FCT = '19'.
so
ls_bup-PARTNER_FCT = '00000019'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
and second part
Aanleveringsadres
ls_bup-PARENT_GUID = '00000000000000000000000000000002'.
ls_bup-PARTNER_GUID = '3D0D115408A6C86CE100000091640C09'.
ls_bup-PARTNER_FCT = '27'.
ls_bup-MAINPARTNER = 'X'.
ls_bup-ADDR_TYPE = '1'.
ls_bup-ADDR_ORIGIN = 'B'.
ls_bup-partner = '3000000091'.
append ls_bup to lt_bup.
Standplaats
ls_bup-PARENT_GUID = '00000000000000000000000000000002'.
ls_bup-PARTNER_GUID = '40E85BC15AD7006E0200000091640C09'.
ls_bup-PARTNER_FCT = '75'.
ls_bup-MAINPARTNER = 'X'.
ls_bup-ADDR_TYPE = '1'.
ls_bup-ADDR_ORIGIN = 'A'.
ls_bup-partner = '3000000234'.
append ls_bup to lt_bup.
ls_org-PARENT_GUID = '00000000000000000000000000000002'.
ls_org-PROC_ORG_OT = 'O'.
ls_org-PROC_ORG_ID = '50004634'.
ls_org-PROC_GROUP_OT = 'O'.
ls_org-PROC_GROUP_ID = '50004635'.
append ls_org to lt_org.
CALL FUNCTION 'BAPI_SCEC_CREATE'
EXPORTING
i_header = ls_header
I_HEADER_CUST =
I_TESTRUN = 'X'
IMPORTING
E_HEADER = ls_e_header
E_HEADER_CUST =
TABLES
I_ITEMS = lt_items
I_ITEMS_CUST =
I_ACC = lt_acc
I_ACC_CUST =
I_BUP = lt_bup
I_LIMIT =
I_ORG = lt_org
I_TEXTS =
I_ATTACH =
I_ADDON_FIELDS =
E_ITEM = lt_e_items
E_ITEMS_CUST =
E_ACCOUNT =
E_ACCOUNT_CUST =
E_PARTNER = lt_e_partner
E_TEXT =
E_LIMIT =
E_ORGDATA =
E_STATUS =
E_ATTACH =
RETURN = lt_return.
.
BREAK-POINT.
and the errors I get back
BBP_PD 540 System BASET1055 of purch. organization Inkooporganisatie 1600 differs from doc. reference
BBP_TAX 006 Data inconsistency during tax calculation
BBP_TAX 013 Not possible to calculate tax
BBP_PD 358 Select a location to which a plant has been assigned
BBP_PD 428 Enter exactly one partner of type Requester
BBP_PD 429 Enter at least one partner of type Goods Recipient Or Goods Recipient
I can't for instance find the fields where the taxcalculation is filled in.
the first error also puzzles me since I make a purch requist for 2800
I copied most of the data out of bbp_pd from an existing shoppingcart.
the last 2 are also strange since I have checked it and the partners are in the table passed to the bapi
any body got a clue where I make the error ?
and why is return not working any more ?
kind regards
arthur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hmmmm still nobody got any clue ?
I also looked at
about the assignment of the guid and parent guid but still that is not totally comparable with the bapi
is there any reference somewhere what is the best function or bapi recommended by sap to create you're own shoppingcarts through rfc where you can also add account assignment ?
Is BBP_PD_SC_CREATE enough or perhaps BBP_PD_SC_CREATE_EXTERNAL together with BBP_PD_SC_UPDATE ?
or is there somewhere on this planet some documentation or example of BAPI_SCEC_CREATE ?
kind regards
arthur
User | Count |
---|---|
1 | |
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.