2010 Feb 08 8:43 AM
Hi all,
i have a scenario in which i have to call BD87 transaction and have to skip the first screen of BD87, so i made a selection screen whoose values i am passing to BD87, then it is working fine but problem is that when get output and click on back then i get the standard selection screen of BD87 while i need to skip that screen and come back to my customized selection screen.
can anyone please help me?
Code:
perform bdc_dynpro using 'RBDMON00' '1100'.
perform bdc_field using 'BDC_CURSOR'
'SX_DOCNU-LOW'.
perform bdc_field using 'SX_DOCNU-LOW'
s_DOCNUM-low.
perform bdc_field using 'SX_DOCNU-HIGH'
s_DOCNUM-high.
perform bdc_field using 'SX_CREDA-LOW'
s_CREDAT-low.
perform bdc_field using 'SX_CREDA-HIGH'
s_CREDAT-high.
perform bdc_field using 'SX_CRETI-LOW'
s_CRETIM-low.
perform bdc_field using 'SX_CRETI-HIGH'
s_CRETIM-high.
perform bdc_field using 'SX_UPDDA-LOW'
gv_upd.
perform bdc_field using 'SX_UPDDA-LOW'
gv_upd. "s_UPDDAT-low.
perform bdc_field using 'SX_UPDTI-LOW'
s_UPDTIM-low. "'00:00:00'.
perform bdc_field using 'SX_UPDTI-HIGH'
s_UPDTIM-high. "'00:00:00'.
perform bdc_field using 'SX_STATU-LOW'
s_STATUS-low. "'51'.
perform bdc_field using 'SX_STATU-HIGH'
s_STATUS-high. "'51'.
perform bdc_field using 'SX_MESTY-LOW'
gv_mstyp. "s_MESTYP-low. "'cond_a'.
perform bdc_field using 'SX_MESTY-HIGH'
gv_mstyp1. "s_MESTYP-high. "'cond_a'.
perform bdc_field using 'BDC_OKCODE'
'=CRET'.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'BD87' USING bdcdata OPTIONS FROM opt.
regards.
Hi all,
i have a scenario in which i have to call BD87 transaction and have to skip the first screen of BD87, so i made a selection screen whoose values i am passing to BD87, then it is working fine but problem is that when get output and click on back then i get the standard selection screen of BD87 while i need to skip that screen and come back to my customized selection screen.
can anyone please help me?
Code:
perform bdc_dynpro using 'RBDMON00' '1100'.
perform bdc_field using 'BDC_CURSOR'
'SX_DOCNU-LOW'.
perform bdc_field using 'SX_DOCNU-LOW'
s_DOCNUM-low.
perform bdc_field using 'SX_DOCNU-HIGH'
s_DOCNUM-high.
perform bdc_field using 'SX_CREDA-LOW'
s_CREDAT-low.
perform bdc_field using 'SX_CREDA-HIGH'
s_CREDAT-high.
perform bdc_field using 'SX_CRETI-LOW'
s_CRETIM-low.
perform bdc_field using 'SX_CRETI-HIGH'
s_CRETIM-high.
perform bdc_field using 'SX_UPDDA-LOW'
gv_upd.
perform bdc_field using 'SX_UPDDA-LOW'
gv_upd. "s_UPDDAT-low.
perform bdc_field using 'SX_UPDTI-LOW'
s_UPDTIM-low. "'00:00:00'.
perform bdc_field using 'SX_UPDTI-HIGH'
s_UPDTIM-high. "'00:00:00'.
perform bdc_field using 'SX_STATU-LOW'
s_STATUS-low. "'51'.
perform bdc_field using 'SX_STATU-HIGH'
s_STATUS-high. "'51'.
perform bdc_field using 'SX_MESTY-LOW'
gv_mstyp. "s_MESTYP-low. "'cond_a'.
perform bdc_field using 'SX_MESTY-HIGH'
gv_mstyp1. "s_MESTYP-high. "'cond_a'.
perform bdc_field using 'BDC_OKCODE'
'=CRET'.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'BD87' USING bdcdata OPTIONS FROM opt.
regards.
2010 Feb 08 8:48 AM
hi,
use
CALL TRANSACTION 'BD87' USING bdcdata OPTIONS FROM opt and skip first screen.
thanks
shivraj
2010 Feb 08 9:30 AM
hi shivraj,
thanx for reply, but it is not syntactically correct.
actually during execution i m able to skip the screen and getting output but problem is that when i click on 'BACK' button on output screen then it is going back to standard selection screen.
please suggest.
regards.
2010 Feb 08 9:53 AM
hi,
then from the recording you may need to edit the code which contains the recoding for the back button so that it skips the screen of that particular transaction for which u wanna skip the first screen
thanks
shivraj
Edited by: ShivrajSinha on Feb 8, 2010 10:54 AM
2010 Feb 08 10:11 AM
hiiii
i did'nt take the OK_CODE for back in recording. so plz tell me if any idea?
regards.
2010 Feb 08 10:14 AM
hi,
in sy-ucomm of the program.......in function code of back button write the recording of the BDC in which 1st screen in skiped......
regards
gaurav
2010 Feb 08 11:56 AM
hi gaurav,
thanx for reply, can u please explain it in detail?
regards.
2010 Feb 08 12:13 PM
Hi,
As per my understanding, the answer is no using BDC. You may have to search for some other options.
Because the flow is like this.
Your Z-program=>CALL TRANSACTION BD87=> Control entered into BD87 program(Where you don't have the control)=>Once you click back button from output screen control comes to screen 100 of BD87(Where you don't have the control)=>Again click back(Where you don't have the control)=>Control enters back to your Z-program.
You can verify this by executing the BD87 seperately.
Where you don't have the control: Means that you can't write your own code.
Thanks,
Vinod.
2010 Feb 09 4:39 AM
hi vinod thanx for reply....
so please tell me if there is any other way to do the same?
is there any exit or BADI to control the BACK button?
regards.
2010 Feb 09 5:13 AM
Hi,
Not sure if this sounds good. How about opening a new screen for BD87? If you are OK then what you need to do is...
Create a RFC enabled FM. Instead of calling the transaction from program, call this FM with STARTING NEW TASK. FM interface should be similar to the FM CALL_CIC_TRANSACTION. Infact your RFC FM can be a wrapper FM to above.
Just call this standard FM inside your RFC FM and pass the interface parameters to standard FM.
Thanks,
Vinod.
2012 Feb 27 8:50 AM
Hi Saurabh,
I have exactly the same requirement as yours.Can you please tell me how you fixed this issue.?Thanx!
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |