Application Development 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: 

Get Form Header Text

former_member2492
Active Participant
0 Kudos

Hello How can I get this text?

Can anybody help me?

1 ACCEPTED SOLUTION

former_member562009
Participant

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

former_member288834
Participant
0 Kudos

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

former_member2492
Active Participant
0 Kudos

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

raymond_giuseppi
Active Contributor

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.

0 Kudos

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

0 Kudos

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?

0 Kudos

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

0 Kudos

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

0 Kudos

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

narasimhulu_konnipati
Active Contributor

Form Header Text Configuration (VOTXN):

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

0 Kudos

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

0 Kudos

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

narasimhulu_konnipati
Active Contributor

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

0 Kudos

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?

0 Kudos

Can you please help me till the end? thanks

former_member2492
Active Participant
0 Kudos

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

former_member562009
Participant

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.