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

Bapi and Function Module

Former Member
0 Likes
304

Hi,

I'm working on some PM realted stuff, in which i need to use BAPI_ALM_ORDER_GET_DETAIL

where i need some fields from export parameters, giving the input as order number.

But it is exporting a structure, so i'm not sure how to get the fields from the structure(i.e,

How to retrive data from the structure ),

since i could get data only from table or internal table.

SO please guide me in getting data from this structure

Or how can i assign this structure to the Interanl table or some how to retrive data.

In short guide me how to use this function module, to retrive data like order type, location, plant and many other stuff.

Thanks and regards

Rich

1 REPLY 1
Read only

Former Member
0 Likes
286

if the exporting parameters are like structure, it means its header data.

Define any structure as type of BAPI structure. use the function module. you will have all the header data in that structure. Structure means a single string of data with different components. So you can use this data directly.

e.g.

ES_HEADER structure, you want to use plant field.

Simply use it as ES_HEADER-PLANPLANT