on 03-08-2017 10:22 AM
dusers-datarupireradesktopfb50-default-flavor.pngdusers-datarupireradesktopfb50-our-created-flavor.pngHi,
We recently did a small personalization on transaction FB50 by hiding 'Details Tab', taking the necessary information from Details Tab and merged with 'Basic Tab'. In normal 'Default' SAP flavor, When we create a document and save ,we can see the document number posted message in the status bar, but when we create a document using our created flavor 'after save', it immediately prompts a message saying 'Put valid date' instead of a document number created message. Please let me know If I need to something to avoid this validation message after save.Thanks
Looks like you have some tab merging going on, and this is the consequence of how tab merging works, because it clicks on each merged tab. Since the document saving cleared out the required fields, going from one tab to another will result in the required field check kicking in. So somehow the required fields must be populated before the tab merging happens.
To be honest, looking at the flavor, I'm not sure what's the point in merging tabs because I don't see anything from a different tab than 'Basic Data', so the result could be achieved without tab merging.... but anyway.
To get around the problem, you could try replacing the standard Save button with a script button that looks the same but performs the following:
var message = session.findById("wnd[0]/sbar").text;
session.findById("wnd[0]/sbar").setMessage(message, "S");
This may or may not work... didn't try it with this transaction but a trick like this worked with a different transaction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your reply Tamas Hoznek.
Yes, I am doing a very simple personalization by bringing the details data on to the main screen.
I tried to record and modify the script code in order to assign it to custom save button(script button) as you said.
As I am very basic in Java script , may be I missed something. Please see my below screen shots of my execution .
I recorded document date initially and then during the 'SAVE' ,in between I stopped the recording.
After I enter Basic details , I get Details in main screen (merged into main screen)
$
¨Script: May be I am missing something the script .As you suggested I tried to with your sample code but still not able to succeed.
Thanks.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.