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
Imran
Hi 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
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. -
How to Create header text in Quotations?
Helli Experts,
Can anybody of you tell me how to create Header text for Quotations in SD?
I want to fetch it into Layout Set. I want to hardcode it.
HarishHi,
Use the SAVE_TEXT and READ_TEXT Function module to create a header text through program.
Prabhudas -
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 DeshmukhHi 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 -
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 -
In BDC how you handled header data and item data
In BDC how you handled header data and item data
Raja,
Can you be more clear ?
Usually you load the header data one and then loop at the item data and then load the item data.
This example should help you.
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Regards,
Ravi
Note - Please mark all the helpful answers -
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. -
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 -
How to split header text in table view to 2 lines?
Hello,
I have a table view that has many fields. There are fields with long header text.
Is it possible to split the text and have it on 2 lines?
Foe exsamle: instead of 'ORDER NUMBER' ---> ORDER
NUMBER
Thanks,
SaraHello Sara,
You can do that using line feed.
Implement the following code.
data: lv_constant type string value 'CRM ORDER'.
data: lv_constant1 type string.
data: lv_constant1 type string.
split lv_constant at ' ' into lv_constant1 lv_constant2.
CLASS cl_abap_char_utilities DEFINITION LOAD.
lv_linefeed = CL_ABAP_CHAR_UTILITIES=>CR_LF.
clear lv_constant.
concatenate lv_constant1 lv_linefeed lv_constant2 into lv_constant.
I hope this works.
Thanks
Vishal -
How to create a text item dynamically
Greetings to All Expert,
Could anyone please tell me how i create a text item with code.The scenario is like this....
Suppose there is a text item corresponding to department_id=10 and i dont know how many employees r there in this department.Now if the query returns 10 employee then how do i display these 10 employees name.....it may be 20 employees also...i dont know the actual number before executing the query..
Regards,
Wel
Edited by: 787312 on Aug 15, 2010 1:03 AM
Edited by: 787312 on Aug 15, 2010 4:19 AMHi,
You can create two blocks for this. One is an unbound block which consist of a text box with a command button. Other block is a bound block from your table(multiple rows block). In hierarchical, unbound block should above above bound block, which makes the focus control goes first to the text box. When the user type the dept code and click on the button it goes to bound block and execute the query.
you can write code in the command block as below
set_block_property('<boundblockname>',default_where,'deptno = '||:ti_DEPTNO);
go_block('<boundblockname>');
execute_query;Best Regards
MP -
How we will display the header data and item data seperately in lists
how we will display the header data and item data seperately in lists
REPORT z_alv_list_block.
TYPE-POOLS: slis. " ALV Global types
SELECTION-SCREEN :
SKIP,
BEGIN OF LINE,
COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '02' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
1st Table
BEGIN OF gt_kna1 OCCURS 0, " Data displayed
kunnr LIKE kna1-kunnr, " Customer number
ernam LIKE kna1-ernam, " Name of Person who Created
erdat LIKE kna1-erdat, " Creation date
name1 LIKE kna1-name1, " Name 1
END OF gt_kna1,
2nd Table
BEGIN OF gt_mara OCCURS 0,
ernam LIKE mara-ernam, " Name of Person who Created
matnr LIKE mara-matnr, " Material number
ersda LIKE mara-e rsda, " Creation date
brgew LIKE mara-brgew, " Gross weight
END OF gt_mara,
3rd Table
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
waerk LIKE vbak-waerk, " SD document currency
END OF gt_vbak.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
Read data
SELECT * FROM kna1
UP TO p_max ROWS
INTO CORRESPONDING FIELDS OF TABLE gt_kna1.
SELECT * FROM mara
UP TO p_max ROWS
INTO CORRESPONDING FIELDS OF TABLE gt_mara.
SELECT * FROM vbak
UP TO p_max ROWS
INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'.
PERFORM list_append TABLES gt_kna1
USING '1'
'GT_KNA1'.
PERFORM list_append TABLES gt_mara
USING '2'
'GT_MARA'.
PERFORM list_append TABLES gt_vbak
USING '3'
'GT_VBAK'.
PERFORM f_list_display.
FORM USER_COMMAND *
FORM user_command USING i_ucomm LIKE sy-ucomm
is_selfield TYPE slis_selfield. "#EC CALLED
CASE i_ucomm.
WHEN '&IC1'. " Pick
CASE is_selfield-tabname.
WHEN 'GT_MARA'.
WHEN 'GT_KNA1'.
WHEN 'GT_VBAK'.
READ TABLE gt_vbak INDEX is_selfield-tabindex.
IF sy-subrc EQ 0.
Sales order number
SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
Display Sales Order
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDCASE.
ENDFORM. " USER_COMMAND
----< /div>
Form list_append
FORM list_append TABLES ut_table
USING u_no TYPE char1
u_tabname TYPE slis_tabname.
Macro definition
DEFINE m_fieldcat.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
ls_sort-fieldname = &1.
ls_sort-up = 'X'.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA :
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
ls_sort TYPE slis_sortinfo_alv,
lt_sort TYPE slis_t_sortinfo_alv. " Sort table
DATA:
lt_events TYPE slis_t_event,
ls_event TYPE slis_alv_event,
ls_layout TYPE slis_layout_alv.
ls_layout-group_change_edit = 'X'.
ls_layout-colwidth_optimize = 'X'.
ls_layout-zebra = 'X'.
ls_layout-detail_popup = 'X'.
ls_layout-get_selinfos = 'X'.
ls_layout-max_linesize = '200'.
CASE u_no.
WHEN '1'.
Build field catalog and sort table
m_fieldcat 'KUNNR' 'KNA1'.
m_fieldcat 'ERNAM' 'KNA1'.
m_fieldcat 'ERDAT' 'KNA1'.
m_fieldcat 'NAME1' 'KNA1'.
m_sort 'KUNNR'.
WHEN '2'.
m_fieldcat 'MATNR' 'MARA'.
m_fieldcat 'ERNAM' 'MARA'.
m_fieldcat 'ERSDA' 'MARA'.
m_fieldcat 'BRGEW' 'MARA'.
m_sort 'MATNR'.
WHEN '3'.
m_fieldcat 'VBELN' 'VBAK'.
m_fieldcat 'VKORG' 'VBAK'.
m_fieldcat 'KUNNR' 'VBAK'.
m_fieldcat 'NETWR' 'VBAK'.
m_fieldcat 'WAERK' 'VBAK'.
m_sort 'VBELN'.
ENDCASE.
IF u_no CA '13'.
MOVE 'TOP_OF_PAGE' TO ls_event-name.
CONCATENATE 'TOP_OF_PAGE' u_no INTO ls_event-form.
APPEND ls_event TO lt_events.
ELSE.
MOVE 'TOP_OF_LIST' TO ls_event-name.
CONCATENATE 'TOP_OF_LIST' u_no INTO ls_event-form.
APPEND ls_event TO lt_events.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
it_fieldcat = lt_fieldcat
is_layout = ls_layout
i_tabname = u_tabname
it_events = lt_events
it_sort = lt_sort
i_text =
TABLES
t_outtab = ut_table
EXCEPTIONS
program_error = 1
maximum_of_appends_reached = 2
OTHERS = 3.
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. " LIST_APPEND
Form f_list_display
FORM f_list_display.
DATA ls_print TYPE slis_print_alv.
ls_print-no_print_selinfos = 'X'. " Display no selection infos
ls_print-no_print_listinfos = 'X'. " Display no listinfos
ls_print-reserve_lines = 2. " Lines reserved for end of page
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXPORTING
i_interface_check = ' '
is_print = ls_print
EXCEPTIONS
program_error = 1
OTHERS = 2.
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. " F_LIST_DISPLAY
FORM top_of_page1 *
FORM top_of_page1. "#EC CALLED
PERFORM top_of_page.
ENDFORM.
FORM top_of_page3 *
FORM top_of_page3. "#EC CALLED
PERFORM top_of_page.
ENDFORM.
FORM top_of_page *
FORM top_of_page.
ULINE.
WRITE : sy-uname, sy-title(56) CENTERED, sy-datum.
ULINE.
ENDFORM.
FORM top_of_list2 *
FORM top_of_list2. "#EC CALLED
WRITE 'TOP OF LIST2'.
ENDFORM.
END OF PROGRAM Z_ALV_LIST_BLOCK *********************** -
Standard SAP Table for PO Header Text and PO Item Text
Hi,
I want to know the Standard SAP Table where the PO Header Text and the PO Item Text are stored.
Thanks,
RKPO texts are stored in tables STXH and STXL.
TDOBJECT is EKKO for header texts and EKPO for item texts.
Just for future reference with regards to getting text id's etc.
eg: PO texts.
--> Go into the PO.
--> Go to the text tab (item or header - depends what u want).
--> Double click into the required text.
--> Click the "GO TO" menu option.
--> click Header.
and all the info you need is there.
You need to use function module READ_TEXT. Since lenght of text is variable it is stored in binary format and cannot be read via a table viewer. -
How to create a partner and header record using CRM_ORDER_MAINTAIN?
Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
I tried to create a record, but i only managed to create a header record and the partner record is not reflected in the transaction. Why is that so? is there any indicator that i need to include?
Thanks..
JenHi Jen!
I use this FM and it works perfectly.
Use this to create a partner:
gs_partner-ref_handle = '0000000001'.
gs_partner-ref_kind = 'A'.
gs_partner-ref_partner_handle = '0001'.
gs_partner-partner_fct = '00000001'.
gs_partner-partner_no = NO_PARTNER. "number of the partner, bu_partner
gs_partner-display_type = 'BP'.
gs_partner-no_type = 'BP'.
gs_partner-kind_of_entry = 'C'.
* ls_partner_l-ref_handle = '1'.
gs_partner-ref_guid = '00000000000000000000000000000000'.
APPEND gs_partner TO gT_partner .
ls_input_field-ref_kind = 'A'.
ls_input_field-logical_key = '0001'.
ls_input_field-objectname = 'PARTNER'.
ls_input_field-ref_handle = '0000000001'.
ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'NO_TYPE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'PARTNER_FCT'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'PARTNER_NO'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE gt_input_fields.
clear ls_input_field-field_names[].
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
* it_schedlin_i = gt_schedlin_i_com
it_partner = gt_partner
* it_sales = gt_sales
* it_orgman = gt_orgman
* it_appointment = gt_appointment
* it_ordprp_i = gt_ordprp_i
* it_product_i = gt_product_i
* it_activity_i = gt_activity_i
* it_pridoc = gt_pridoc_com
CHANGING
ct_orderadm_h = gt_orderadm_h
* ct_orderadm_i = gt_orderadm_i
ct_input_fields = gt_input_fields.
* ct_doc_flow = gt_doc_flow
* cv_log_handle = gv_log_handle.
Hope it helps u,
Regards,
Mon. -
How to create a text file or XML file and add content through code into it...
Hi Everyone,
How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
Else say how to create a new XML file through the code and how some content like Example "Hello World".You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
You can then export the file with the doc.exportDataObject method:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.
Maybe you are looking for
-
How many instances of EXS24 can you fit into one session?
Hey all, Well, it seems like I finally have a project where I'm starting to max out my new Intel iMac. Everything was working fine until I added my 22nd VI, and then I started getting all sorts of CPU overload errors. All of my instances are EXS24, a
-
How can I ensure a function is called only once in a query?
I have a function (in a package) that returns the start date and end date to be used by my query. The query was taking bind variables but when I updated it to use the function calls it slowed down a lot. I tried creating an inline view that selects t
-
Confirmation n-step Admin approval workflow
Hello friends, We struck up in setting up admin workflow with the badi BBP_WFL_ADMIN_APPROV. We have activated the workflow WS10400020 and we could able to determine approvers in that badi and able to pass the approver into output parameter of badi
-
Ethernet cable doesn't appear connected?
Over the last few days I have had an intermittnet difficulty conencting to thr Internet. I discovered that although it's physically plugged in, the ethernet cable isn't - the System Network reports, 'The cable for the Built-in Ethernet is not plugged
-
Can i backup photos and music to the icloud
Can I backup photos and music to the icloud