Display header text and item text in smartform
Hi all,
I have to display header text and item text of PO in smartform BBP_SUSPO.
So how to do that.. I have to use 'read_text' Fm or directly i can get values from any table ???
Thanks in advance.
Regards,
Anagha Deshmukh
Hi Amit,
I have used inculde text that is avalable in smartforms to display header & Item text in this way
For header :
Text Name Header guid
Text Object BBP_PD
Text ID HTXT
Language EN
For Item:
Text Name Item Guid
Text Object BBP_PD
Text ID ITXT
Language SY-LANGU
U can used this attributes in read_text function mdule also.
Thanks & Regards,
Anagha Deshmukh
Similar Messages
-
SAP SCRIPT Header text and Item text not printing in customized PO
Hello Experts,
I have copied the standard MEDRUCK to ZMEDRUCK and customized the form according to the requirement.
I want to print the header text and Item text in my form.
For Header text I have used :
/: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01
Problem 1: The text what I enter in header text is flowing only when I hit on print preview without saving the form. Once I save the SAP SCRIPT and click on print preview the field is appearing blank. I also tried to print the form, but the field is appearing blank even on the print out.
Problem 2: For item text the field is concatenation of EBELN & EBELP. Can anyone suggest me how to concatenate and fetch the text in item text.Hi,
Im getting an error in my subroutine pool for i_xtline which is to fetch ITEM TEXT., It says its not a in any internal table nor defined as data. How can I proceed further. I have pasted my code below. Please check and revert ASAP
PROGRAM ZMEDRUCK_SUBP1.
TABLES: EKPO, EKKO.
FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
data xname like THEAD-TDNAME.
data i_xtline like xtline.
clear i_xtline.
refresh i_xtline.
CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
MOVE v_item_text to ITEMTXT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = F01
language = EN
name = ITEMTXT
object = EKPO
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = i_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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. -
PO Header Texts and item texts
Dear Experts
PO header texts and item texts are stored in which table. please tell me the table name.
Here i have configured PO version management. in that i want to control some sensitive fields change only version management will get triggered. it is done through for this i have configured the sensitive fields in PO Print relevant changes. in that config the PO header texts and item texts table and field name is not exist.
Now i have change the PO through me22n in header texts version management is triggered for this. i want to control this if some body change the po header texts and item texts version management should not triggered.
is it possible.
Regards
Anand.Hai,
Try this table STXH.
Get the required information(input) for the function module 'READ_TEXT'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'ST'
LANGUAGE = sy-langu
NAME = thead-tdname
OBJECT = 'TEXT'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = 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 eq 0.
loop at lines.
wa_HEADER_TEXTS-TEXT_FORM = lines-TDFORMAT.
wa_HEADER_TEXTS-TEXT_LINE = lines-TDLINE.
append wa_HEADER_TEXTS to lt_tmp_HEADER_TEXTS.
endloop.
Better take the help of abaper.
With Regards,
Jaheer -
Purchase requisition - Header Texts and Item Texts
Hi,
In Creating Purchase requisition if we enter the Header note text and Item text, in which table these texts will be stored.
Regards,
RamHi,
To see any text go to the detail of that text you will have a magnify button below that text click there you will get the stand text editor open.
Click on GOT->Header it will give the information you need to get this text via function module 'READ_TEXT' they are sored in STXH.
Points if find this helpful
Regards,
Yakub Shah -
Header Text and Item Text for Sales Order
Hi,
Can any one help me on Header Text and Item Text............ ASAP.
<b>STXH & STXL</b>
TDOBJECT :
TDID:
TDNAME :
Regards,
Raghunath.SHi Raghunath,
Go to the text <b>in plain page mode</b>, and then you do via the menu '<b>GoTo</b>' -> '<b>Header</b>' and you get the parameters you need ( object, name, id, ...).
Repeat this operation for each text.
<u>Tips :</u> If you want to handle those text, use FM : READ_TEXT, EDIT_TEXT, and SAVE_TEXT...
Hope this helps,
Erwan -
Header Text And Item Text in Sales Order
Dear ALL
First one:
I have two different problems with text in sales order, when i create sales order after giving all the information like customer and material.
If i navigate through the Go To-- > Header ---> Text then there is a dump is any idea what all i need to check?
Error Message
A RAISE statement in the program "SAPLOLEA " raised the exception
condition "CNTL_ERROR".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
The termination occurred in the ABAP/4 program "SAPLOLEA " in
"AC_SYSTEM_FLUSH".
The main program was "SAPMV45A ".
The termination occurred in line 27
of the source code of program "LOLEAU02 " (when calling the editor 270).
Second one:
when i am creating the sales order without enter the quantity , customer and material if i navigate through the Header Text or item Text i can able to go but there in no dump, the moment i enter the quantity for the material then it over writes all the text in item and header.
Any suggestions please?
Thanks & Regards,
VeerDear Veer,
Please take the help from the technical people to fix the issue because it may related activation some Z developments which are related to the text.
Check the text determination procedure configuration settings also whether the text is calling from the Customer master and Material master.
If the text is calling from the master data maintain the text in the master data then try.
I hope it will help you
Regards,
Murali. -
Header and Item Texts for Sales Order
Hi,
Can any one help me on Header Text and Item Text...........
<b>STXH & STXL</b>
TDOBJECT :__________
TDID:_____________
TDNAME :_______________
Regards,
Raghunath.SHi
Double click on the related text
it will open Text editor
from Menu GOTO-> header
for SO HEADER Texts
then you see the 4 paramters like OBJECT (VBBK),ID,OBJECTNAME (sales Order No) and LANG
FOR SO ITEM texts
OBJECT (VBBP table), ID, OBJECTNAME(SO no plus ITEM No) and LANG
You have to pass these 4 parameters to READ_TEXT fun module to fetch the corresponding texts
see the doc on READ_TEXT
READ_TEXT
READ_TEXT provides a text for the application program in the specified work areas.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
Function call:
CALL FUNCTION 'READ_TEXT'
EXPORTING CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters:
CLIENT
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
<b>Reward points for useful Answers</b>
Regards
Anji -
PO header text, line item text in smartform
HI,
In my smartform I am fetching the 'PO header text', 'item text', and 'material text' for PO with "Include text"( by passing text name, object id etc..) with "no error if no text is maintained" checkbox checked
This is working fine In the development servers....
but when I moved these requests to quality servers...the above mentioned texts are not getting displayed in the smartform...while Texts are maintained in PO.
What can be the problem??Hi,
Thanx for ur reply...
But will you pls tell me how to achieve the same??
Thanx. -
Z-Report for PR using ES language not getting the Header and Item text deta
Hi,
We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
Please guide me.
Thanks
ShitalHave you maintained Tetexxt in ES language or is it that you are expecting on selecting ES the text from En will get coverted to ES and display in your report?
-
How to create Header Text and Item view
HI Experts,
Please solve it out.
I need to create a assignment block which display Employee details as per there Role. There are 3 fixed role like Role1 Role2 and Role3. under beneath of each role different user assign.
My requirement is to display the like Header(Roles) and item(user) in Tree form.
The user are in custom database table .
Example
Role1
User_ID1 User_Name
User_ID2 User_Name
Role2
User_ID3 User_Name
User_ID4 User_Name
User_ID5 User_Name
Role3
User_ID6 User_Name
User_ID 7 User_Name
Please suggest how can i achieve this tast.
Thanks
ImranHi Faisal/ Christian,
Thanks a lot lot for you suggestion, its very helpful.
I understand very well, to create Tree view with Access Object and its dependent object.
But my doubth is that in my requirement there is no Access object and dependent object involve, Please follow below points.
In My Object, Predecessor are like Heading text, No data display in predecessor (Role1, Role 2, as shown above in example).
There will be only 3 predecessor in all time.
The Successor value for each Predecessor available in the custom Ztable. and there no BOL object created for this ztable.
Please suggest ,what i need to do to accomplished this object.
I really really appriciate for your advice.
Many Thanks,
Imran -
Transaction to Mass Update Header and Item text in Purchase Order
Dear All
Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
One Single Text For Ex :" This is a Dummy PO" .
This text needs to be updated in large number of POs.
Please let me know your views
Reg
ShyamHi Shyam,
You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
"You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
for services in the PoServicesText table. Texts can only be replaced complete."
Regards,
Purnima. -
What table stores delivery header and item texts?
Hi Gurus,
Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
Can you please tell me which table store the texts?
Best regards,
Pavan>
Pavan1 wrote:
> Hi Gurus,
>
> Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
>
> Can you please tell me which table store the texts?
>
> Best regards,
> Pavan
This stores in text objects so you need to pass
Here is simple thing to find what to pass to the read_text function module.
Go to delivery - If you want to find header text - GOTO (on application menu) - Header -texts - Double click on the text where you enter text - GOTO (on application menu) - Header - This will give you a popup kind of screen where you can find the
text name (if it is header - only delivery number and if it is item - deliverynumber + item number ) , lang, Text id, Text object
This will give you the required parameters... . -
Tables for Purchase Requistion Header and Item Texts
Hi,
In which Tables does Purchase Requistion Header and Item Texts will be stored.
Thanks in advanceNot sure , you can try with T166K , T166P
-
How to upload the Header and Item texts
Hi ,
I need to upload the Header and Item texts , what is the process to upload.................................
Regards,
Raghunath.Shi,
see the sample code.
report ZVENDOR_BANK
no standard page heading line-size 255.
*-----tables declaration
tables:lfa1,lfbk,t100.
*-----data declaration
data:begin of it_dummy occurs 0,
dummy(100) type c,
end of it_dummy.
data:begin of it_lfa1 occurs 0,
lifnr like lfa1-lifnr,
ktokk like lfa1-lifnr,
name1 like lfa1-name1,
sortl like lfa1-sortl,
land1 like lfa1-land1,
end of it_lfa1,
begin of it_lfbk occurs 0,
lifnr like lfbk-lifnr,
banks like lfbk-banks,
bankl like lfbk-bankl,
bankn like lfbk-bankn,
koinh like lfbk-koinh,
end of it_lfbk.
data:bdcdata like bdcdata occurs 0 with header line.
start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\Rvelagapudi\Desktop\vendor.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = '#'
TABLES
DATA_TAB = it_dummy
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
loop at it_dummy.
if it_dummy-dummy+0(1) = 'H'.
it_lfa1-lifnr = it_dummy-dummy+1(4).
it_lfa1-ktokk = it_dummy-dummy+5(4).
it_lfa1-name1 = it_dummy-dummy+9(7).
it_lfa1-sortl = it_dummy-dummy+16(2).
it_lfa1-land1 = it_dummy-dummy+18(2).
append it_lfa1.
else.
it_lfbk-lifnr = it_dummy-dummy+1(4).
it_lfbk-banks = it_dummy-dummy+5(2).
it_lfbk-bankl = it_dummy-dummy+7(8).
it_lfbk-bankn = it_dummy-dummy+15(8).
it_lfbk-koinh = it_dummy-dummy+23(4).
append it_lfbk.
endif.
endloop.
loop at it_lfa1.
refresh bdcdata.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-KTOKK'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
it_lfa1-lifnr.
perform bdc_field using 'RF02K-KTOKK'
it_lfa1-ktokk.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-LAND1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
it_lfa1-name1.
perform bdc_field using 'LFA1-SORTL'
it_lfa1-sortl.
perform bdc_field using 'LFA1-LAND1'
it_lfa1-land1.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-KOINH(02)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
data:FNAM(20) TYPE C,
IDX TYPE C.
move 1 to idx.
LOOP AT IT_lfbk WHERE LIFNR = IT_lfa1-LIFNR.
CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-banks.
CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-bankl.
CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-bankn.
CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-koinh.
IDX = IDX + 1.
endloop.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
call transaction 'XK01' using bdcdata mode 'A'.
endloop.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM. "BDC_DYNPRO
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> SPACE.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM. "BDC_FIELD -
Trigger delta and extract header and item texts for sales order
Hi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
ShreyasHi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
Shreyas
Maybe you are looking for
-
Black lines through .pdf images
I'm using Word 2007 and Adobe Pro X. The figures I insert into my Word file are .pdf's that have been converted to .tiff or .png files. When I create a .pdf directly from my Word file, my figures end up with thick black lines running through them.
-
Can I burn an iTunes playlist (MP3) to a DVD-R rather than a CD-R in order to get more songs on a single disc. My car CD player handles MP3s on a CD-R just fine. iTunes 7, OS 10.4.8 TIA 12.PB. (Rev A). & 15" MBP Mac OS X (10.4.8)
-
How to tell apart ready:form-event and ready:layout-event
Hi, I would like to call the same function in a script object from different events. As I cannot make layout changes in the ready:layout event I would like to find out in the function: Which event called me? event.name gives me the event name nicely
-
LV 6i: Serious Formula Node problem!
I have found a "serious" problem converting VI from LV 5.1.1 to 6i: I have same "big" equations for density calculation with upper 65 coefficients and 3 o more inputs variables. Everything goes well and fast in 5.1.1, when I open this VI in LV 6i the
-
IExpense Reimbursable Amount Calculation
Hi All, I have a requirement in iExpense. below the navigation path *" iExpense,Standard-->Expenses Home-->Create Expence Report-->Cash and Other Expenses(Step 4 of 5)--->Mileage Expenses "* From here when i press calculate then as per seeded it is c