Application Development and Automation 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: 
Read only

Doubt about BAPI FM

Former Member
0 Likes
511

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
Read only

Former Member
0 Likes
467

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
Read only

Former Member
0 Likes
468

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

Read only

Former Member
0 Likes
467

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