04-25-2018 6:17 AM
Hi Experts,
Is there any function module for pop up for Username and Password.
Req: While creating sales order(VA01), If user enter item retail price is more than market cost then i want to generate the pop up and manager will come and enter him/her SAP username and password.
Pop up should be attached format.pop-up.png
Please Help.
Thanks
Nagaraj.
04-25-2018 6:53 AM
You should build your own dynpro:
Consider displaying the pop-up only once, in USEREXIT_SAVE_DOCUMENT_PREPARE so manager won't be required every single minute.
Did you/functional consider using a workflow for this kind of requirement?
04-25-2018 6:23 AM
Hi Nagaraju Tumati,
I don't think so about function module for Password field. But still, you can create the custom screen and call it from user exit.
I suggest instead of creating the screen for user credentials(Manager approval), we can go for setting the Delivery and Billing block in sales order for such scenarios.
Regards
Rajkumar Narasimman
04-25-2018 6:39 AM
Hi Rajkumar,
Thanks for the reply. I have an idea about custom screens and the manager approval is only for sales order create screen.
Thanks
Nagaraj.
04-25-2018 7:03 AM
Hi Rajkumar,
Which is the best area(MV45AFZZ or LV69AFZZ) for create and call custom screen and validate for Item(condition tab) values.
Thanks
Nagaraj
04-25-2018 7:39 AM
Hi Nagaraju,
"Which is the best area(MV45AFZZ or LV69AFZZ)
Create the custom screen as 'Modal Dialog Box' in the custom FM(ZCUST_FM_POPUP) and call from user exit MV45AFZZ based on retail price condition.
For Username and Password validation already Raymond Giuseppi suggested the steps in detail above
04-25-2018 7:48 AM
Delivery and Billing Block is used for blocking further processing and it is not the new concept, we use frequently for all the customers for scenarios like Manager approval.
"the manager approval is only for sales order create screen.
In Real-time, the user sometime won't wait for the manager availability during Sales creation :(. Anyhow it was a suggestion only, if the requirement is to show popup, proceed the same like that.
04-25-2018 6:53 AM
You should build your own dynpro:
Consider displaying the pop-up only once, in USEREXIT_SAVE_DOCUMENT_PREPARE so manager won't be required every single minute.
Did you/functional consider using a workflow for this kind of requirement?
04-25-2018 7:10 AM
Hi Raymond,
Thanks but I am looking FM should be a pop up FM. Please see the attached.
Thanks
Nagaraj
04-25-2018 9:54 AM
Raymond is saying that you should write your own FM that uses the FM he mentions to the validation. It's a fairly basic piece of dynpro programming. Since it seems very likely that a standard password validation popup FM does not exist, this is your only choice.
04-25-2018 9:55 AM
I entirely agree with Raymond - this should be done via Workflow.