Quantcast
Channel: SCN: Message List - CRM UI Print Preview not showing updated text
Viewing all articles
Browse latest Browse all 10

Re: CRM UI Print Preview not showing updated text

$
0
0

The "Archive Mode" (tab "Processing Details", subtab "Printer") is set to "Print only".

 

 

I did some debugging and this is what i have found:


First i set up a breakpoint:

SFP --> My Interface --> Code Initialization --> i put a breakpoint here

 

When i press a "Print Preview" button, the program stops at the breakpoint. Then i press F7 which returns me to the function module /1BCDWB/SM00000020, that was generated for my Smart Form. Next a few objects get performed (each object calls the next one in the list):

--> Subroutine %WORK

--> subroutine %write_include_text

--> function module SSFRT_READ_INCLUDE_TEXT

--> subroutine read_include_text

--> function module LOAD_TEXT

 

These are standard SAP objects, that get automatically generated for my SmartForm / Interface.

 

 

 

Now in this LOAD_TEXT there is a global variable TEXT_HEADER, upon which depends what kind of a text the LOAD_TEXT returns:

- TEXT_HEADER is empty      --> text gets read from database (FM READ_STDTEXT)

- TEXT_HEADER is not empty --> text doesnt get read from database, but is loaded from the memory

 

 

Now when the button "Print Preview" is pressed for the first time, the TEXT_HEADER is empty. LOAD_TEXT correctly reads the text using a FM READ_STDTEXT (TDID = ST, TDOBJECT = TEXT). When i change the data on the document and then press the "Print Preview" again, the TEXT_HEADER is not empty anymore and the LOAD_TEXT returns the text that was read the first time.

 

 

How can i initialize the TEXT_HEADER in the FM LOAD_TEXT, so that the text would be read from database every time ?

 

Thanks


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>