Hi everyone,
I have a problem with testing of a BAPI. I am using the Bapi Salesorder_createfromdat2 to create a sales order. Regarding the documentation of this Bapi, I have to put in the mandatory fields (examples in brackets):
ORDER_HEADER_IN :
DOC_TYPE Sales document type (ZSP1)
SALES_ORG Sales organization (S300)
DISTR_CHAN Distribution channel (S3)
DIVISION Division (S3)
ORDER_PARTNERS..:
PARTN_ROLE Partner role, SP sold-to party (AG)
PARTN_NUMB Customer number (3211)
ORDER_ITEMS_IN..:
MATERIAL Material number (SP consulting serv)
As Order_items_in and Order_partners are defined as outputs, when I drag&drop the Bapi, I used the Flip Port function, because the fields in this tables are mandatory. Now when I test the Bapi, I get always the exception "No customer master record exists for customer 3211". When I test the Bapi in the backend (IDTCLNT800) the Bapi is working fine and is creating a sales order.
What is going wrong?
Thank you in advance.
Regards,
Aylin.