Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Help with invoking BAPI's --> SWO_CREATE, SWO_INVOKE, SWO_FREE

Former Member
0 Kudos
1,012

Hi All,

I am not very familiar with ABAP and am trying to invoke the following BAPI calls from a Java program and having a hard time. I'm not sure what input parameters to pass into these BAPI's so i can get some data back. Any help with this, is much appreciated.

1. SWO_CREATE

2. SWO_INVOKE   (I am assuming i need to call the SWO_Create first, get some object or object id back & then call SWO_Invoke)

3. SWO_FREE

4. SWO_OBJECT_ID_GET

5. SWO_OBJECT_ID_SET

Thanks,

Sushil

3 REPLIES 3

Former Member
0 Kudos
169

Former Member
0 Kudos
169

dear kumar,

sample scenario: I want to get Detail of PO from BO BUS2012

CALL FUNCTION 'SWO_CREATE'

  EXPORTING

    objtype = 'BUS2012'

    objkey  = po_no

  IMPORTING

    object  = object.

* To call the Method of the BO.
CALL FUNCTION 'SWO_INVOKE'
  EXPORTING
    access    = 'C'   (To call method give C)
    object    = object
    verb      = i_method_name
  IMPORTING
    return    = return
    verb      = verb
  TABLES
    container = lt_container.

complete PO Detail will capture in lt_container, then continue with your business logic.

regards

goudham