Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 03, 2006 at 12:30 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • May 03, 2006 at 10:10 AM

    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) Enter Count Quantity and Change Item Status from A to B or C

    Best regards, Maksim Rashchynski.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 03, 2006 at 10:17 AM

    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-933e247d3ba4

    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.cm.docs/business_packages/a1-8-4/jra_flightbooking.zip

    hope this helps, please do not forget to rewards points

    regards

    rajeshkr

    Add comment
    10|10000 characters needed characters exceeded