2013 Jul 23 1:16 PM
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
2013 Aug 22 3:12 PM
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
2013 Jul 23 2:48 PM
You could try to add the option AND SKIP FIRST SCREEN to your CALL TRANSACTION statement. (Read documentation for prerequisites)
Regards,
Raymond
2013 Jul 23 3:43 PM
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
2013 Aug 22 3:12 PM
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