cancel
Showing results for 
Search instead for 
Did you mean: 

How To link Header Text part of an Sales order in time of Sales order Print

Former Member
0 Kudos

Dear Guru,

Here I have encountered an Issue in time of Sales order printing.

As per our requirement I have to print the "Header Text" details (eg: Special Instruction)" of an Sales order in Order printout form.

But unlike any other field I am not able to find out the table and table fields in case of Header text.

So guru I want to know how i should link that in to my print program so that what ever instruction you are giving in "Special Instruction field " in header text of an Sales order would come into my print program's output.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Saifur Rahaman,

U get the Header Text u need to usde READ_TEXT function Module.

CALL FUNCTION 'READ_TEXT' 
       EXPORTING 
*           CLIENT                  = SY-MANDT 
          ID                      = 'PB' 
          LANGUAGE                = 'E' 
          NAME                    = TNAME 
          OBJECT                  = 'PBPT' 
*         ARCHIVE_HANDLE          = 0 
     IMPORTING 
          HEADER                  = HTEXT 
     TABLES 
          LINES                   = LTEXT 
     EXCEPTIONS 
          ID                      = 1 
          LANGUAGE                = 2 
          NAME                    = 3 
          NOT_FOUND               = 4 
          OBJECT                  = 5 
          REFERENCE_CHECK         = 6 
          WRONG_ACCESS_TO_ARCHIVE = 7 
          OTHERS                  = 8.

U need to know These four parameters to get the header text from sales order

ID

LANGUAGE

NAME

OBJECT

To know these u need to goto Sales Order transaction VA03

Inside Sales order Menu Path

Goto ---> Header ---> Texts

there u can find the texts

Select the required Text and click on the Details PushButton (Magnifying glass)

u can see the details of the text.(parameters)

For every Text u have these four parameters defined

ID

LANGUAGE

NAME

OBJECT

U need to use these in the READ_TEXT Function Module to get the Text.

Best regards,

raam

Former Member
0 Kudos

Dear Sir,

I got your point I have to use "READ_TEXT" function module.

But sir i want some clear idea about that these 4 parameters you have mentioned here--

1.ID -


what is an ID and how i should get ID for particular text for eg: "Header Note1". You have given one example "PB"

so in case of "Header Note1" what should be the ID , how to find it??

2.Language -


"E" --- i understood this point.

3.Name -


what is "NAME" which name it is suggesting and in my case what name i should provide here.

4.Object -


in my case what object name i should pass for eg you have passes "PBPT"

and after importing value of these field how i should take these value into a variable ??

Thanks and regards

Saifur Rahaman

Former Member
0 Kudos

Hi Saifur Rahaman,

These are the parameters u need to send to the Function module READ_TEXT.

As I explained u before

Inside Sales order Menu Path

Goto ---> Header ---> Texts

there u can find the texts

Select the required Text and click on the Details PushButton (Magnifying glass) Down.

now u get the Text Editor similar to the SAP Script Text editor.

There Menu Path

Goto ---> Header

Now U get the window Text Header.

Here u can find all four parameters.

Best regards,

raam

Former Member
0 Kudos

I got it sir, thanx a lot for your kind suggestion , now let me implement it in to my program.... wher i will stuck up i will ask u once again.

thanks & Regards

Saifur Rahaman

Answers (1)

Answers (1)

Former Member
0 Kudos

Thnx a lot guru I hav solved it as you suggested