‎2009 Jan 02 1:51 PM
Hi,
In my program I have scene where i have to call the transaction ME22N with a PO number. Not only do I have to go that transaction, I have to go there with the 'confirmation' tab open.
So far I can succesfully go to ME22N with my PO number (SET PARAMETER), but i'm yet to figure out how to go that particular tab.
I tried to call the transaction using bdcdata but then its happenning at the background and my program screen is remaining. Am I doing something wrong? I tried to do it in the foreground mode and I can navigate to the desired tab. But I wonder if there is a better and fullproof way to do it.
Plz help
Regards,
Shinjan
‎2009 Jan 02 2:00 PM
Hi,
Do the recording on Tcode ME22N using SHDB tcode and you you come to know how to handle them.
But the better way is not to BDC on Enjoy transaction instead try to use the ME22 or BAPI/FM.
‎2009 Jan 02 2:14 PM
I think BDC is the only way ,have u tried the bdc with error mode?i think it should work.
i have done bdc for me23 in one of my program:
perform bdc_dynpro using 'SAPMM06E' '0105'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'RM06E-BSTNR' lt_data-ebeln.
call transaction 'ME23' using lt_bdcdata mode 'E'.
Just add the next part as per ur requirement and check it. use me22 instead me22n
‎2009 Jan 02 2:51 PM
Hi,
check this thread (fm ME_CONFIRMATION_UPDATE might be useful):
Best regards.
Edited by: Pablo Casamayor on Jan 2, 2009 3:56 PM
‎2009 Jan 05 6:05 AM
Hi,
Go to SHDB and do the recording with ME22 transaction instead of ME22N with the mode 'E'. I think BDC will work now.
Otherwise find out is there any BAPI or FM is available instead of calling call transaction for ME22.
Regards,
Jyothi CH.
‎2009 Jan 05 10:29 AM
Hi..
thanks for all your suggestion.
I tried the links and also searched for badi's. Still nowhere :(.
I have noticed on thing that whenever i click on a tab (say confirmation tab) on ME22N and then exit the transaction and enter again, it shows the confirmation tab only.
Which means it has set some parameter or has stored some value somewhere to show the previously used tabs.
Can you gimme a direction this way?
‎2009 Jan 05 10:35 AM
Hi,
You can do recording for slected tab by clicking on that perticular tab while recording and make use of that the screen number and okcode.
Best Regards,
Deepa Kulkarni
‎2009 Jan 05 10:48 AM
Hi,
code to go to confirmation tab in bdc
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'=TABIDT14'.
perform bdc_field using 'BDC_CURSOR'
'MEPO_TOPLINE-BSART'.
perform bdc_field using 'MEPO_TOPLINE-BSART'
'NB'.
perform bdc_field using 'DYN_6000-LIST'
' 1'.
perform bdc_field using 'MEPO1319-SPINF'
'X'.
Thanks & Regards,
Sateesh.