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

doubt in user exit

Former Member
0 Likes
959

friends,

i need to keep an exit in include zxmbcu02 (enh. MBCF0002) ...the parameters for this fn. module are i_mseg, i_mkpf....the txn for which am using this for is QA11...there, we have 7 input fields and i need to keep a check for the 7th field based on the values of the first 6 fields...but i find that each and every time the parameter i_mseg gets filled for the corresponding line item and then, the prog. goes for some other two standard programs and when it returns for the next line (2nd field in QA11), i_mseg is cleared...so finally, am able to get the value for the last field only...how should i capture the values that's falling in i_mseg before clearing so that when it goes for the 7th item in the txn. i should have the previous values of the 6 fields somewhere in an int. table? Is there any other option avbl? pl shed some light friends...thanks all

8 REPLIES 8
Read only

suresh_datti
Active Contributor
0 Likes
905

store each field in memory & compare using EXPORT TO MEMORY & IMPORT FROM MEMORY statements.

~Suresh

Read only

Former Member
0 Likes
905

tx for the reply...but can u be a bit more specific? some sample coding would be appreciated...moreover, the situation is i want to read data from the same prog. only...before the table is cleared, i want to store it, then for the next loop, i should get the prev. values, like that till the final value...some eg. will of great help..

Read only

Former Member
0 Likes
905

Hi Sathish,

Declare one static internal table inthe user exit include and append the lines of i_mseg to that internal table. then i think you have all the field values to check...

Regards,

Satya.

null

Read only

Former Member
0 Likes
905

hi

i have already tried that...even that int. table is getting cleared when it comes for the next time inside the include....what are the other possible avenues? how to use export...i have used export itab to memory id, but that's to pass the int. table from one prog. to another prog...but my scenario is, i need to append the values to memory, then in the next pass, get the old values + append with new values exprot to memory, so on till i come to the last pass..not just the prev records...when i come to the last record, i should capture all the values...pl guide...thanks

Read only

Former Member
0 Likes
905

Hi Satish,

You can populate the required data into an internal table and EXPORT the contents of it to a memoryid.

Once, you have all the contents thru IMPORT statement, where you get all your values, process the data, clear the memory and free the memoryid.

Regards,

Raj

Read only

Former Member
0 Likes
905

hi

but isn't export int table to memory id to pass data between progs...can we use to it store the data in teh same prog. and retrieve it again in the same prog...moreover, when we give the export statement again, won't it replace teh contents of the int. table in the memory id? am kind of unclear here..need more inputs friends!

Read only

Former Member
0 Likes
905

Use IMPORT & EXPORT statements and try to store previous values in these. Each value in each variable and when u import them u can check or compare as required.

Read only

Former Member
0 Likes
905

tx...but can u please tell me how to use these statements with syntax or with some example code? i see a lot of export, import syntaxes around in the library..kind of unclear...