2019 Mar 26 1:08 PM
2019 Mar 26 5:30 PM
Hi Johnu,
In the header text tab, click on “Details” button, then on next screen click on Goto > Header (see attached image). Text Name, Language, Text ID and Text Object is what you need to call function READ_TEXT in your smartform.
In the code:
data lt_lines type table of tline.
call function 'READ_TEXT'
exporting
id = 'Y003'
language = 'P'
name = '8111001030'
object = 'VBBK'
tables
lines = lt_lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
if sy-subrc <> 0.
"Error handling
endif.
2019 Mar 26 1:39 PM
2019 Mar 26 1:42 PM
Guru Prasad I want this text to use it inside a smartform.How can I get it?
2019 Mar 26 1:47 PM
2019 Mar 26 1:50 PM
2019 Mar 26 1:55 PM
I go stxh and paste the selection I do not get the text I want,Here texts says it does not exist? has that anything to do?
2019 Mar 26 3:08 PM
Using READ_TEXT FM with the parameters I do not find it.Can you help me till the very end?Thanks
2019 Mar 26 3:34 PM
Look at the parameters of READ_TEXT FM, for OBJECT 'VBBK' and available ID are already displayed on the dynpro. You can also display the NAME with the 'change view' function, and guess from where the actual value come (e.g. invoice number)
Now call READ_TEXT with SE37 in test mode, once okay, code the call...
(If you were unable to identify the required parameters, add a break-point at start of READ_TEXT and execute transaction VF03)
And yes with VOTXN you can display the related Customizing, here you can check how it was used by the system. (From where the system try to read the text in sequence with success or not)
Did you really display the log from the original invoice you posted???
2019 Mar 26 4:35 PM
Raymond yes I did as you advised but the FM read text does not display anything with the correct values...also from the picture as I have shown it says text does not exit ,is this correct?do you know maybe it has smth to do with VOTXN trn Do you know how is it corretly and why read txt does not display anything
2019 Mar 26 2:03 PM
Form Header Text Configuration (VOTXN):
Configure it in T-code VOTXN and assign it to your Billing Types
2019 Mar 26 2:06 PM
how do I do that can you please add some screenshots?or at least explain it in steps.Thank you in advance
2019 Mar 26 2:13 PM
If I go to billing document->header but in the item is missing
2019 Mar 26 2:17 PM
Make sure you have enabled it in the Item level in VOTXN and assigned it to your billing types.
See the attached screen shot. cusersi345673onedrive-sap-seprivatelocalizationacr.png
2019 Mar 26 2:20 PM
So I need to add it as it is in the item level as well as it is in the billing document->header.Plus I see no billing types,can you please show me where it is?
2019 Mar 26 3:00 PM
2019 Mar 26 3:47 PM
Guru I know this,I have done this , it does not display it.....What can I do to change it?and display it when calling READ_TEXT
2019 Mar 26 5:30 PM
Hi Johnu,
In the header text tab, click on “Details” button, then on next screen click on Goto > Header (see attached image). Text Name, Language, Text ID and Text Object is what you need to call function READ_TEXT in your smartform.
In the code:
data lt_lines type table of tline.
call function 'READ_TEXT'
exporting
id = 'Y003'
language = 'P'
name = '8111001030'
object = 'VBBK'
tables
lines = lt_lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
if sy-subrc <> 0.
"Error handling
endif.