09-04-2008 7:16 AM
Hi,
Consider the scenario given:
A report program in which the selection screen consists of the
invoice no for example "Fom - 1 to - 10" range .It also has the fields given below :-
1.No of package - 10
2.Header Invoice description - aaa
3.Item Invoice description - aaa
4.Insurance - aaa
5.Transformer - aaa
6.Accessories - aaa
7.LR Number - 999
8.Committed Date of Deliver - xx.xx.xxxx
9.Transporters Name - aaa
If the input value for all the above 8 fields are given in the report selection screen as above for the invoice range then it should get stored in the respective texts in the T.Code VF01 for all the invoices given.The header text and the item texts in VF01 should get updated. Suggest a solution for this scenario.
Your help will be greatly appreciated.
Thanks,
P.S.Chitra
<THREAD LOCKED. This is a question and answer forum, not a do-my-job-for-me forum. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to ask a good question.>
Edited by: Mike Pokraka on Sep 9, 2008 10:03 PM
09-04-2008 7:28 AM
Hi Chitra,
See the documentation for READ_TEXT and SAVE_TEXT function modules or do a search for that in SDN. You can use SAVE_TEXT FM to store Header ot item text...
Regards
Karthik D
09-04-2008 7:28 AM
Hi Chitra,
See the documentation for READ_TEXT and SAVE_TEXT function modules or do a search for that in SDN. You can use SAVE_TEXT FM to store Header ot item text...
Regards
Karthik D
09-04-2008 8:21 AM
Hi,
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = "What should be given here?
INSERT = SPACE
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
LINES = "What should be given here?
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Will this update the text's for the given range of invoices?
How do we relate the text to the invoices using DB table/fields/Structure/fields?
Thanks,
P.S.Chitra
09-04-2008 8:34 AM
hi,
check this.
DATA: BEGIN OF HTHEADER.
INCLUDE STRUCTURE THEAD.
DATA: END OF HTHEADER.
DATA: BEGIN OF HTLINES OCCURS 10.
INCLUDE STRUCTURE TLINE.
DATA: END OF HTLINES.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
HEADER = HTHEADER
INSERT = 'X'
SAVEMODE_DIRECT = 'X'
IMPORTING
NEWHEADER = HTHEADER
TABLES
LINES = HTLINES.
EXCEPTIONS
ID = 01
LANGUAGE = 02
NAME = 03
OBJECT = 04.
09-04-2008 8:45 AM
Hi,
I have an itab populated with the selection screen inputs that has to be displayed in the header and item text, where should that itab be mentioned in this FM- SAVE_TEXT?
Should that be mentioned in tables?
TABLES
LINES = "itab . instead of HTLINES.
Thanks,
P.S.Chitra
09-04-2008 8:46 AM
09-09-2008 5:30 AM
Hi,
Can you just attach a sample program to update the header and item text's in VF02 for a given range of invoice's thro' the selection screen.It will be helpful for me to proceed.
Thanks,
P.S.Chitra
09-09-2008 5:31 AM
Hi,
Can you just attach a sample program to update the header and item text's in VF02 for a given range of invoice's thro' the selection screen.It will be helpful for me to proceed.
Thanks,
P.S.Chitra