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 with header note text

Former Member
0 Likes
1,013

Hi All,

I got a requirement to copy header note text of PR to PO.

I have used a badi to copy the text.

I have read the text using READ_TEXT.

and using SAVE_TEXT im trying to save text.

The problem is the text is displayed only after double clicking the text editior and come back to PO.

I used COMMIT_TEXT also:

Didn't do the trick either...the text did not show up.

The only time the text appears is if the user double clicks the text field (to the right of the list of header texts) and then goes back ... then the text appears...

pls guide me with your valuable suggestions.

thankyou,

Priya

6 REPLIES 6
Read only

Former Member
0 Likes
888

Detailed Description:

when I drop PR to PO in ME21N, the text of PR needs to be displayed in PO header text.

Im reading the text of PR, using READ_TEXT.

and I have used SAVE_TEXT to populate the header text of PO.(used commit_text after save_text)

The problem is the text is not displaying on the header text.

But, when I double click the header text, it takes me to change editor,after coming back from change editor the text is displaying.

The requirement is the text is to be displayed once i double click the header text.

Pls help me.

Priya

Read only

Former Member
0 Likes
888

Hi,

In ECC 6 it is not possible to copy PR header text to PO text , because the only way to convert PR into PO is document flow and document flow will show you only line items. In lower version you can use BADI ME_REQ_HEADER_TEXT to copy header text.

Thanks and Regards,

P.Bharadwaj

Read only

0 Likes
888

Hi Bharadwaj,

I have tried using ME_REQ_HEADER_TEXT , but this BADI is not working.

As I mentioned , using Save_text the code is nearly working.

But the problem is the text is displaying only after double clicking the editor and coming back from the change editor.

but the user doesnt want to display the text this way. he wants the text to be displayed once he double clicks the header text.

Can anyone pls guide me with a probable solution.

Thankyou,

Priya

Read only

0 Likes
888

Hi,

If you are not using ME_REQ_HEADER_TEXT BADI,can you please mention which one you are using.

As documentation suggests :

The Business Add-In (BAdI) ME_REQ_HEADER_TEXT enables you to specify whether the header text of the reference document is to be copied as well when purchase requisitions are copied.

The COPY_HEADER_TEXT method enables you to specify whether the header text is to be copied as well when a purchase requisition is copied.

Thanks and Regards,

P.Bharadwaj

Read only

0 Likes
888

Hi Bharadwaj,

As per documentation in BADI : ME_REQ_HEADER_TEXT , the method COPY_HEADER_TEXT contains only one parameter.

Re_copy, I just passed 'X' to this parameter(as per documentation).

But it doesnt work.

Anyone, pls tell is it technically possible to adopt the header text of PR to PO, without double clicking the text editor.

Thanks,

Priya

Read only

Former Member
0 Likes
888

what is the BADI you are using to save the text?