Skip to Content
0

Personas: Tcode FB50 ,Document Number Not visible After Save ..

Mar 08, 2017 at 10:22 AM

151

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tamas Hoznek
Mar 16, 2017 at 01:51 AM
0

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:

  • Grabs the required fields (like Document date and Posting date) from the screen and stores them in variables
  • Clicks on the standard Save button
  • Grabs the resulting 'Document xxx saved' message text from the status bar
var message = session.findById("wnd[0]/sbar").text;
  • Populates the Document date and Posting date fields with the saved dates
  • Displays the success message using
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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0