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

BDC Call Transaction.

Former Member
0 Likes
1,273

Hi Guys,

In my program i am using BDC call transaction to call and excecute a transaction.

When the output is displyed then when i press back then the control is going to the selection screen.

I need the control to directly jump to my program skipping the selection screen.

Guys if u know any solution please let me know.

Regards,

chaithanya.

Hi Guys,

In my program i am using BDC call transaction to call and excecute a transaction.

When the output is displyed then when i press back then the control is going to the selection screen.

I need the control to directly jump to my program skipping the selection screen.

Guys if u know any solution please let me know.

Regards,

chaithanya.

11 REPLIES 11
Read only

former_member222860
Active Contributor
0 Likes
1,227

Try with the addition AND SKIP FIRST SCREEN to the Call Transaction statement

Read only

0 Likes
1,227

SKIP INITIAL SCREEN works only when u want to skip the fisrt before execution but not after executing the call transaction and going back.

Read only

Former Member
0 Likes
1,227

Include the selection screen and the back button in your BDC as the last screen...

Read only

former_member438956
Active Participant
0 Likes
1,227

Hi Chaithanya,

When the prog gets executed after end of selection event call the transaction from where the prog was invoked.

Regards,

Anil N.

Read only

Former Member
0 Likes
1,227

Hi ,

you can use 'CALL TRANSACTION ta { [AND SKIP FIRST SCREEN] '

Please let me know if you still need any more help.

Thanks and regards,

Rajeshwar.

Read only

Former Member
0 Likes
1,227

keep this code after the start-of-selection.

if sy-ucomm 'BACK'.

set screen0.

endif.

Read only

0 Likes
1,227

paasing program name and screen number

PERFORM bdc_dynpro USING 'RTPM_TRAT_TRANSFER' '1000'.

  • passing company code

PERFORM bdc_field USING 'SO_BUKRS-LOW' s_bukrs1-low.

PERFORM bdc_field USING 'SO_BUKRS-HIGH' s_bukrs1-high.

*passing contract number

PERFORM bdc_field USING 'SO_RANL-LOW' s_ranl1-low.

PERFORM bdc_field USING 'SO_RANL-HIGH' s_ranl1-high.

  • passing key date and account assignment reference

PERFORM bdc_field USING 'KEYDATE' p_date1.

PERFORM bdc_field USING 'NEWREF' p_aref1.

PERFORM bdc_field USING 'BDC_OKCODE' '=ONLI'.

  • PERFORM bdc_field USING 'BDC_OKCODE' '=&F03'.

  • PERFORM bdc_field USING 'BDC_OKCODE' '/EE'.

g_opt-dismode = 'E'.

CALL TRANSACTION 'TPM28' USING g_bdcdata OPTIONS FROM g_opt .

REFRESH : g_bdcdata.

My code is this and once the CALL TRANSACTION is excecuted the control comes to refresh after i press back in the output screen and in the selection screen.

So even if write any code it exceutes only after i press the back button 2 times..

Read only

0 Likes
1,227

SORRY, it shoud not work.........

Read only

0 Likes
1,227

Hi chaithanya2468,

When You press back only the event is trigger is INITIALIZATION. And SY-UCOMM is Blank ... So need to do something like this I guess.

INITIALIZATION.
 IF V_END = 'X'.
   LEAVE TO SCREEN 0.
 ENDIF.

Regards,

Suneel G

Read only

0 Likes
1,227

Hi Guys,

I have solved the Problem..If you want to skip the selection screen when u press back then u should not use the BDC Call transaction but rather u should use SUBMIT and RETURN option.

Below is the code..

    • passing company code

LOOP AT s_bukrs1.

g_rspar_line-selname = 'SO_BUKRS'.

g_rspar_line-kind = 'S'.

g_rspar_line-sign = s_bukrs1-sign.

g_rspar_line-option = s_bukrs1-option.

g_rspar_line-low = s_bukrs1-low.

g_rspar_line-high = s_bukrs1-high.

APPEND g_rspar_line TO g_rspar_tab.

CLEAR : g_rspar_line.

ENDLOOP.

**passing contract number

LOOP AT s_ranl1.

g_rspar_line-selname = 'SO_RANL'.

g_rspar_line-kind = 'S'.

g_rspar_line-sign = s_ranl1-sign.

g_rspar_line-option = s_ranl1-option.

g_rspar_line-low = s_ranl1-low.

g_rspar_line-high = s_ranl1-high.

APPEND g_rspar_line TO g_rspar_tab.

CLEAR : g_rspar_line.

ENDLOOP.

    • passing key date

g_rspar_line-selname = 'KEYDATE'.

g_rspar_line-kind = 'P'.

g_rspar_line-sign = 'I'.

g_rspar_line-option = 'EQ'.

g_rspar_line-low = p_date1.

APPEND g_rspar_line TO g_rspar_tab.

CLEAR : g_rspar_line.

    • passing kaccount assignment reference

g_rspar_line-selname = 'NEWREF'.

g_rspar_line-kind = 'P'.

g_rspar_line-sign = 'I'.

g_rspar_line-option = 'EQ'.

g_rspar_line-low = p_aref1.

APPEND g_rspar_line TO g_rspar_tab.

CLEAR : g_rspar_line.

  • calling the transaction TPM28 with the selection table.

SUBMIT RTPM_TRAT_TRANSFER

USING SELECTION-SCREEN '1000'

WITH SELECTION-TABLE g_rspar_tab

AND RETURN.

Read only

Former Member
0 Likes
1,227

Hi ,

try with this,

LEAVE TO { {TRANSACTION ta} | {CURRENT TRANSACTION} }

[AND SKIP FIRST SCREEN].

or refer this link

[http://help.sap.com/abapdocu/en/ABAPLEAVE_TO_TRANSACTION.htm]

please let me know if you still need any more help.

Thanks and regards,

Rajeshwar