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: out put as screen.

Former Member
0 Likes
984

dear all,

i wrote bapi using submit program for the transaction IH06, i have no issues to get multiple records using bapi but whenever my search is specific to get one record a screen is getting displayed of that functional location.. since bapi is used by non-sap i want that record to be displayed in the out put table of the bapi...

could anyone help me on this...

thanks

satish chandra

8 REPLIES 8
Read only

Former Member
0 Likes
919

Guys, the transaction IH06 gives out-put  in the form of the screen when we are fetching single record, i want to skip this form and get that single record in the form of table out-put.

when i debugged the code of IH06, i found there is a variable inside it 'H_LINES' which stores the value of no.of records in our case '1'. If we could increase it by one then we may very well skip the screen and get the out-put in table form through the bapi...

guys please i need ideas on this issue.

thanks & regards

satish chandra

Read only

Former Member
0 Likes
919

Guys, the transaction IH06 gives out-put  in the form of the screen when we are fetching single record, i want to skip this form and get that single record in the form of table out-put.

when i debugged the code of IH06, i found there is a variable inside it 'H_LINES' which stores the value of no.of records in our case '1'. If we could increase it by one then we may very well skip the screen and get the out-put in table form through the bapi...

guys please i need ideas on this issue.

thanks & regards

satish chandra

Read only

0 Likes
919

It is not possible, instead use combination of the below functions

BAPI_FUNCLOC_GETDETAIL

BAPI_FUNCLOC_GETLIST

BAPI_FUNCLOC_GETSTATUS

Read only

0 Likes
919

Thank you Kesavadas,

your suggestion might be helpful for the present scenario but, im working on transactions IP24 (List of Scheduling or Maintenance Plans)

IW29 (list of Notifications)

IW39 (list of Work Orders)

etc...

so the issue remains the same... here... !

regards

Satish Chandra

Read only

0 Likes
919

There is a wild solution , always pass 1 + entries, so that the alv is displayed instead of the transaction. The extra valid "entry" must be appended manually and then deleted later before returning the values.

Read only

0 Likes
919

wow this sounds really interesting kesavadas, could you elaborate on this by giving example.

this is what i do in my code.

 

SUBMIT riqmel40 " submit program using values

WITH datuv EQ ivnotif_datefrom

WITH datub EQ ivnotif_dateto

WITH bukrs IN shbybusinessunit

WITH gsber IN shbybusinessarea

WITH iwerk IN shbyplant

WITH strno IN lsht_200funclocs

WITH equnr IN lsht_200equips

EXPORTING LIST TO MEMORY

AND RETURN.

thanks & regards

Read only

0 Likes
919

What I meant was pass another valid entry during submit. (ie) for example pass another value( may be a hard coded one ) to lsht_200equips always and do not consider this in the data returned. Just said this as you needed an idea. I  feel this must not be done

Read only

0 Likes
919

ohh mann! i am dissapointed. i could have done the same but, while returning, the  screen o/p comes first before the record gets feeded into my table. its some thing like that, then i get the messages no records exist.

thanks & regards