How to Add Custom Header Text in Purchase Requisition
How to Add Custom Header Text in PR:
In Standard SPRO path for PR texts, only item level texts can be defined. If you want to add new header text in PR, you may follow the steps explained below:
Go to SE75 transaction. Select ‘Text Objects and ID’s’ and click on change button. Now, select the object ‘EBANH’ and click on ‘Text ID’s’
Now, click on create button or F5 .
/servlet/JiveServlet/showImage/2-14451767-301268/123.png
Enter the Text ID and Description and save.
/servlet/JiveServlet/showImage/2-14451767-301269/123.png
Now go to ME51N and check the header. The new text id will be displayed there.
/servlet/JiveServlet/showImage/2-14451767-301270/123.png
Display:
Please note that the request will be a work bench request.
Regards,
AKPT
nice document, thank you for sharing.
thanks
Anoop
Hi,
Thanks for sharing the Document
Hi AKPT,
Nice Document...
Thanks
Dibyendu Patra
Hi AKPT,
Is there any setting to make these header texts client Specific??
Hi,
I couldnt find any way to make it client specific.
Regards,
AKPT
Thanks all...
Thanks Sir.. SUPERB DOC
Regards,
Bijay Jha
Thanks Bijay....
Like some others on the forum, you have always been helpful and diligent and it is very much appreciated. Thank you for all your help.
Thanks Cecil D'Souza
Hi AKPT..
Very nice document..
Regards
Sesha.
Dear AKPT,
Nice document. Good information. Thanks for sharing.
Regards,
Sudeep
excellent !!
Thank you making the note very simple with minimum slides and text 🙂
Hi,
Nice document to add header text in PR.
Thanks,
Ranjit Kumar
This is not so much helpful as it seems. You cannot save text in new Text ID using tcodes ME51N, ME52N.
Does anyone know how to do that?
BR, Anton
Hi,
Enter the header text id in the name spaces like B02, B03 etc as shown below: (Do not give as Z01 or similar)
System will save the text.
Test the same and revert back.
Regards,
AKPT
Yep, now it works 🙂
Thank you so much.
BR, Anton
Good information, thanks for sharing.
Regards,
Vasanth
Is it possible to protect the questions on a template from being edited in header text of the purchase requisition?
Hi,
If you need to protect a particular text (ID) from being edited, there is no standard option as of my knowledge. You may go for development to achieve the same. Please check the BAdI: ME_REQ_HEADER_TEXT
Regards,
AKPT
You can manipulate text in the ABAP code, so any validation can be implemented there. It does not lock text from being edited, but allows for text corrections. You must implement BADI class and method which runs when item is updated: IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ITEM.
Then IM_ITEM parameter has methods if_longtexts_mm~get_text and if_longtexts_mm~set_text for text manipulations.
Regards,
Adam
Thank you. What I need is to auto populate a template with questions on it for them to answer without being able to edit the questions. I didn't think there was a way to do that because it's free text. If they can edit the text to answer the questions, then they can edit the questions. I'll take a look at me_req_header_text.
Dear AKPT,
Nice BLOG............ 🙂
Warm Regards
Abbasi
Dear AKPT
very nice document !!! 🙂 🙂
Thanks for sharing
nice document
Hi AKPT MM ;
Nice document , thanks for sharing.
Regards.
M.Ozgur Unal
Dear AKPT,
Nice Document... 🙂
Thanks
Tapas
Hi AKPT sir,
Very helpful document. I have two questions
1. how to make the header text mandatory,
2. How to fetch this text to any report.
Regards,
B V
1. Not possible in standard settings. You need to use user exit or badi.
2. Have a look into the document Report of Master data's Texts and Purchasing Document's Text for Header and Item Level. Also you can use the FM "READ_TEXT".
Hi Dev Sir,
Thanks for your quick response, we are developing one Z-report for this use want output as
PR NO Pending Value PR title.
here well get PR No and PR pending value from EBAN talbe, but PR title which we maintained in PR header text not able to get. how to get this title text into this report.
Regards,
BV
Hi,
You may use the FM: READ_TEXT to pull the details in the report. In the FM, input the following:
Text name: PR Number
Language : Req Language (EN)
Text ID: Text Id of the header / item text (If its header text, use the id: B01
Text Object: EBANH
Execute the FM with these data and get the text from PR.
Regards,
AKPT
Thank you Prasoon sir,
Regards,
BV
It is possible to do this and add additional text types to purchase requisitions but at this time the BAPI code does not support the additional types. That code was not written to allow more than B01 text type.
Nice document. Thanks for sharing.
Hi AKPT
Nice Document, Thanks for Sharing.
Regards
Prakash
Dear Sir
I have used this option in PR and data is getting saved perfectly , but while using this field in report i am getting error to maintain the text , could you please help me in this.