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: 

error in bapi_po_getdetail

Former Member
0 Kudos

Hi all,

I am using BAPI_PO_GETDETAIL to get required data. cODE IS

data: po_items type table of bapiekpo with header line.

data: po_item_schedules type table of BAPIEKET with header line.

data: PO_ITEM_TEXTS type table of BAPIEKPOTX with header line.

data: PO_ITEM_ACCOUNT_ASSIGNMENT type table of BAPIEKKN

with header line.

data: PO_HEADER_TEXTS type table of BAPIEKKOTX with header line.

data: PO_HEADER type BAPIEKKOL.

data: return1 type table of BAPIRETURN with header line.

parameters: p_ebeln type ekko-ebeln.

call function 'BAPI_PO_GETDETAIL'

exporting

purchaseorder = p_ebeln

ITEMS = 'X'

  • ACCOUNT_ASSIGNMENT = ' '

  • SCHEDULES = ' '

  • HISTORY = ' '

  • ITEM_TEXTS = ' '

  • HEADER_TEXTS = ' '

  • SERVICES = ' '

  • CONFIRMATIONS = ' '

  • SERVICE_TEXTS = ' '

  • EXTENSIONS = ' '

IMPORTING

PO_HEADER = PO_HEADER

  • PO_ADDRESS =

tables

  • PO_HEADER_TEXTS = PO_HEADER_TEXTS

po_items = po_items

  • PO_ITEM_ACCOUNT_ASSIGNMENT = ITEMACCOUNT_ASSIGNMENT

PO_ITEM_SCHEDULES = PO_ITEM_SCHEDULES

  • PO_ITEM_CONFIRMATIONS =

  • PO_ITEM_TEXTS = 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 = RETURN1

  • PO_SERVICES_TEXTS =

  • EXTENSIONOUT =

.

Problum is there is no data in PO_ITEM_SCHEDULES. But there is data in database.

What would be problum?

plese let me know as soon as possible.

Thank you,

shashikanth.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

try this

Schedule = 'X'.

cheers,

sasi

3 REPLIES 3

Former Member
0 Kudos

hi

try this

Schedule = 'X'.

cheers,

sasi

0 Kudos

CALL FUNCTION 'BAPI_PO_GETDETAIL'

EXPORTING

PURCHASEORDER =

ITEMS = 'X'

SCHEDULES = 'X'

IMPORTING

PO_HEADER = tabx

PO_ADDRESS = tabx

TABLES

PO_HEADER_TEXTS = tabx

PO_ITEMS = tabx

PO_ITEM_SCHEDULES = tabx.

Former Member
0 Kudos

Hi Sashi,

You are missing SCHEDULES = 'X' in EXPORTING params..

Sri