Is index helpful for "group by"?
In an application a statement is executed:
SELECT a b c d MAX(e) SUM(f) FROM my_db_tab
GROUP BY a b c d.
Does it make sense to add an index to my_db_tab for the fields a, b, c and d?
Context: The ABAP is generated so I can not change it. my_db_tab contains approx. 8.000.000 records. The run-time for this command is about 20 minutes. my_db_table is now searched sequentially.
hmmm, your DB table has 8.000.000 entries.
What do you want to select, without where-condition you will select all records, this seems quite impossible to me as no internal table will be able to hold 8 Mio records (if a b c and d are not only one character fields).
=> Is there a where condition? Usually the where condition would determine the index used. The group by does not influence it much.
=> No where, despite the huge number, what is it good for? Group by is used for display, who wants to see 8.000.000 records?
Anyway, if you read no 8.000.000 but still many, then a full table scan is better than an index scan. The database access each table block once with full table scan. If it follows the index it will come to each block several times, and for a large table, not all blocks will stay in the cache, so blocks are loaded several times, which makes the index access even slower than the full table scan.
=> no index
Siegfried
Similar Messages
-
1. I have a group by query 'select max(trackingnumber) from xxx group by dsltn'
What am I supposed to index on, so as to make the query faster - trackingnumber or dsltn.
2. Also if the query has multiple columns in the group by list
Eg :- 'select max(trackingnumber) from xxx group by dsltn, vpi, vci'
..what should be the nature of the index. Should I create a composite index
( like create index x_index on xxx(dsltn, vpi, vci ) )Its taking over an hour working on a table of about 12 million records
"Optimizer" "Cost" "Cardinality" "Bytes" "Partition Start" "Partition Stop" "Partition Id" "ACCESS PREDICATES" "FILTER PREDICATES"
"INSERT STATEMENT" "ALL_ROWS" "750609" "1" "187" "" "" "" "" ""
"SEQUENCE NIMBUS.PRIMARY_KEY_SEQUENCE" "" "" "" "" "" "" "" "" ""
"HASH JOIN(RIGHT SEMI)" "" "750609" "1" "187" "" "" "" ""A"."TRACKINGNUMBER"="$nso_col_1"" ""
"VIEW SYS.VW_NSO_1" "" "348284" "4420502" "57466526" "" "" "" "" ""
"SORT(GROUP BY)" "" "348284" "4420502" "154717570" "" "" "" "" ""
"TABLE ACCESS(FULL) NIMBUS.CIFINV_IR9" "ANALYZED" "285039" "10850252" "379758820" "" "" "" "" "("SERVICEREQTYPE"='CHANGE' OR "SERVICEREQTYPE"='NEW') AND ("SERVICEREQSUBTYPE"='INITIATE' OR "SERVICEREQSUBTYPE"='MODIFY')"
"TABLE ACCESS(FULL) NIMBUS.CIFINV_IR9" "ANALYZED" "285739" "12611792" "2194451808" "" "" "" "" "" -
Oracle 10g:
Does having index help when doing query by "group by"?
For eg: select aa, count(*) from B group by aaErickG wrote:
Hello,
as yo used count(*) a full table scan will be performed. If you use a col1 that was indexed,
like col1 for a count, not group by, an index scan will be performed, but be carefull if there
is no null in table col1, the amount will be incorrect.
RegardsSo I didn't understand that null col will destroy the count. Also why wouldn't having index help when doing group by? -
Hi All,
In CRM Web UI, there is no multi selection option for product group id f4 help for Custmer event creation or edit screen under “Product” tab=> Product Group ID field.
Web UI Component Details -
UI component : TPMOE
View : TPMOE/ProductEOL
Context: PRODUCT Attribute : -PRODUCT_GRUOP
Click on Product Group ID field then below F4 Help screen appears.
In the product group results list, user can select only one row and Then all the product will be queried for selected product group, transferred to product list tab.
Current technical design for Product Group F4:
a) SE11 Data Dictionary search help “CRM_MKTPL_PGRP1” is used and data is fetched displayed based it( Refer method GET_V_PRODUCT_GROUP of context node class CL_TPMOE_PRODUCTEOL_CN00)
b) In UI, F4 pop up is handled by UI Framework in SAP generic manner so no multi selection is allowed.
c) A round trip event is triggered after selection of row from results which reload view with queried product result based group selected.
Requirement :-
In the product group F4 results list View, user should be able to select multiple row .As SAP GUI has the option of multiple entry selection from search help window with the help of field called MULTISEL.
System should query for products with all selected product group, transferred to product list tab.
Note: - The multi select options works fine for GUI, but for UI standard SAP code ignores this or never is this structure taken into consideration. Standard class to display F4 help on UI is CL_THTMLB_F4HELP.
Can we enforce same behavior like DDIC search help in Web UI too Or suggest how we can achieve this requirement?
Thanks in advance
Regards,
ArjunHello All,
We have achieved this requirement by Custom development and approach followed as -
Define UI object model zprgrp & zprgrpquery and object relationship in table ZCRM_OBJTAB
Query Strcuture : ZCRMST_PRGRP_SEARCH & Result List structure : ZCRMST_PRGRP_RESULT
Created Custom component : ZPRGRP with Search /Result view and with GENIL Class, search logic
Defined custom ComponentUsage “ProductGroup1SearchHelp” for ZPRGRP in Standard Component TPMOE
e. Called F4 application for field product _group with help component usage created in step d.
Regards,
Arjun -
F4 help for Code groups while creating a notification.
Hi all,
We are using Exit QQMA0015 to filter the code groups for object parts, Damage, Causes and Activities based on the Z table.
Our requirement is based on Object Parts, we want to restrict f4 help for Damage and then based on Object Parts and Damage we want to restrict f4 help for Causes and so on for Activities based on the Z table . And we are going to maintain multiple values for one Object Part.
For e.g. If we have two entries for Damage code group in z table based on the Object Part, then both these code groups should be shown on f4 help of Damage. So we want to pass multiple code groups from the Z table
We are facing an issue like the export parameter E_codegruppe is an variable and hence we can pass only one value. So in the loop we are trying to pass both the values to the table T_RIWO020TAB and in the exit this table is getting filled with the values we want.
But once we are out of exit the standard table G_RIWO020TAB in the FUNCTION'CATALOGUE_SELECTION' is having values as per standard configuration and we are not able to get the values we want.
Please suggest on the above mentioned requirement. This will be really helpful for us.
Thanks & Regards,
Sonali Deshmukhdone
-
Search help for purchase group in redistribute workload
HI:
I want to redistribute SC to other purchase group, when I logon on the SRM with language ZH, the search help for pur group does not work, but if I logon on with EN,everything is fine.
could anyone tell me why?
Message was edited by:
hong panHi Arun,
I didn't find Purchase order field in selection-screen of MB51. Please check from your end and let us know exact problem.
Regards,
Shravan Kumar N -
F4 help for custom table field - to be used when populating data thru SM30
Hi,
I have a custom table with 5 fields - say A, B, C, D and E. While populating data to the table through SM30, I need to create a F4 help for the field C. A custom function module needs to be used.
I have created a module for the same in the event PROCESS ON VALUE-REQUEST of the function group of the table.
But the F4 for field C depends on the values put in fields A and B.
I am not able to get the values of fields A and B from within the module PROCESS ON VALUE-REQUEST.
Please help me to create the F4 help.hii,
This is the piece of code i have used in one of my SM30 to get f4. mopdify according to ur need and use.
revert back for further help.
w_dynpread-fieldname = 'ZSITEDCDATA-SITE'.
APPEND w_dynpread TO i_dynpread.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'SAPLZSITEDCDATA'
dynumb = sy-dynnr
translate_to_upper = 'X'
TABLES
dynpfields = i_dynpread
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE i_dynpread INTO w_dynpread INDEX 1.
IF sy-subrc IS INITIAL.
SELECT land1 FROM t001w
INTO TABLE i_site
WHERE werks EQ w_dynpread-fieldvalue.
IF i_site[] IS NOT INITIAL.
DATA: lv_line TYPE i.
CLEAR lv_line.
DESCRIBE TABLE i_site LINES lv_line.
IF lv_line GT 1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ZSITEDCDATA-SITE_COUNTRY'
dynpprog = 'SAPLZSITEDCDATA'
dynpnr = sy-dynnr
window_title = 'Site Country'
value_org = 'S'
TABLES
value_tab = i_site[]
return_tab = i_return
EXCEPTIONS
parameter_error = 1
no_values_found = 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.
ELSE.
READ TABLE i_return INTO w_return INDEX 1.
IF sy-subrc IS INITIAL.
zsitedcdata-site_country = w_return-fieldval.
ENDIF.
ENDIF.
Thanks ,
Gaurav -
Providing online Help for Flex-based applications
I have been asked to provide online Help for a Flex application. As I have never done this before, I have a few questions:
- What is the format for the Help topics?
- Are there control-type files (e.g., TOC, index, project file) that need to be created? If so, what is the format for these?
- Is the Help compiled? If so, which compiler is used?
- How is context-sensitive Help created?
I'd also like to know if there are any resources I could look at that covers these Help issues. Thanks.Hi,
You can acheive the same by the addition of [USER-COMMAND fcode].
RADIOBUTTON GROUP group [USER-COMMAND fcode] - The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.
So you code should be altered as
PARAMETERS: rb_appl RADIOBUTTON GROUP rad
USER-COMMAND radclick "Addition which you have to make.
DEFAULT 'X',
rb_pres RADIOBUTTON GROUP rad ,
p_file TYPE ibipparms-path.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
IF rb_appl = 'X'.
PERFORM f_applictn_server_filenm.
ELSEIF rb_pres = 'X'.
PERFORM f_presentation_filenm.
ENDIF.
Thanks & Regards,
Harish -
Hi,
I have a requirement where i have to insert a F4 help for setheader-rvalue(business sector).
I have declared a select option for rvalue on the selection screen.
I have written a code like
*data declaration
DATA: w_setnr LIKE rgsbs-setnr.
CONSTANTS: c_rvalue LIKE rgsmh-field VALUE 'RVALUE',
c_table LIKE rgsmh-table VALUE 'SETHEADER'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_rvalue-low.
PERFORM search_group_value USING s_rvalue-low c_rvalue.
form search_group_value using group
fieldname.
DATA: w_searchfield LIKE RGSBS-searchfld.
Display group possible entries.
w_searchfield = group.
CALL FUNCTION 'K_GROUP_SELECT'
EXPORTING
field_name = fieldname
searchfld = w_searchfield
table = c_table
IMPORTING
set_name = w_setnr
EXCEPTIONS
no_set_picked = 1
OTHERS = 2.
group = w_setnr(24).
endform. " search_group_value
when i go to the selection screen when i press f4 on rvalue it displays as * instead of the value from setheader table.
Kindly let me know how to use FM: 'K_GROUP_SELECT'.
Regards
Yamini.AHi,
See this code............
at selection-screen on value-request for s_pernr-low.
perform get_values changing s_pernr-low.
at selection-screen on value-request for s_pernr-high.
perform get_values changing s_pernr-high.
*& Form get_values
text
-->P_S_PERNR_LOW text
FORM get_values CHANGING P_S_PERNR.
refresh t_itab.
clear t_return.
select pernr from zfdmr_records into table t_itab.
delete adjacent duplicates from t_itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'PERNR'
PVALKEY = ' '
DYNPPROG = sy-cprog
DYNPNR = sy-dynnr
DYNPROFIELD = 'ZFDMR_RECORDS-PERNR'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = 'F'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
VALUE_TAB = t_itab
FIELD_TAB =
RETURN_TAB = t_return
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 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.
READ TABLE t_return INDEX 1.
p_s_pernr = t_return-fieldval.
ENDFORM. " get_values
I hope this will help you.
If your is solved with this award points and close thread.
Thanks. -
How to get search help for 2nd parameter based on the 1st parameter value
Hi all!
I have 2 parameters (material no, revision level). I have created a search help for revision level. It has an importing parameter :material no. and one exporting parameter : revision level.When I checked it, it's giving the revision values only for the specified.
In my report , I have kept these 2 materials in my selection screen.For revision level , I have added the matchcode object which I have created. When I pressed F4 for revision level, it's giving all the values irrespective of the material no. in the first parameter. How to solve it? Please suggest.Hi,
Try this code filling internal table fields,
DATA: BEGIN OF values,
OID TYPE ZCL_OBJECT-OBJECTID,
ODEC TYPE ZCL_OBJECT-OBJECT_DESC,
END OF values,
W_FIELD(10).
DATA: ZCL_PROJECT-PROJECTID type zcl_project-projectid,
ZCL_OBJECT-OBJECTID(5).
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values,
values_tab LIKE TABLE OF values.
CALL SCREEN 100.
*& Module VALUE_PROJECTID INPUT
text
*MODULE VALUE_PROJECTID INPUT.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'ZCL_PROJECT'
fieldname = 'PROJECTID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ZCL_PROJECT-PROJECTID'.
*ENDMODULE. " VALUE_PROJECTID INPUT
*& Module VALUE_OBJECTID INPUT
text
MODULE VALUE_OBJECTID INPUT.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
W_FIELD = FIELD_VALUE-FIELDVALUE.
SELECT OBJECTID
OBJECT_DESC
FROM ZCL_OBJECT
INTO (VALUES-OID,
VALUES-ODEC)
WHERE PROJECTID = FIELD_VALUE-FIELDVALUE.
APPEND VALUES TO VALUES_TAB.
ENDSELECT.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'OID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ZCL_OBJECT-OBJECTID'
value_org = 'S'
TABLES
value_tab = values_tab.
ENDMODULE. " VALUE_OBJECTID INPUT
*& Module INIT OUTPUT
text
MODULE INIT OUTPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'ZCL_PROJECT-PROJECTID'.
APPEND field_value TO dynpro_values.
IF SY-UCOMM = 'BACK'.
LEAVE program.
ENDIF.
IF SY-UCOMM = 'ANS'.
LEAVE TO SCREEN '0'.
ENDIF.
ENDMODULE. " INIT OUTPUT
START-OF-SELECTION.
WRITE: / field_value-fieldvalue,
W_FIELD.
LOOP AT VALUES_TAB INTO VALUES.
WRITE / VALUES.
ENDLOOP.
if sy-subrc <> 0.
WRITE / field_value-fieldvalue.
endif.
Plzz reward points if it helps -
F4 help for a field in module pool
Hello Experts,
I need to provide f4 help on field sales office(VKBUR) in my module pool program.
I have searched forums about it. but all forum contains either doc. no or customers etc.
these field are directly available on table, so very easy to find.
But for sales office, how can i provide f4 help. there is no straight entries in tables like for this company code this sales office.
so its getting difficult for me to provide help.
so if anybody know the solution plz help, and if anyone know table where all sales offices are stored, i will be thankful.
Thanks,
AmarHi amar_war,
use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
H_TVBUR has no more parameters, it will display a list of al sales offices with description text
H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
Try standard search help for standard field first.
You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
Regards,
Clemens -
F4 help for a field in item table in a view cluster
Hi All,
I have a view cluster with two tables. I should provide F4 help for field in item table based on the selected row of the header table.
F4 should have only values fetched based on the header table entry.
How can i achieve this. Please suggest.
Regards,
Kusuma K.Hi amar_war,
use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
H_TVBUR has no more parameters, it will display a list of al sales offices with description text
H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
Try standard search help for standard field first.
You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
Regards,
Clemens -
HI all,
in the report selection screen i have one field for which F4 HELP doesnt exits, even in the table for that field F4 HELP is not there but the user requests me to get the F4 HELP for that field in the selection screen .
please help how to get F4 HELP for the field
thanks in advance.The following are the options for F4 help
Code:
PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
*Input help for Cost Center Group
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ccgrp.
TYPES: BEGIN OF ty_ccenter_group,
setname TYPE setnamenew,
descript TYPE settext,
END OF ty_ccenter_group.
DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.
CLEAR it_ccenter_group.
SELECT a~setname
b~descript
INTO TABLE it_ccenter_group
FROM setheader AS a INNER JOIN
setheadert AS b ON
asubclass EQ bsubclass AND
asetname EQ bsetname
WHERE a~setclass EQ '0101' AND
b~langu EQ sy-langu.
CALL FUNCTION
'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
ret field = 'SETNAME'
dynpprog = v_repid
dynpnr = SY-DYNR
dynprofield = 'P_CCGRP'
value_org = 'S'
TABLES
value_tab = it_ccenter_group.
F4IF_FIELD_VALUE_REQUEST:
This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three
parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD
Getting F4 help based on other field .
Suppose if there are 2 fields on selection screen user name and Purchasing Document and the case is getting values of Purchasing Document Number based on user name
Code:
TYPES: BEGIN OF ty_match_nast,
objky TYPE na_objkey,
END OF ty_match_nast.
Data: it_match_nast TYPE STANDARD TABLE OF ty_match_nast.
Data: it_dypr_val TYPE STANDARD TABLE OF dynpread.
DATA: wa_dypr_val TYPE dynpread.
DATA: it_return TYPE STANDARD TABLE OF ddshretval.
Case when only username value is entered.
SELECT objky
FROM nast
INTO TABLE it_match_nast
WHERE kappl = c_ef
AND kschl = c_neu
AND usnam = wa_dypr_val-fieldvalue.
ENDIF.
*Read User name on selection screen field value
CLEAR wa_dypr_val.
REFRESH it_dypr_val.
wa_dypr_val-fieldname = 'P_UNAME'. "User name
APPEND wa_dypr_val TO it_dypr_val.
*FM to get the value
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
translate_to_upper = 'X'
TABLES
dynpfields = it_dypr_val_h.
*Pass the values to f4 table
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = u2018OBJKY'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_EBELN'
value_org = 'P'
TABLES
value_tab = it_match_nast
return_tab = it_return. -
F4 HELP for standard field..
i want to put F4 help for standard field FERTH in mm01 and mm02 ...
is there any way to put F4 help for this field..try this
1. First go to SE11 and create your own search help( if you dont know how to create a search help please feel free to ask me, it is very easy).
2. Now in your module pool program program go to the layout of your screen.
3. Now when you see the attributes of this field in the Dict tab you will find the field Search Help. Now here you can specify the name of the search help you created in SE11.
There is also another mehtod to create the dynamic search help. eg:- in a posted document data get the Document nos related to that company code.
The sample code is like this:-
First of all declare the module below in the flow logic of your screen then create it in your main program.
You declare the module in the PROCESS ON VALUE-REQUEST.
PROCESS ON VALUE-REQUEST.
FIELD TXT_DOCNO MODULE VALUE_BELNR.
You also need to create an internal table where you wil store results of the select query fired below in the module.
here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)
MODULE VALUE_BELNR INPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'TXT_CODCO'.
APPEND field_value TO dynpro_values.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'BKPF'
fieldname = 'BUKRS'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_CODCO'.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
SELECT BUKRS BELNR
FROM BKPF
INTO CORRESPONDING FIELDS OF TABLE it_doc1
WHERE BUKRS = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BELNR'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_BELNR'
value_org = 'S'
TABLES
value_tab = it_doc1.
ENDMODULE. " VALUE_BELNR INPUT -
F4 help for a field Based on the data in the other fields
Hi,
We have a selection screen(Report Program) with three fields Bill Number, Billing Date and Plant. Bill Number and Plant are stored in one table and Bill Number and Billing Date are stored in another table, Bill number is common in Both the Tables. We want to have a F4 Help for Bill Number based on Both the Plant and Billing date. For this we are trying to get it thorugh Search Help,, Can any of you help us in this context.
Thanks & Regards,
Satish P.hi,
FORM F_GET_details .
REFRESH INT_RET.
*--THIS WILL FETCH THE details
SELECT aBill aplant Number b~BillingDate
INTO TABLE int_table
FROM ( ztable_numplant AS a
INNER JOIN
ztable_numdate AS b
ON abillnimber = bbillnumber ).
IF SY-SUBRC NE 0.
*--MESSAGE IS 'NO data found'
ELSE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = INT_tab
RETURN_TAB = INT_RET
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 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.
READ TABLE INT_RET INDEX 1 INTO INT_RET.
WF_data_needed = INT_RET-FIELDVAL.
ENDIF.
ENDFORM.
if hlped rwrd points
anver
Maybe you are looking for
-
Motion 5 crashes on quit?
Motion 5 has seemed quite solid and a pleasure to go deeper into. But every single time i am done, happy and i quit - Motion gnerates a crash report. It does not seem to matter the simplicity or the complexity...it will run all but as soon as I am do
-
for U2 abum--I tired the suggestions listed. here,. None worked. The store says purchased. I did not get it. Now what? I sent a feed back to itunes support. Also when people say they got it on iCloud, what do they mean? I don't see any music librar
-
I have done clean installation of Windows 8.1 on my HP Pavilion G4. Then I realize that I cannot put my computer on sleep mode and cannot adjust screen brightness. I understand that those problems caused by the graphic card driver. My computer is run
-
Cannot dowload latest version of itunes
why can't I dowload latest version of itunes,the dowload gets so far then message pops up about route to Bonjour.msi canno find this route
-
Hello Professionals, I just need some help to clarify the following: 1. Can downpayment or its partial/full invoice be made with a Periodic billing plan or can only be with Milestone billing plan? 2. when downpayment is received in FI department, a