Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with JCO

hi,

This Guru,

i am working as java programmer.My Work is Retrieve Data from SAP.But i am facing so many problems because having less knowledge on SAP.

Can u tell me How to Know the functionality of Particular bapi(eg:BAPI_SVCHANGE_CHANGE_STATUS)and what are the import parameters .

if i know the functoinality and import parameters of bapis then i can write JCO programm. Please help me to do this.

regards

Guru

Former Member
Former Member replied

Hi Guru,

>>BAPI_SALESORDER_CREATEFROMDAT2 we have to set value for structure ORDER_PARTNERS of PARTN_ROLE as "AG".

ORDER_PARTNERS is of type BAPIPARNR which is a structure.

Define a structure with needed fields of same type from BAPIPARNR fields like

DATA: BEGIN OF MYSTRUCT,

PARTN_ROLE TYPE BAPIPARNR-PARTN_ROLE,

END OF MYSTRUCT.

This MYSTRUCT has only one field PARTN_ROLE. Now assign this field as 'AG' and use this MYSTRUCT in calling BAPI_SALESORDER_CREATEFROMDAT2

Hope this helps.

Regards,

Uma

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question