‎2008 Jul 01 3:55 PM
hi SDN..
here is my first requirement like i want to get the list of header text types(Form Header,Header note 1,Header note 2,Header note 3,Header note 4,Form supplement text, etc....)
is there any bapi or FM for the same ...
also i want to update individual text in individual text header...
for ex. create order in Form Header,
create order1 in Header note 1,
create order2 in Header note 2,
etc...... using the FM SD_SALES_DOCU_MAINTAIN.
or any other alternative.
waiting for ur reply...
Regards,
Suman.
‎2008 Jul 01 4:44 PM
Hi,
Try BAPI to change sales order BAPI_SALESORDER_CHANGE.
In this bapi you can use tables ORDER_TEXT.
‎2008 Jul 01 4:58 PM
Instead of using FM u can directly fetch the data from database.
Table TTXOB -> stores Texts: application object for Sales order header it is always VBBK i.e. field TDOBJECT = VBBK.
Now all the text types i.e. text ids are stored in table TTXID
So fetch all text ids(TDID) from this table based on TDOBJECT = VBBK. And its descriptions are stored in TTXIT table.
Hope it will solve ur problem.
Regards,
Joy.
‎2008 Jul 01 5:32 PM
hi Ghosh ...
Thanks for ur reply
it's really helpful for me ...
but again, I want only 15 entries from TTXIT related to Sales Order Header text.
but here it shows list of entries...
how to filter these entries
it's going to be a very helpful answer for me
thanking u in advance.
Regards,
Suman.
‎2008 Jul 02 6:59 AM
Find out the textid(TDID) for 15 entries and then select records from TTXIT based on these textids and language = 'E'.
Regards,
Joy.
‎2008 Jul 02 8:12 AM
‎2008 Jul 01 5:04 PM
‎2008 Jul 01 5:39 PM
hi this can be done through the read text function module..like this..
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = C_TEXT_ID_0001
language = I_WWMV-SPRAS
name = TEXT_NAME
object = C_TEXT_OBJECT_WLBM
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER = THEAD
TABLES
lines = t_tline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
‎2008 Jul 02 7:53 AM
Hi,
Below piece of codes are used to retrive (for eg,container number) Text entered in the delivery header.
Please reward point if helpful.
Regards
Mohamed Aboobacker Siddique
______________
DATA: L_VBELN LIKE LIPS-VBELV.
DATA: LS_HEADER LIKE THEAD.
DATA: LT_LINES TYPE STANDARD TABLE OF TLINE WITH HEADER LINE.
DATA: LC_TITLE TYPE TTXIT-TDTEXT.
DATA : CONTAIN TYPE SPELL-WORD.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_LIKP-VBELN
IMPORTING
OUTPUT = WA_LIKP-VBELN.
L_VBELN = WA_LIKP-VBELN.
REFRESH LT_LINES.
MAIN
get text ............................................................
LS_HEADER-TDOBJECT = 'VBBK'.
LS_HEADER-TDNAME = L_VBELN.
LS_HEADER-TDID = '0021'.
LS_HEADER-TDSPRAS = 'EN'.
CLEAR LT_LINES.
CLEAR CONTAIN.
*REFRESH LT_LINES1.
*CLEAR OUTTAB.
*REFRESH OUTTAB.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = LS_HEADER-TDID
LANGUAGE = LS_HEADER-TDSPRAS
NAME = LS_HEADER-TDNAME
OBJECT = LS_HEADER-TDOBJECT
IMPORTING
HEADER = LS_HEADER
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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CLEAR CONTAIN.
DELETE LT_LINES WHERE TDLINE = ' '.
LOOP AT LT_LINES.
CONTAIN = LT_LINES-TDLINE.
ENDLOOP.
TRANSLATE CONTAIN TO UPPER CASE.
WA_LIKP-CONTAINER = CONTAIN.
RETRIEVE VESSEL ETA DATE
CLEAR LT_LINES.
CLEAR CONTAIN.
CLEAR LS_HEADER.
____________________