Problem with JCO
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.
>>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.