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: 

sales order header text

Shiva_Ram
Active Contributor
0 Kudos

Hi,

When our user create a new sales order, at the header level text are populating by default. I checked the customer master but there is no text data maintained. Following are the technical details;

When I go to the header;

1) Text name: xxxxxxxxxx

2) Language: EN

3) Text ID: ZE18

4) Text object: VBBK

5) Short title: VL10RV50SBT1

The access sequence for the text determination procedure is accessing the following;

1) VBBK - id ze18 - all language - Req 001

2) KNVV - id ZE18 - all language

The requirement 001 has following coding in it;

----


  • Transfer parameters: *

  • BP_SUBRC = 0 - Text will be copied *

  • BP_SUBRC > 0 - Text will not be copied *

----


FORM BEDINGUNG_PRUEFEN_001 USING BP_SUBRC.

BP_SUBRC = 0.

IF FTVCOM-VBELV IS INITIAL.

BP_SUBRC = 4.

ENDIF.

ENDFORM.

*eject

To my surprise, initially I could see the text while the sales order is created. Once I save the sales order and if again I open the sales order in change mode the texts goes off.

May I know from where the texts are being pulled?

When I use the function module Text_Read, I get one of values in the results TDMACODE1 = VL10RV50SBT1.

Has anyone come across this situation?

Thanks for your help.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi shiva,

1) Text name: xxxxxxxxxx

2) Language: EN

3) Text ID: ZE18

4) Text object: VBBK

since u r seeing this values

goto se11 , table STXH , f7 , technical settings,

now u will see 4 fields

TDOBJECT-- 'VBBK'

TDNAME -- XXXXXX (UR VALUE )

TDID -- ZE18

TDSPRAS --EN

AND DO f8

this will give u the contents of the whole stuff.

see whenever header or item texts are created for a particular transaction these are all stored in to this Table .

just explore this table ,

regards,

VIjay.

8 REPLIES 8

Former Member
0 Kudos

Hi,

use create_text->create text

save_text->save text

read_text->read text

edit_text->edit text

Regards,

amole

0 Kudos

Hi Amole,

Thanks for the response. I am functional guy and I am not clear about your message. Can you explain it a bit more? Will these functional modules help to identify from where the texts are being pulled?

Former Member
0 Kudos

check this .

<a href="http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm">Header texts</a>

goto va03 ,

hit enter ..

after coming to the second screen

from the menu bar ... click GOTO,

it will give u header ->

item ->

choose header-> texts

for header texts ,

this will give u a sub screen

from that clion the change buttons or a click will do

item->texts

for item texts ..

repeat the same as header ..

hope this helps ,

regards,

Vijay

Former Member
0 Kudos

hi shiva,

1) Text name: xxxxxxxxxx

2) Language: EN

3) Text ID: ZE18

4) Text object: VBBK

since u r seeing this values

goto se11 , table STXH , f7 , technical settings,

now u will see 4 fields

TDOBJECT-- 'VBBK'

TDNAME -- XXXXXX (UR VALUE )

TDID -- ZE18

TDSPRAS --EN

AND DO f8

this will give u the contents of the whole stuff.

see whenever header or item texts are created for a particular transaction these are all stored in to this Table .

just explore this table ,

regards,

VIjay.

0 Kudos

Thanks Vijay,

I could see an entry in the STXH and STXL tables.But how to find the origin of it? Meaning, how the user entered these texts? The TD name does not carry any value and the users did not enter any value in the customer master text field.

So using SM30 should I have to delete this entry to resolve this problem? If so then should I have to delete in both STXH and STXL tables? But I need to find what is the origin for this text and from the origin I would like to delete.

Any help? For your information, the text only comes during VA01 and if I dont change and save the sales order then it vanishes in va02/va03.

0 Kudos

I do not think that this text should be pulled to sales order. I think it could be that this bogus entry with empty TDNAME was created in your system and it's now being added to every new sales order (based on VL10RV50SBT1 - it's created by delivery due list).

I would first check on any other system if you have a similar entry with empty TDNAME, if not - you can just delete this entry on your system and check if it fixes your problem.

Former Member
0 Kudos

HI,

text are pulled from table stxh,stxl

FM read_text pulls the text from tabove tables

by passing follwing parameters

DATA : LV_NAME LIKE THEAD-TDNAME,

LV_ID LIKE THEAD-TDID,

LV_OBJ LIKE THEAD-TDOBJECT.

FREE : XTLINE.

CLEAR : XTLINE,

LV_NAME,

LV_ID,

LV_OBJ.

LV_NAME = IT_1979DATA-VBELN.

LV_ID = 'Z964'.

LV_OBJ = 'VBBK'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = LV_ID

LANGUAGE = SY-LANGU

NAME = LV_NAME

OBJECT = LV_OBJ

  • ARCHIVE_HANDLE = 0

  • IMPORTING

  • HEADER =

TABLES

LINES = XTLINE

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.

ENDIF.

IF NOT XTLINE[] IS INITIAL.

  • loop at xtline from 1 to 12 "SJOSYUL 09/03/2004

LOOP AT XTLINE

WHERE TDLINE <> SPACE.

  • moving sail date to final table

IF XTLINE-TDLINE CS GC_SDT.

IT_FINAL-SAILDT = XTLINE-TDLINE+10(8).

ENDIF.

    • moving ETA date to final table

IF XTLINE-TDLINE CS GC_ETA.

IT_FINAL-ETADT = XTLINE-TDLINE+4(8).

ENDIF.

ENDLOOP.

ENDIF.

you can fing text object from below link

va03->header-text-double click on any line->go to-header

to get text details

Text name 0225066731 (sales order)

Language E

Text ID Z506

Text object VBBK

Regards

amole

Former Member
0 Kudos

Hi shiva,

okay

just proceed like this ..

okay now the sales order which u r referring to ..

JUST CHECK THIS NAVIGATION.

do this and it will give u a clear idea ...

take the sales order number ,, goto VA02 AND OPEN THE SAME ...hit enter after u enter the order number ..

1.from the second screen goto menu items ,, header and texts ..

2. now here u assign some texts in the column area in the subscreen.

3. double click on the text line which u have entered ..

4. this will take u to one more screen which will say change remarks : 0000xxxxxx language EN

5. in this form the menu item select goto->header

6 this will pop up a screen for u ..

in here u wil find the details for which u have entered the text just now .. remember that this is a unique id

generated by the system ..

this will be like this...

text name -0000321411

language -EN

text id --0003

Text object ---> VBBK Sales Header texts

now this values when given in ur STXH table will tell u what it contain ..

means through this id i can see what text is contained ..

okay now check this entry after this come to va02

for ur solution .. just delete this entry ..now goto table stxh and give the old values again

u will find no entry now ..

this is as simple as that ..

-


//

Any help? For your information, the text only comes during VA01 and if I dont change and save the sales order then it vanishes in va02/va03//

for this just delete the entry in the text field in t-code va02..

this will be there see the change /display icons with some lines on the icon ..

delete it and save ..

thats it ..

-


in ur query if at all i need to give some remarks for the order i have to do it in va02 only ..

just navigate the flow this will give u a clear picture ..

u r almost there .. just add some text and delete and cross check in STXH tables .. this will make u clear ..

regards,

Vijay

no need to go to sm30 , or deletion of data in stxh tables

remove it in va02 itself ..

and save ..

Message was edited by: Vijay