2024 Oct 15 1:05 PM - edited 2024 Oct 15 1:16 PM
Hi,
there is a scenario where once the PR is created in SAP, it will be sent to 3rd Party application for Approval via IDOC.
I am looking for a possibility to lock some fields of PR through ABAP Code based on some field in 'Status' tab at Item level until this Approval is complete and this response is received back to SAP via IDOC.
I mean Locking here in the sense that the Fields should be greyed out and should not be allowed to EDIT
The fields I want to lock are : 1. Fixed vendor at Item Overview Level
2. Quantity at Item Level
3. Gross Price at Item Level.
What are the possibilities of these ?
many Thanks in advance
Request clarification before answering.
Hi Sandra,
I did not try anything, just trying to find out the possibilites on how to achieve this. Is there any standard procedure or need to write an enhancement for this ?
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you already look at BAdI ME_PROCESS_REQ_CUST, field selection methods such as FIELDSELECTION_HEADER allow to change some display field attributes. You may not be allowed to handle standard fields, but you could rise an error and restore previous value in PROCESS_HEADER.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raymond, Quick Update :
I have found out that this can be achieved through the BADI : ME_PROCESS_REQ_CUST
So, my requirment is, I have to lock the PR fields which are highlighted in the attached screenshot based on some other status field of PR. Can you confirm if this can be achieved through this BADI. I will check how to implement it and other steps as well.
Regards
I reformulate
(ME_PROCESS_REQ_CUST)
Basically the "customer allowed" BAdI only handle "customer fields". But you could use the process_header method to remove user changes of the field (and raise a waning message)
(ME_PROCESS_REQ)
To actually "grey" some standard fields, you must use the "SAP only allowed" BAdI, but as you are not allowed to create a new implementation, select a standard active implementation to divert and enhance (e.g. implicit enhancement points at start and end of methods) /Or/ find/use such enhancement in the main program (e.g. set a break-point at start of the FIELDSELECTION_HEADER method of an active implementing class and debug to find where it's called in standard)
User | Count |
---|---|
97 | |
39 | |
8 | |
6 | |
5 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.