‎2006 Dec 28 10:21 AM
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
‎2006 Dec 28 10:25 AM
store each field in memory & compare using EXPORT TO MEMORY & IMPORT FROM MEMORY statements.
~Suresh
‎2006 Dec 28 10:45 AM
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..
‎2006 Dec 28 10:50 AM
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
‎2006 Dec 28 10:56 AM
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
‎2006 Dec 28 11:03 AM
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
‎2006 Dec 28 11:23 AM
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!
‎2006 Dec 28 11:32 AM
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.
‎2006 Dec 28 11:42 AM
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...