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

Problem comparing initial item text to current item text .

Former Member
0 Likes
1,766

I'm using user exit EXIT_SAPMM06E_013 , inside this , I used the read text function to get the item text . In my scenario , my program changes the value of my item text during run time . I want to compare my initial item text to the current item text but my program can't seem to read the current item text . Can someone help me to resolve this problem ?

Your help will be much appreciated .

Thank You !

Edited by: Matt on Aug 23, 2010 10:40 AM - Removed bold characters as it made it MORE difficult to read.

1 ACCEPTED SOLUTION
Read only

matteo_montalto
Contributor
0 Likes
1,707

Please clarify:

- the text related to the item is a custom field or a standard one?

- is it provided in the interface of the user exit you are actually working on? Maybe you're looking at the wrong exit...

- in which transactions do you need this check? are you working on PO, PR, contracts...?

18 REPLIES 18
Read only

Former Member
0 Likes
1,707

Can you mention the exact requirement as in why you need to compare the texts.

Rather if you have to update the text you can directly update..

Regards,

Lalit Mohan Gupta.

Read only

0 Likes
1,707

Thank You for replying to my post , we need to validate the current item text if it's the same with the initial . If It's not , then changes won't be allowed .

Read only

0 Likes
1,707

I mean , if It's not the same .... the program won't continue . Our problem is that we can't get the current item text for us to compare during run time ....

Read only

Former Member
0 Likes
1,707

Can you try the function module "DYNP_VALUES_READ".

Regards,

Lalit Mohan Gupta

Read only

0 Likes
1,707

Thank You Very Much Lalit Mohan Gupta .

Read only

matteo_montalto
Contributor
0 Likes
1,708

Please clarify:

- the text related to the item is a custom field or a standard one?

- is it provided in the interface of the user exit you are actually working on? Maybe you're looking at the wrong exit...

- in which transactions do you need this check? are you working on PO, PR, contracts...?

Read only

0 Likes
1,707

Regarding your question Mr. Montalto ,

"- the text related to the item is a custom field or a standard one?"

it is standard.

"- is it provided in the interface of the user exit you are actually working on? Maybe you're looking at the wrong exit..."

our scenario is this , in me22n , item text tab , sample text goes to the exit provided above.

"- in which transactions do you need this check? are you working on PO, PR, contracts...?"

This is for PO .

Thank You for replying to my post .

Read only

0 Likes
1,707

Sorry..!

Edited by: Anup Deshmukh on Aug 23, 2010 2:24 PM

Read only

0 Likes
1,707

@ccparido: sorry but I keep misunderstanding your task.

Let me try clarify this; in ME22N you can modify a purchase order and your task is to monitor whether items in the TEXT tab for any item position have been modified. Is this right? If not, please describe in details what you want to achieve.

As far as I've seen, the exit you are using (EXIT_SAPMM06E_013) is triggered when the user try to save the document.

Is this correct, or you'd like to trigger the check after any modification on the purchase order? And also, what do you want to compare? Item's text element before and after the modification?

Sorry for these questions, maybe it's useful to better clarify your requirements .

Read only

0 Likes
1,707

">

+ > @ccparido: sorry but I keep misunderstanding your task. > Let me try clarify this; in ME22N you can modify a purchase order and your task is to monitor whether items in the TEXT tab for any item position have been modified. Is this right? If not, please describe in details what you want to achieve. > > As far as I've seen, the exit you are using (EXIT_SAPMM06E_013) is triggered when the user try to save the document. > Is this correct, or you'd like to trigger the check after any modification on the purchase order? And also, what do you want to compare? Item's text element before and after the modification? +> Sorry for these questions, maybe it's useful to better clarify your requirements .

"

As per what you have said Mr. Montalto , that's exactly what we will be needing . We won't be able to compare the "after" item text with the "before" item text because the program can't read the the "after" text during runtime . Should you have any suggestions for this problem ?

Thank You !

Read only

0 Likes
1,707

To Mr. Montalto ,

For Example , btw we're using me22n , in the the text tab , item text , the initial value is "Elly" which is in the database for example . During runtime , the user will provide the text "Carlo" . the program will read the text "Elly" but the text "Carlo" will not , it's the reason why we have complications in comparing these texts. We are using this for verification purposes once the user provide info's in the interface in the program . That's our problem .

Hope you can help us . Thanks !

Read only

0 Likes
1,707

Hi ,

looks like you have to use 2 exits .

Try using EXIT_SAPMM06E_022 (or find something better) read the text lines which will be existing lines.

Use export import mechanism to export the read lines .

import them in EXIT_SAPMM06E_013 .

read again and compare both .

Regards

Vinay

Read only

0 Likes
1,707

Thank You Vinay , we'll try to use that .

Read only

0 Likes
1,707

">

+ > Hi , > > looks like you have to use 2 exits . > Try using EXIT_SAPMM06E_022 (or find something better) read the text lines which will be existing lines. > Use export import mechanism to export the read lines . > import them in EXIT_SAPMM06E_013 . > read again and compare both . > > Regards +> Vinay

"

It was big help , we were able to get the text lines but we have problems in import and export mechanism . Is there any other possible way ? Is it possible for us to pass these values into variables ?

Thank You Very much !

Read only

0 Likes
1,707

Did you try this ?"DYNP_VALUES_READ".

Read only

0 Likes
1,707

>

> Did you try this ?"DYNP_VALUES_READ".

We figured out that function is not suitable for what we are doing right now .

Thanks for the help Lalit Mohan Gupta .

Read only

matteo_montalto
Contributor
0 Likes
1,707

I'm not for the IMPORT/EXPORT solution since it doesn't represent IMHO a "clean" solution.

If you can't get the proper data to implement your check, I'm almost sure you're looking at the wrong exit... at least, I'd better try finding a proper user exit before evaluationg the IMPORT/EXPORT mechanism (memory area management, avoid that as long as you can).

Read only

0 Likes
1,707

>

> I'm not for the IMPORT/EXPORT solution since it doesn't represent IMHO a "clean" solution.

> If you can't get the proper data to implement your check, I'm almost sure you're looking at the wrong exit... at least, I'd better try finding a proper user exit before evaluationg the IMPORT/EXPORT mechanism (memory area management, avoid that as long as you can).

*Mr. Montalto , we are done checking the exits . Our problem now are the import/export mechanism . All of our exits works though . Thank You . *