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

Problem with BDC call transaction

Former Member
0 Likes
1,453

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.

10 REPLIES 10
Read only

Former Member
0 Likes
1,399

hi,

use

CALL TRANSACTION 'BD87' USING bdcdata OPTIONS FROM opt and skip first screen.

thanks

shivraj

Read only

0 Likes
1,399

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.

Read only

0 Likes
1,399

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

Read only

0 Likes
1,399

hiiii

i did'nt take the OK_CODE for back in recording. so plz tell me if any idea?

regards.

Read only

Former Member
0 Likes
1,399

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

Read only

0 Likes
1,399

hi gaurav,

thanx for reply, can u please explain it in detail?

regards.

Read only

0 Likes
1,399

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.

Read only

0 Likes
1,399

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.

Read only

0 Likes
1,399

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.

Read only

0 Likes
1,399

Hi Saurabh,

I have exactly the same requirement as yours.Can you please tell me how you fixed this issue.?Thanx!