cancel
Showing results for 
Search instead for 
Did you mean: 

Required item texts in purchase requisitions

luscruz
Participant
0 Kudos

Hi all,

When I create a purchase requisition, I need to set some of the texts as required.

I think, with customizing it's not possible. Is there any user exit for that?

Can anyone help me?

Thanks,

Luis Cruz

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try using BAdI: Adopt Header Text When Copying Purchase Requisitions : ME_REQ_HEADER_TEXT or BAdI: Customer BAdI for Enjoy Purchase Requisition BAPIs ME_BAPI_PR_CUST of enhancemen

ES_BADI_ME_BAPI

Regards,

Vikas

Answers (4)

Answers (4)

adam_krawczyk1
Contributor
0 Kudos

You can implement validation of text and if it is empty show exception message to stop user. You need to implement BADI class for interface methods if_ex_me_process_req_cust~process_item or if_ex_me_process_req_cust~process_header.

From IM_ITEM or IM_HEADER you have exposed methods for text manipulations:
im_item->if_longtexts_mm~get_text / set_text

With this interface IF_LONGTEXTS_MM I was able to create dynamic text on item level, when reading from OCI.

Regards,
Adam

Former Member
0 Kudos

Procedure 1

Go to SPRO--> MM>Purchasing -


>Purchase requisition
> Define screen lay out at document level
----->

Here make "Text" Field is required entry from relevent field selection group which is assigned to PR Doc .type

Procedure 2:

SPRO--> MM>Purchasing -


>Purchase requisition->Text for Purchase Requisitions
>Define Copying rules
--


>Select Relevent text type(Your required) and click on text likage then select the Fix indicator as 'N"

Then this text not to copied to further docs like PO,RFQ,OLA

luscruz
Participant
0 Kudos

Thanks for all your replies.

With the user exits i have a problem:

- Since i'm creating, i don't have the requisition number at that point, so i can't use the fm READ_TEXT.

With the customizing i have 2 problems:

- I have 4 item texts, but only the first one should be required

- This requirement is only for a specific group of users (depends on the purchase group)

Any ideas?

Former Member
0 Kudos

Hi Luís,

May be you can try user exit: ME_PROCESS_REQ_CUST.

Kind Regards,

Prakash

Former Member
0 Kudos

Hi Luis,

You can give text in PR at item level as well as header level,

While raising PR in ITEM menu please select the tab Texts.If you give som texts it will appear below that item.

If you give text at header level then it will be applicable to whole PO.

Amit

luscruz
Participant
0 Kudos

Hi Amit,

Thanks for your reply.

I know that if I write some text in PR, it will go to PO.

I just need one of the texts set as required in PR, so the user cannot save without filling it.

Luis