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

Function module similar to BAPI_GOODSMVT_GETITEMS

Former Member
0 Likes
944

Hi,

My requirement is to get the data from MKPF and MSEG tables.

Selection- screen:

MSEG: matnr, werks, lgort, mtart, bwart.

MKPF: budat.

Report output:

MSEG: matnr, werks, lgort, menge, charg, shkzg.

MKPF: budat, xblnr.

To retrive the data from MKPF and MSEG tables If use in inner joins it takes huge amount of time. For this reason I used Function module 'BAPI_GOODSMVT_GETITEMS'.

I can pass all the select options into func. module.

I can retrive all the information from the function module except field SHKZG(Debit/Credit Indicator).

I am getting item data into the table BAPI2017_GM_ITEM_SHOW. But, SHKZG(Debit/Credit Indicator) filed is not available in this structure.

Please provide me if there any other fucntion module similar to this where in I can pass my selection screen data and retrieve required information to be displayed in output.

Or else please provide me the solution to retrieve data from MKPF & MSEG which takes less amount of time.

Regards,

vinod

2 REPLIES 2
Read only

Former Member
0 Likes
583

Hi,

Use these field MAT_DOC DOC_YEAR MATDOC_ITM from the structure BAPI2017_GM_ITEM_SHOW

and get the data from the SHKZG.

You have the whole primary key of table MSEG..then this should not be the performance issue.

Read only

Former Member
0 Likes
583

I used view for this.