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

control comes out while processing a transaction

Former Member
0 Likes
595

HI All,

I had created a program which list some records in ALV and the user must be able to double click on the record to move to a ztransaction implemented using the following code.

   SET PARAMETER ID 'ZAB' FIELD lv_matnr.
        CALL TRANSACTION 'Zxxx'.

the ztransaction opens fine with the material number in the variable lv_matnr. Now as the user do the change to that material within that transaction and save the material. When pressed back the control does not comes back to the ALV list rather it just exits.

There is a commi work and wait within the Ztransaction described above , is this the reason and is there any way to solve this.

Please help.

Thanks

Linda

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
567

The problem solved with these two lines. before the call transaction do it like this.

   EXPORT <parametername of the tran being called > FROM <varible with value X> TO MEMORY ID 'trans_code'.

and after the call transa

   FREE MEMORY ID 't_code'.
        CLEAR: sy-lsind,sy-calld.

not sure how it should be with other cases . for me it worked for my custom tran being called.

Thanks

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
567

You could try to add the option AND SKIP FIRST SCREEN to your CALL TRANSACTION statement. (Read documentation for prerequisites)

Regards,

Raymond

Read only

0 Likes
567

Hi Raymond.

Havnt worked.

The problem is not while callig the transaction rather it is while coming back to main program from where the control was transaferred to the ztransaction for the changing the material.

Thanks

Read only

Former Member
0 Likes
568

The problem solved with these two lines. before the call transaction do it like this.

   EXPORT <parametername of the tran being called > FROM <varible with value X> TO MEMORY ID 'trans_code'.

and after the call transa

   FREE MEMORY ID 't_code'.
        CLEAR: sy-lsind,sy-calld.

not sure how it should be with other cases . for me it worked for my custom tran being called.

Thanks