Hello all,
I have only worked with minor modifications to smartforms and I just got assigned some changes, however, one of the changes I am having issues with.
The client has a smartform already developed that one of the paragraphs is not being printed with the font expected, this happens to the deliveries received via EDI. The issue is that this specific text the user is sending it witouth the * format, and for some reason the smartform is not being able to pickup the designated standard paragraph assigned to it. The client wants this text to always be converted to the standard paragraph even if the client is not sending it with a * in the format.
This smartform was developed with the logic within it, it was not developed with all the logic in the calling program. When I check the text that is coming out with wrong format it has a standard paragraph assigned and also a style assigned in its output options. When debugging the smartform I see that standard SAP code is called to obtain the text and write it into the smartform.
The standard FMs being called are:
'SSFRT_READ_INCLUDE_TEXT'
'SSFCOMP_CONVERT_ITF_TO_TOKEN'
'SSFCOMP_CONVERT_ITF_TO_TOKEN'
The first FM obtains the text and TDFORMAT is empty ' '... if I set it via debug to 'L2' (that is the defined format in the paragraph for the smartform) it works, however, I can not code it as it is SAP STANDARD CODE.
Is there a way I can manage for this text to always be printed in the required FONT (l2). A way is asking the client that sends via EDI to include the '*' or change the IDOC creation to add the '*', however, we are looking for awawy to change it in the smartform because currently in production there are A LOT of cases in this situation that wouldn't be fixed with a change to the EDI.
IF you need me to tell you any other smartform settings please let me know. I am looking for a way to make it that even though it obtains format ' ' it inherits the smartform format, or a way to change the text written to the smartform.
Regards,
Gustavo