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

CALL TRANSACTION

Former Member
0 Likes
398

Hi Experts !

I need to call transaction SM30 from my program and return to the program.

PERFORM dynpro USING:

'X' 'SAPMSVMA' '0100',

' ' 'BDC_CURSOR' 'VIEWNAME',

' ' 'BDC_OKCODE' '=UPD',

' ' 'VIEWNAME' wa_alv-tabla,

' ' 'VIMDYNFLDS-LTD_DTA_NO' 'X'.

CALL TRANSACTION 'SM30'

USING bdc_tab MODE 'E'

MESSAGES INTO t_error.

But the "problem" is when I BAKC from de SM30, not return directly to the progam when it call, it back to dynpro 100 and when press BACK it back to my program.

I can't use AND SKIP FIRST SCREEN beacuse don't have SPA/GPA parameters .

Someone help me?

Thanks.

1 ACCEPTED SOLUTION
Read only

Manohar2u
Active Contributor
0 Likes
358

To overcome this problem..create a new transaction code with 'Transaction with paramters' option and give transaction as SM30 and default values with VIEWNAME as your view and UPDATE as 'X'. Then call this transaction from your program.

Hi Experts !

I need to call transaction SM30 from my program and return to the program.

PERFORM dynpro USING:

'X' 'SAPMSVMA' '0100',

' ' 'BDC_CURSOR' 'VIEWNAME',

' ' 'BDC_OKCODE' '=UPD',

' ' 'VIEWNAME' wa_alv-tabla,

' ' 'VIMDYNFLDS-LTD_DTA_NO' 'X'.

CALL TRANSACTION 'SM30'

USING bdc_tab MODE 'E'

MESSAGES INTO t_error.

But the "problem" is when I BAKC from de SM30, not return directly to the progam when it call, it back to dynpro 100 and when press BACK it back to my program.

I can't use AND SKIP FIRST SCREEN beacuse don't have SPA/GPA parameters .

Someone help me?

Thanks.

1 REPLY 1
Read only

Manohar2u
Active Contributor
0 Likes
359

To overcome this problem..create a new transaction code with 'Transaction with paramters' option and give transaction as SM30 and default values with VIEWNAME as your view and UPDATE as 'X'. Then call this transaction from your program.