Application Development 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: 

Mandatory Field in PIR

Former Member
0 Kudos
417

Hi,

I have requirement to make a field mandatory in Purchase Info Record.

Making mandatory is specific to a purchase org. So through customization it is not possible.

Searched for the implicit enhancement and badi's doesn't help me to make the field mandatory.

Could you please provide your valuable inputs on how we can acheive this.

BR,

Arun.

8 REPLIES 8

former_member209119
Active Participant
0 Kudos
122

Hi,

Refer the below link. Might be useful for you.

http://scn.sap.com/thread/1355489

0 Kudos
122

Hi Anamika,

Link provided by doesn't help me in this case.

Configuration won't be possible since I need to make a field mandatory only to a

specific purchase organisation.

BR,

Arun.

raymond_giuseppi
Active Contributor
0 Kudos
122

You could look at explicit enhancement spots like es_sapmm06 enhancement-point ehp_modify_screen_01 in Include MM06IO01_MODIFY_SCREEN ?

Regards,

Raymond

0 Kudos
122

Hi Raymond,

Thanks for your reply.

explicit enhancement spots like es_sapmm06 enhancement-point ehp_modify_screen_01 is inside the condition screen-group2 =18. It won't help us.

I need to make tax code mandatory for a specifi p.org.

Thanks & Regards,

Arun.

0 Kudos
122

Well we only got 3 perform in the include (alas before the LOOP AT SCREEN)

   perform feldauswahl.
   perform modify_feldauswahl.
   perform check_infrec_archive. "1450737

But as the standard code don't use many "SCREEN-REQUIRED = 0", you could try to insert your code in one of those form in an implicit spot and the value should not be reverted to defaul value ?

Regards,

Raymond

0 Kudos
122

Hi Raymond,

I have already started coding inside the perform modify_feldawuswahl, after the function call

MEX_MODIFY_FELDAUSWAHL.

Hope it works. Will update you once I have done my testing.

BR,

Arun.

surajarafath
Contributor
0 Kudos
122

Hello Arun,

if you find suitable exit and you can do the coding like..

LOOP at screen.

if screen-name '' .

screen-required = 'x'.

endif.

endloop.

i think this way is not possible and im not sure..

Other solution what you can try is, using the BADI ME_PROCESS_REQ_CUST

implement your code in the CHECK method, such a way that

for certain condition, make the error statement that 'Tax code is mandatory for this <condition>' and thus user will not able to save the PR untill they can enter the tax code..

0 Kudos
122

Hi Suji,

My requirement is on Purchase info record.

The problem we don't have implict or explicit enhancements to make a tax code mandatory.

I am searching for a suitable user exit or BADI.

BR,

Arun.