Skip to Content
avatar image
Former Member

Can we pass the layout name to fetch the data of limited fields from RIAUFK20?

Hi All,

I wrote a BAPI, to fetch the data from the transaction IW39 to fetch Maintenance work orders by using Submit program. It is working fine. but, i want to pass the layout name and fetch only those fields which are in the layout.

Can we do it?

i checked the same but the SAP code's logic is such a way that it wont use Layout option if the selmod = D.

kindly check the images added.

The First image is when running a BAPI. where the g_selmod = D which is compared with the default value selmod_d = D. Because of this logic we are unable to fetch the data with limited fields by using layout option.

The second image is when we run the transaction code IW39.. the values will be like this.

g_selmod = 0 which is compared with selmod_d = D.

when sy-subrc = 0. comes out of the loop. which helps us to fetch the data according to the layout.

Could anyone has the solution to get the limited fields data using the BAPI?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers