2014 Oct 21 6:11 PM
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
2014 Oct 22 10:24 AM
Hi Gustavo,
What is the reason that you use your own code to read & print the text? As Kartik Tarla has pointed out, you can use the Include text node provided by SAP in the Smartform. There you can specify your paragraph format.
Using the READ_TEXT provides you with a lot of flexibility and ways to get what you want.
Best regards,
Zhou
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
2014 Oct 21 6:55 PM
can u look at option of modifying the text via incoming idoc in any enhancement etc,
2014 Oct 21 8:10 PM
Hello Kartik,
I can, however, the client wants to try to find out a solution within the smartform as there are a lot of deliveries already posted via EDI that have this issue in production.
My first answer for the issue to the client was: ask the customer to add the * to that text, as the customer does send every text with * except that one.
Regards,
Gustavo
2014 Oct 22 5:11 AM
Are you using an include text node? may be you can replace it with normal text node and print the text by reading it first using READ_TEXT.
you are correct, first solution would be to ask customer send the texts as they are sending others but you may consider READ_TEXT option
2014 Oct 22 10:24 AM
Hi Gustavo,
What is the reason that you use your own code to read & print the text? As Kartik Tarla has pointed out, you can use the Include text node provided by SAP in the Smartform. There you can specify your paragraph format.
Using the READ_TEXT provides you with a lot of flexibility and ways to get what you want.
Best regards,
Zhou
2014 Oct 23 8:38 PM
Hello Kartik, Zhou,
The smartform was not developed by me, I am just applying some required changes. I have informed the client that the way it is coded right now we require the customer to always send the format with a '*', and that if they want I can create a new code for all the texts that are received via EDI so that if the client does not send the * it still uses the paragraph type set on the smartform for the text.
Regards,
Gustavo
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |