cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with JCO

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

Cau tell me the basic difference amoung SalesOrder,QuatationOrder,PurchageOrder

regards

Guru

Former Member
0 Kudos

Hi Guru,

<b>Sales Order</b> - This provides data for building queries related to sales volumes. It contains data about sales orders, sales contracts, complaints (credit memos, debit memos, returns and substitute deliveries) at item level. This enables you to monitor the number of incoming orders and open contracts.

<b>Purchase order</b> - This provides the manager or strategic buyer with an overview of purchase orders for a certain cost center, vendor, product, contract etc.

<b>Quotation order</b> - This figure informs you of the number of sales orders that were created from quotations, that is, the number of quotations that were converted into sales orders.

Hope it helps,

Regards,

Nagarajan.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi guru

You can get a step by step guide of calling a bapi from JCO program . please follow this link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933...

And there is a sample application also provided which you can download

https://www.sdn.sap.com/irj/sdn/softwaredownload?download=/irj/servlet/prt/portal/prtroot/com.sap.km...

hope this helps, please do not forget to rewards points

regards

rajeshkr

Former Member
0 Kudos

hi,

i am using sapgui for running bapis,i can identify what are the import parameters .But i donot KNOW what are the values we have to set for particular bapi. for example in BAPI_SALESORDER_CREATEFROMDAT2 we have to set value for structure ORDER_PARTNERS of PARTN_ROLE as "AG".

this is my problem

Former Member
0 Kudos

my requirment is deliver material for a salesorder and change the status .please tell me the procedure.

regards

Guru

former_member182372
Active Contributor
0 Kudos

Hi Guru,

To get list of import parameters you have several options:

1) Go to SAP GUI and call SE37 transaction. You will see all related information;

2) Generate enterprise SAP Enterprise Connector proxy (http://help.sap.com/saphelp_nw04/helpdata/en/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm) and use them in your Java application;

3) Explore metadata for functional module using JCo (http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm)

What is BAPI_SVCHANGE_CHANGE_STATUS doing (accroding to http://www.planetsap.com/LIST_ALL_BAPIs.htm) <i>Enter Count Quantity and Change Item Status from A to B or C</i>

Best regards, Maksim Rashchynski.