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: 

Doubt about BAPI FM

Former Member
0 Kudos

Hi ALL

Can any body tell me how this FM works..

Can i use it to get the Scheduling agreement details from this

CALL FUNCTION 'BAPI_PO_GETDETAIL'

EXPORTING

PURCHASEORDER = W_EBELN

ITEMS = 'X'

  • ACCOUNT_ASSIGNMENT = ' '

  • SCHEDULES = ' '

  • HISTORY = ' '

  • ITEM_TEXTS = ' '

  • HEADER_TEXTS = ' '

  • SERVICES = ' '

  • CONFIRMATIONS = ' '

  • SERVICE_TEXTS = ' '

  • EXTENSIONS = ' '

IMPORTING

PO_HEADER = THEADER

  • PO_ADDRESS =

TABLES

  • PO_HEADER_TEXTS =

PO_ITEMS = TEKPO

  • PO_ITEM_ACCOUNT_ASSIGNMENT =

  • PO_ITEM_SCHEDULES =

  • PO_ITEM_CONFIRMATIONS =

  • PO_ITEM_TEXTS =

  • PO_ITEM_HISTORY =

  • PO_ITEM_HISTORY_TOTALS =

  • PO_ITEM_LIMITS =

  • PO_ITEM_CONTRACT_LIMITS =

  • PO_ITEM_SERVICES =

  • PO_ITEM_SRV_ACCASS_VALUES =

  • RETURN =

  • PO_SERVICES_TEXTS =

  • EXTENSIONOUT =

.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Just pass the PO number the BAPI will get everything else for you.

CALL FUNCTION 'BAPI_PO_GETDETAIL1'
      EXPORTING
        purchaseorder = gs_tagpo_exists-ebeln
      IMPORTING
        poheader      = gs_bapipo_header
      TABLES
        return        = gt_bapipo_return
        poitem        = gt_bapipo_item
        poschedule    = gt_bapipo_schedule
        poaccount     = gt_bapipo_account.

Cheers

VJ

2 REPLIES 2

Former Member
0 Kudos

Just pass the PO number the BAPI will get everything else for you.

CALL FUNCTION 'BAPI_PO_GETDETAIL1'
      EXPORTING
        purchaseorder = gs_tagpo_exists-ebeln
      IMPORTING
        poheader      = gs_bapipo_header
      TABLES
        return        = gt_bapipo_return
        poitem        = gt_bapipo_item
        poschedule    = gt_bapipo_schedule
        poaccount     = gt_bapipo_account.

Cheers

VJ

former_member188685
Active Contributor
0 Kudos

Yes you can use the same to get the Scheduling agreement details