09-21-2007 12:31 PM
how to use read_text function module for getting line item text and header item text
for RFQ.what are the parameters that have to be inputted to this function module .
09-21-2007 12:34 PM
hi,
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'HR_G'
LANGUAGE = 'E'
NAME = 'ZSAM'
OBJECT = 'TEXT'
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.
In this case it will not give u any extra characters..
regrds
siva
09-21-2007 12:36 PM
in read text FM u need to pass the following fields :
ID
LANGUAGE
NAME
and OBJECT.
u will get this details from the transactin : se75 and SE78
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
09-21-2007 12:36 PM
hi,
L_TO_CREATE_SINGLE-Create a transfer order with one item
Functionality
With this function module, you can create a transfer order with an item. Via the parameters you can control the structure. For more information, refer to the detailed documentation for the individual parameters. The paramters that have been passed on are first submitted to a plausibility check. Then the actual transfer order is created.
If the function module is called up several times within a program, a COMMIT WORK should be placed between the calls and the blocks set up should be removed.
For the most part, this function module behaves in the same way as the transaction used to create a transfer order without a reference when you press the pushbutton "Single item". If the documentation for the individual parameters is not sufficient, you can call up the F1 documentation for the fields in this transaction.
Parameters
I_LGNUM
I_BWLVS
I_BETYP
I_BENUM
I_MATNR
I_WERKS
I_LGORT
I_CHARG
I_BESTQ
I_SOBKZ
I_SONUM
I_LETYP
I_ANFME
I_ALTME
I_WDATU
I_VFDAT
I_ZEUGN
I_LZNUM
I_SQUIT
I_NIDRU
I_DRUKZ
I_LDEST
I_WEMPF
I_ABLAD
I_VLTYP
I_VLBER
I_VLPLA
I_VPPOS
I_VLENR
I_VLQNR
I_NLTYP
I_NLBER
I_NLPLA
I_NPPOS
I_NLENR
I_NLQNR
I_RLTYP
I_RLBER
I_RLPLA
I_RLQNR
I_UPDATE_TASK
I_COMMIT_WORK
I_BNAME
I_KOMPL
I_SOLEX
I_PERNR
I_AUSFB
E_TANUM
E_LTAP
T_LTAK
T_LTAP_VB
Exceptions
NO_TO_CREATED
BWLVS_WRONG
BETYP_WRONG
BENUM_MISSING
BETYP_MISSING
FOREIGN_LOCK
VLTYP_WRONG
VLPLA_WRONG
VLTYP_MISSING
NLTYP_WRONG
NLPLA_WRONG
NLTYP_MISSING
RLTYP_WRONG
RLPLA_WRONG
RLTYP_MISSING
SQUIT_FORBIDDEN
MANUAL_TO_FORBIDDEN
LETYP_WRONG
VLPLA_MISSING
NLPLA_MISSING
SOBKZ_WRONG
SOBKZ_MISSING
SONUM_MISSING
BESTQ_WRONG
LGBER_WRONG
XFELD_WRONG
DATE_WRONG
DRUKZ_WRONG
LDEST_WRONG
UPDATE_WITHOUT_COMMIT
NO_AUTHORITY
MATERIAL_NOT_FOUND
LENUM_WRONG
Function Group
L03B
thanks
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
09-21-2007 12:38 PM
You can find these details in RFQ itself.
Click text button of your header/ item text.
Then MENU> GOTO > HEADER.
U can see all details of these text
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
09-21-2007 12:41 PM
In the transaction Now on the menu bar --> goto- header texts-> then one screen will come where u can create texts. Below the text area there will be some buttons. In that document button will be there (mostly last button).
Click that, the scrren comes with all the text details. Expand any text button to down. There you will get text details..
Text deter 01 Sales header
Text ty 0001 Form Header Access sequen 0001
Nr Object ID PARVW All Languag PARVW SORG. Req Data Note
010 VBBK 0001 X 001 110 Text does not exist
030 KNVV 0001 AG 110 Text does not exist
040 KNVV 0001 X 110 Text does not exist
050 KNA1 0001 AG 110 Text does not exist
060 KNVV 0001 X 110 Text does not exist
In your READ_TEXT you have to use this Object and Text-ID...etc
Try this.. it will work...