2021 Jun 18 6:55 AM
Hi Gurus,
I am working on the auto TO creation process via LT05 t-code where I am using EXPORT statements in EXIT_SAPLL03A_001 and IMPORT statement in EXIT_SAPLL03T_001 to perform the DB update in FM L_TA_HINZUFUEGEN when the TO get created but it is not working.
Could you advise what could be a possible reason that I am unable to pass my internal table results from EXIT_SAPLL03A_001 to EXIT_SAPLL03T_001 via EXPORT/ IMPORT statements? or you could advise a way through which I would be able to get my internal table data.
Below were code used in customer-exits -
EXIT_SAPLL03A_001 --> EXPORT lt_lagp TO MEMORY ID 'LAGP_UPD'.
EXIT_SAPLL03T_001 --> IMPORT lt_lagp FROM MEMORY ID 'LAGP_UPD'.
Regards,
Pooja
2021 Jun 19 7:13 AM
EXIT_SAPLL03A_001 is part of MWMTO003 enhancement, and is called in LT05 dialog (before the Update Task).
EXIT_SAPLL03T_001 is part of MWMTO001 enhancement, and is called in the Update Task (second part of save when the tables are to be updated).
Dialog and Update Task are executed in different ABAP sessions, so EXPORT in LT05 dialog and IMPORT in the update task cannot communicate.
If you want to send some information from the dialog to the Update Task, you can do it only via CALL FUNCTION 'Z...' IN UPDATE TASK EXPORTING <your LT_LAGP variable>, your Z update function will be executed in the update task, and you can then use EXPORT. Of course, you must call your Z update function before the standard update function which calls EXIT_SAPLL03T_001 in which you use IMPORT.
For more information, read the ABAP documentation about the Update Task concept.
2021 Jun 18 7:53 AM
Hello p_vaish
First of all, why don't you describe in details what you are trying to achieve here? It would be much easier to help you if you do.
Second, you don't really need to use EXPORT/IMPORT statements to communicate data between LE-WM user-exits. They all belong to XLTO function group. Therefore you can put your lt_lagp internal table into the function group's global data. It'll be available to all LE-WM enhancements. It's much easier than EXPORT/IMPORT.
Best regards
Dominik Tylczynski
2021 Jun 18 4:22 PM
Hi 3a9e4ce873a94034b33dc62b0ce600ee
I had tried your suggested solution but it did not work either.
Warm Regards,
Pooja
2021 Jun 18 8:18 AM
Hi p_vaishIMPORT/EXPORT to memory uses ABAP MEMORY. An ABAP session is opened for each user session. Each ABAP session is assigned its own memory area ABAP memory.
If IMPORT/EXPORT doesn't work, it is possible that IMPORT and EXPORT is executed in different ABAP sessions.
For example, additional ABAP sessions for a user session can be opened as follows:
◾Enter a transaction code after "/o" in the command field in the toolbar.
◾Call the function module TH_CREATE_MODE.
◾Call a dynpro during the processing of asynchronous RFC. In the RFC client, an additional ABAP session for communication with the SAP GUI is required.
Regards
Tom
2021 Jun 19 7:13 AM
EXIT_SAPLL03A_001 is part of MWMTO003 enhancement, and is called in LT05 dialog (before the Update Task).
EXIT_SAPLL03T_001 is part of MWMTO001 enhancement, and is called in the Update Task (second part of save when the tables are to be updated).
Dialog and Update Task are executed in different ABAP sessions, so EXPORT in LT05 dialog and IMPORT in the update task cannot communicate.
If you want to send some information from the dialog to the Update Task, you can do it only via CALL FUNCTION 'Z...' IN UPDATE TASK EXPORTING <your LT_LAGP variable>, your Z update function will be executed in the update task, and you can then use EXPORT. Of course, you must call your Z update function before the standard update function which calls EXIT_SAPLL03T_001 in which you use IMPORT.
For more information, read the ABAP documentation about the Update Task concept.
2021 Jun 25 1:34 PM
Thanks Sandra Rossi. This had helped in my current case scenario.
2021 Jun 20 4:18 PM
In the latest patches, export and import to memory don't work. To pass the value from one place to another, you can take the help of static variables of the class.
Here how you can proceed:-
<strong> ZCL_HOLD_TEMP_VALUE=>ITAB = lt_lagp.</strong>
lt_lagp = <strong>ZCL_HOLD_TEMP_VALUE=>ITAB </strong>
Your value has been passed from EXIT_SAPLL03A_001 to EXIT_SAPLL03A_001.
Let me know if you need any other info in this.
Reward if helpful.
Cheers!
Gourab
2021 Jun 25 1:35 PM