‎2012 Dec 05 8:34 AM
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
‎2012 Dec 06 11:59 AM
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
‎2012 Dec 06 11:59 AM
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
‎2012 Dec 06 12:07 PM
It is not possible, instead use combination of the below functions
BAPI_FUNCLOC_GETDETAIL
BAPI_FUNCLOC_GETLIST
BAPI_FUNCLOC_GETSTATUS
‎2012 Dec 07 6:35 AM
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
‎2012 Dec 07 7:00 AM
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.
‎2012 Dec 07 11:19 AM
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
‎2012 Dec 07 11:32 AM
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
‎2012 Dec 07 12:06 PM
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