2009 Jul 14 9:51 AM
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.
2009 Jul 14 9:54 AM
Try with the addition AND SKIP FIRST SCREEN to the Call Transaction statement
2009 Jul 14 9:57 AM
SKIP INITIAL SCREEN works only when u want to skip the fisrt before execution but not after executing the call transaction and going back.
2009 Jul 14 9:59 AM
Include the selection screen and the back button in your BDC as the last screen...
2009 Jul 14 10:00 AM
Hi Chaithanya,
When the prog gets executed after end of selection event call the transaction from where the prog was invoked.
Regards,
Anil N.
2009 Jul 14 10:01 AM
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.
2009 Jul 14 10:03 AM
keep this code after the start-of-selection.
if sy-ucomm 'BACK'.
set screen0.
endif.
2009 Jul 14 10:07 AM
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..
2009 Jul 14 10:11 AM
2009 Jul 14 10:48 AM
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
2009 Jul 14 1:05 PM
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.
2009 Jul 14 10:15 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |