Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get Form Header Text

former_member2492
Active Participant
0 Likes
8,524

Hello How can I get this text?

Can anybody help me?

1 ACCEPTED SOLUTION
Read only

Former Member
7,532

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.
16 REPLIES 16
Read only

former_member288834
Participant
0 Likes
7,532

Do you want to get this text in Form or Report??

Read only

former_member2492
Active Participant
0 Likes
7,532

Guru Prasad I want this text to use it inside a smartform.How can I get it?

Read only

RaymondGiuseppi
Active Contributor
7,532

Look just under the text area, there should be an icon (display log) to get list of available long texts (text determination analysis, if required use change view to get full key) then use READ_TEXT FM with the identified parameters.

Read only

0 Likes
7,532

I have also LBBIL_INVOICE structure,can I find it there?

Read only

0 Likes
7,531

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?

Read only

0 Likes
7,531

Using READ_TEXT FM with the parameters I do not find it.Can you help me till the very end?Thanks

Read only

0 Likes
7,531

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???

Read only

0 Likes
7,531

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

Read only

narasimhulu_konnipati
Active Contributor
7,531

Form Header Text Configuration (VOTXN):

Configure it in T-code VOTXN and assign it to your Billing Types

Read only

0 Likes
7,531

how do I do that can you please add some screenshots?or at least explain it in steps.Thank you in advance

Read only

0 Likes
7,531

If I go to billing document->header but in the item is missing

Read only

narasimhulu_konnipati
Active Contributor
7,531

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

Read only

0 Likes
7,531

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?

Read only

0 Likes
7,531

Can you please help me till the end? thanks

Read only

former_member2492
Active Participant
0 Likes
7,531

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

Read only

Former Member
7,533

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.