Submit with select-option
Hi all.
I have a strange problem in which I'm asctivating an abap program with parameters.
The parameters are being passed fine but the select-option is being passed wrong.
so_vbeln-sign = 'I'.
so_vbeln-option = 'EQ'.
so_vbeln-low = 'IEQL'.
Although before the submit command its source range includes the following:
gr_vbeln-sign = 'I'.
gr_vbeln-option = 'EQ'.
gr_vbeln-low = '4500000988'.
Why's that? What am I missing??
Thanks in advance,
Rebeka
Hi,
Try this for select-options:
SUBMIT PROGRAM_B
WITH S_MATNR *IN* S_MATNR ->pass all the values from a select option.
WITH P_WERKS EQ P_WERKS ->pass a single value from a parameter.
AND RETURN
Hope it helps.
Regards,
Gilberto Li
Edited by: Gilberto Li on Feb 2, 2009 10:24 PM
Edited by: Gilberto Li on Feb 2, 2009 10:33 PM
Edited by: Gilberto Li on Feb 2, 2009 10:33 PM
Similar Messages
-
Issue with Select options in select statement - ABAP Question
Hi
I am facing an issue with select options. Select statement is returning sy-subrc as 4.
I wrote the program as below:
SELECT-OPTIONS:
s_kunnr FOR bsad-kunnr,
s_lifnr FOR bsak-lifnr,
s_gjahr FOR bsad-gjahr,
s_bukrs FOR bsad-bukrs,
s_saknr FOR bsad-saknr,
s_budat FOR bsak-budat.
In start of selection I have written the select statement as
SELECT * FROM bsak INTO TABLE lt_bsak
WHERE bukrs IN s_bukrs AND lifnr = s_lifnr AND gjahr IN s_gjahr AND budat IN s_budat AND saknr IN s_saknr.
In selection screen I have not entered any values and executed the program. I am not getting any result. When I debug that, sy-subrc is 4 at above select statement. But table has records.
If am removing the "lifnr = s_lifnr " condition in select then select is returning values.
I am not getting where I made the mistake. Please suggest.
Thank you
HanuHi,
The problem here with where condition select option lifnr = s_lifnr.
Use below select query.
SELECT * FROM bsak INTO TABLE lt_bsak
WHERE bukrs IN s_bukrs
AND lifnr IN s_lifnr
AND gjahr IN s_gjahr
AND budat IN s_budat
AND saknr IN s_saknr.
s_lifnr is a select option and you are passing it as parameter lifnr = s_lifnr.
if you want to pass this s_lifnr as single vale then pass in below mentioned way.
lifnr = s_lifnr-low
BR,
Vijay -
Mulitple selection with select option on subscreen
Hi colleagues,
I've the following issue:
I'm programming a dynpro this dynpro contains two subscreens. The lower subscreen will contain another dynpro defined as subscreen with an ALV to display results.
The top subscreen (0150) area will be filled with a generated subscreen with the command
SELECTION-SCREEN BEGIN OF SCREEN 0150 AS SUBSCREEN.
with select options I define my selection area like:
SELECT-OPTIONS: sa_6 FOR gs_rp_attrib_sel-sonr.
If I call my transaction starting up the dynpro containing the two subscreens the result looks quit how I expect it. BUT then I try to start up the multiply selection Pop-UP for the selection field by pressing the button just right behind the HIGH input field, nothing happens. The multiply selection pop-up basicly does not show up.
Any clues what I need to add that it will show up?
Does the mulitply selection not work with
SELECTION-SCREEN BEGIN OF SCREEN 0150 <b>AS SUBSCREEN</b>???
(If I do a simple test program with a selection screen not being a subscreen, the multiply select popup comes up.)Hi,
A subscreen cannot call another screen.
I guess this is the reason why u are facing this problem.
Thanks,
Rashmi. -
Innput field with Select option on custom screen
Hi,
I need to create an Input field with Select Option(No interval) button on Custom dialog screen .
Is there any idea how can I create it on screen ?
Thanks
Sachincreate a normal inputfield and place an icon next to it. then in the pai on click of that button use the following code.
data: wf_tab_field like rstabfield occurs 0 with header line ,
wf_exl_opt like rsoptions .
refresh: wf_tab_field .
move: 'KOSTL' to wf_tab_field-fieldname ,
'CSKS' to wf_tab_field-tablename .
append wf_tab_field .
clear wf_tab_field .
move: 'X' to wf_exl_opt-bt ,
'X' to wf_exl_opt-cp ,
'X' to wf_exl_opt-ge ,
'X' to wf_exl_opt-gt ,
'X' to wf_exl_opt-le ,
'X' to wf_exl_opt-lt ,
'X' to wf_exl_opt-nb ,
'X' to wf_exl_opt-np .
call function 'COMPLEX_SELECTIONS_DIALOG'
exporting
title = 'Select Cost Centers'
text = 'Cost Center'
* SIGNED = 'X'
* LOWER_CASE = ' '
* NO_INTERVAL_CHECK = ' '
* JUST_DISPLAY = ' '
* JUST_INCL = ' '
excluded_options = wf_exl_opt
* DESCRIPTION =
help_field = 'CSKS-KOSTL'
* SEARCH_HELP = 'KOST'
tab_and_field = wf_tab_field
tables
range = r_kostl
exceptions
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 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.
if not r_kostl[] is initial .
read table r_kostl index 1 .
if sy-subrc eq 0 .
move: r_kostl-low to wf_t_kostl .
endif .
endif .
wf_t_kostl is the screen field name.
Raja -
How to declare and work with select-option in screen painter?
hello there,
can anybody plz suggest me ,how to declare and work with select-option in screen painter?
neonHi Blue,
Please check these threads which will help you a lot..
module pool programming " to add selection-option on screen"
Re: Select option in Dialog program screen
Re: SELECT-OPTIONS in Screen
Good luck
Narin -
Dear Experts,
I used component wdr_select_options to achieve select options functionality, But it displaying only one field as per my requirement user expecting both low & high fields.
Can you guide for 5 select options whether i have use t times the component at my component level.
And also could please guide me how to use select options at code level.
Thanks & Regards,
Siva Mandapudi.
Edited by: SIVAMANDAPUDI on Jul 18, 2011 6:39 PMHi Saravan,
Please find below details.
The exception is:
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "ONACTIONSEARCH_SUPPLIER" "(METHOD)", nor was it propagated by a
RAISING clause.
code:
DATA FOR WORKING WITH SELECT OPTIONS
data: rt_SUPPLIERNO type ref to data.
data: rt_SUPPLIERNAME type ref to data.
field-symbols: <fs_SUPPLIERNO> type table,
<fs_SUPPLIERNAME> type table.
TYPES: BEGIN OF T_SUPPLIERNO,
SIGN(1),
OPTION(2),
LOW TYPE /SAPAPO/LOC,
HIGH TYPE /SAPAPO/LOC,
END OF T_SUPPLIERNO.
TYPES: BEGIN OF T_SUPPLIERNAME,
SIGN(1),
OPTION(2),
LOW TYPE /SAPAPO/LOC_DESCR40,
HIGH TYPE /SAPAPO/LOC_DESCR40,
END OF T_SUPPLIERNAME.
DATA: WA_SUPPLIERNO TYPE T_SUPPLIERNO, IT_SUPPLIERNO TYPE TABLE OF T_SUPPLIERNO,
WA_SUPPLIERNAME TYPE T_SUPPLIERNAME, IT_SUPPLIERNAME TYPE TABLE OF T_SUPPLIERNAME.
Retrieve the data from the select option
rt_SUPPLIERNO = wd_this->m_handler->get_range_table_of_sel_field(
i_id = 'ID_SNO' ).
dump raising when get_range_table_of_sel_field is called.
Thanks a lot.
Regards
Siva Mandapudi. -
Multiple records with select option
i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name from sm35, the table from where data is retrieved is APQI, i have used a parameter before using select option ,like:
selection-screen begin of line.
parameters: P_grpid like apqi-groupid.
select-options: s_grpid like apqi-groupid.
selection-screen end of line.
AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
{the code starts
FM F4 selection is called}
AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
FM F4 selection is called}
now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
Thanks
SwarnaliHello Swarnali,
You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
so sudo code will be:
AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
Select data from table.
so_carr-LOW = value
append so_carr.
You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
Thanks,
Augustin. -
Working with select option in WD4A
can any one provide me some document or video file to work with select options in webdynro for abap?
Hi,
Find the following URLs
PDF - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d
Video Clip - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/1a3c52e7-0b01-0010-ed81-f31d4868c5d6
Login to SDN to play the video clip.
Reward accordingly.
Regards
ChandraK -
Module Pool with select options
Hi,
I have created select-option and radio button in Module pool. My req is that I when the user enters any value and click on the radio button the respective programs should be executed.
Thanks
HariHi Hariharan,
I would recommend you to use primarily use push button and then after SUBMIT statement, and also the example for the same is provided below:
*Code used to execute a report
SUBMIT Zreport.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
* load each personnel number accessed from the structure into
* parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
with p_param2 = 'value'.
Please validate the same at your end as well, please come back, if inputs are required.
BR/Thanks
Pranav Agrawal -
Subscreen with Select-Options called from At Selection Screen event
Dear friends,
I'm trying to call a subscreen that contains a select-options, from an 'at selection screen' event, in a report program, but without sucess.
Here's go what I'm doing:
I declared a selection-screen as subscreen in my main program, and I'm calling it from a module-pool subscreen area, to make the module-pool select-options magic.
In my main report program, I have a customized status GUI with a new toolbar button and I'm handling it at the 'at selection screen' event.
What I need to do is to call the subscreen that contains the select-options when this new customized button get pressed, but when It happens, the select-option selections pop-up doesn't appear.
If I call the subscreen from the 'start-of-selection' event, it goes fine, just don't work from the 'at selection screen'.
Any ideas on how can I do it?
Thank you,
Heberi think you should try something like this:
at selection screen.
if condition handled ....
show_popup = 'X'.
endif.
at selection screen output.
if show_popup EQ 'X.
call subscreen
endif. -
F4 help for PO number field with SELECT OPTIONS
Hi all,
I have a field (PO no) using SELECT OPTIONS on my selection screen.I need F4 help for this field.How shud i declare it?
I have declared it as follows:
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
select-options sel_po for ZPO_LOI-zobject_id obligatory .
SELECTION-SCREEN END OF BLOCK b1.
ZPO_LOI is a table view with a z data element ZOBJECT_ID to which i have attached a search help which displays the required values for the PO field in the selection screen.But now the problem is i cant see the F4 icon for the field on the sel screen.
Please help.Hi I have a sapmle code for this.
*& AT SELECTION SCREEN ON VALUE REQUEST
*-- F4 help for IDOC numbers
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-low.
PERFORM value_request_status USING 'S_DOCNUM-LOW'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-high.
PERFORM value_request_status USING 'S_DOCNUM-HIGH'.
*& Form value_request_status
text
-->fp_field dynpro field that gets the return value
FORM value_request_status USING fp_field TYPE dynfnam.
STATICS tl_values TYPE STANDARD TABLE OF tp_value.
IF tl_values IS INITIAL.
SELECT docnum FROM edidc UP TO 500 ROWS INTO TABLE tl_values
WHERE credat IN s_credat
AND cretim IN s_cretim.
IF sy-subrc eq 0.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'DOCNUM'
dynpprog = syst-repid
dynpnr = syst-dynnr
dynprofield = fp_field
value_org = 'S'
TABLES
value_tab = tl_values
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc IS NOT INITIAL.
MESSAGE i999(zz) WITH 'No values found'(004).
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " value_request_status
Regards,
Amit. -
Problem with select option in module pool
Hello friends,
I have successfully created a select option in my module using sub-screen. My problem is the EXTENSION buttom in the select option. When i click on the EXTENSION button a proper pop-up appears but when i input some values or cancel this pop-up then the program gives the following dump.
Error
The attribute screen type with the values 'Normal Screen' and
'Subscreen' determines the use of the screen. If a normal screen is used
as subscreen or vice versa, an error occurs.
The screen "ZRPMSEA" 0002 has, in this respect, an inappropriate screen type.
Kindly HelpHI,
Go to the Screen Attributes and select the appropriate Radio Button
1) Normal Screen " Whichever is required (in Which type of Screen you Want)
2) Subscreen " Check for the Correct type and Check the Radio Button Accordingly
3) Modal Scree
Cheerz
Ram -
How to make htis code work with select options???
REPORT YTEST.
TABLES: MARA,MARC,MARD,MBEW,MVKE,MAKT.
DATA: BEGIN OF I_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,
EKGRP LIKE MARC-EKGRP,
PSTAT LIKE MARC-PSTAT,
DISPO LIKE MARC-DISPO,
BESKZ LIKE MARC-beskz,
END OF I_MARC.
DATA: BEGIN OF I_MARD OCCURS 0,
MATNR LIKE MARD-MATNR,
LGORT LIKE MARD-LGORT,
ERSDA LIKE MARD-ERSDA,
WERKS LIKE MARD-WERKS,
END OF I_MARD.
DATA: BEGIN OF I_MBEW OCCURS 0,
MATNR LIKE MBEW-MATNR,
BWKEY LIKE MBEW-BWKEY,
PEINH LIKE MBEW-PEINH,
END OF I_MBEW.
DATA: BEGIN OF I_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
MEINS LIKE MARA-MEINS,
MBRSH LIKE MARA-MBRSH,
BSTME LIKE MARA-BSTME,
END OF I_MARA.
DATA: BEGIN OF I_MVKE OCCURS 0,
MATNR LIKE MVKE-MATNR,
VKORG LIKE MVKE-VKORG,
VTWEG LIKE MVKE-VTWEG,
VRKME LIKE MVKE-VRKME,
KONDM LIKE MVKE-KONDM,
END OF I_MVKE.
DATA: BEGIN OF I_MAKT OCCURS 0,
MATNR LIKE MAKT-MATNR,
SPRAS LIKE MAKT-SPRAS,
MAKTX LIKE MAKT-MAKTX,
END OF I_MAKT.
DATA: BEGIN OF I_OUT OCCURS 0,
MATNR LIKE MARC-MATNR,
MEINS LIKE MARA-MEINS,
MBRSH LIKE MARA-MBRSH,
MATKL LIKE MARA-MATKL,
MTART LIKE MARA-MTART,
BSTME LIKE MARA-BSTME,
WERKS LIKE MARD-WERKS,
EKGRP LIKE MARC-EKGRP,
PSTAT LIKE MARC-PSTAT,
DISPO LIKE MARC-DISPO,
BESKZ LIKE MARC-BESKZ,
LGORT LIKE MARD-LGORT,
ERSDA LIKE MARD-ERSDA,
BWKEY LIKE MBEW-BWKEY,
PEINH LIKE MBEW-PEINH,
VKORG LIKE MVKE-VKORG,
VTWEG LIKE MVKE-VTWEG,
VRKME LIKE MVKE-VRKME,
KONDM LIKE MVKE-KONDM,
SPRAS LIKE MAKT-SPRAS,
MAKTX LIKE MAKT-MAKTX,
END OF I_OUT.
select-options: s_matnr for marc-matnr.
SELECT MATNR EKGRP PSTAT DISPO BESKZ FROM MARC INTO
CORRESPONDING FIELDS OF TABLE I_MARC where matnr in s_matnr.
SELECT MATNR MTART MATKL MEINS MBRSH BSTME FROM MARA INTO
CORRESPONDING FIELDS OF
TABLE I_MARA FOR ALL ENTRIES IN I_MARC
WHERE MATNR EQ I_MARC-MATNR.
SELECT MATNR SPRAS MAKTX FROM MAKT INTO
CORRESPONDING FIELDS OF TABLE I_MAKT
FOR ALL ENTRIES IN I_MARC
WHERE MATNR = I_MARC-MATNR.
SELECT MATNR LGORT ERSDA WERKS FROM MARD INTO
CORRESPONDING FIELDS OF TABLE
I_MARD FOR ALL ENTRIES IN I_MAKT
WHERE MATNR = I_MAKT-MATNR.
SELECT MATNR BWKEY PEINH FROM MBEW INTO
TABLE I_MBEW
FOR ALL ENTRIES IN I_MARD
WHERE MATNR = I_MARD-MATNR.
SELECT MATNR VKORG VTWEG VRKME KONDM FROM MVKE INTO
TABLE I_MVKE
FOR ALL ENTRIES IN I_MBEW
WHERE MATNR = I_MBEW-MATNR.
LOOP AT I_MARC.
MOVE I_MARC-MATNR TO I_OUT-MATNR.
MOVE I_MARC-EKGRP TO I_OUT-EKGRP.
MOVE I_MARC-PSTAT TO I_OUT-PSTAT.
MOVE I_MARC-DISPO TO I_OUT-DISPO.
MOVE I_MARC-BESKZ TO I_OUT-BESKZ.
READ TABLE I_MARA WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MARA-MTART TO I_OUT-MTART.
MOVE I_MARA-MBRSH TO I_OUT-MBRSH.
MOVE I_MARA-MEINS TO I_OUT-MEINS.
MOVE I_MARA-MATKL TO I_OUT-MATKL.
MOVE I_MARA-BSTME TO I_OUT-BSTME.
READ TABLE I_MAKT WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MAKT-SPRAS TO I_OUT-SPRAS.
MOVE I_MAKT-MAKTX TO I_OUT-MAKTX.
READ TABLE I_MARD WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MARD-LGORT TO I_OUT-LGORT.
MOVE I_MARD-ERSDA TO I_OUT-ERSDA.
MOVE I_MARD-WERKS TO I_OUT-WERKS.
READ TABLE I_MBEW WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MBEW-BWKEY TO I_OUT-BWKEY.
MOVE I_MBEW-PEINH TO I_OUT-PEINH.
READ TABLE I_MVKE WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MVKE-VKORG TO I_OUT-VKORG.
MOVE I_MVKE-VTWEG TO I_OUT-VTWEG.
MOVE I_MVKE-VRKME TO I_OUT-VRKME.
MOVE I_MVKE-KONDM TO I_OUT-KONDM.
APPEND I_OUT.
CLEAR I_OUT.
ENDLOOP.
Loop at i_out.
write:/ i_out-MATNR,
i_out-EKGRP,
i_out-PSTAT,
i_out-DISPO,
i_out-BESKZ,
i_out-LGORT,
i_out-ERSDA ,
i_out-WERKS,
i_out-BWKEY,
i_out-PEINH,
i_out-MTART,
i_out-MATKL,
i_out-MEINS,
i_out-MBRSH,
i_out-BSTME,
i_out-VKORG,
i_out-VTWEG,
i_out-VRKME,
i_out-KONDM,
i_out-SPRAS,
i_out-MAKTX.
endloop.
regards,
sriramREPORT YTEST.
TABLES: MARA,MARC,MARD,MBEW,MVKE,MAKT.
DATA: BEGIN OF I_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,
EKGRP LIKE MARC-EKGRP,
PSTAT LIKE MARC-PSTAT,
DISPO LIKE MARC-DISPO,
BESKZ LIKE MARC-beskz,
END OF I_MARC.
DATA: BEGIN OF I_MARD OCCURS 0,
MATNR LIKE MARD-MATNR,
LGORT LIKE MARD-LGORT,
ERSDA LIKE MARD-ERSDA,
WERKS LIKE MARD-WERKS,
END OF I_MARD.
DATA: BEGIN OF I_MBEW OCCURS 0,
MATNR LIKE MBEW-MATNR,
BWKEY LIKE MBEW-BWKEY,
PEINH LIKE MBEW-PEINH,
END OF I_MBEW.
DATA: BEGIN OF I_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
MEINS LIKE MARA-MEINS,
MBRSH LIKE MARA-MBRSH,
BSTME LIKE MARA-BSTME,
END OF I_MARA.
DATA: BEGIN OF I_MVKE OCCURS 0,
MATNR LIKE MVKE-MATNR,
VKORG LIKE MVKE-VKORG,
VTWEG LIKE MVKE-VTWEG,
VRKME LIKE MVKE-VRKME,
KONDM LIKE MVKE-KONDM,
END OF I_MVKE.
DATA: BEGIN OF I_MAKT OCCURS 0,
MATNR LIKE MAKT-MATNR,
SPRAS LIKE MAKT-SPRAS,
MAKTX LIKE MAKT-MAKTX,
END OF I_MAKT.
DATA: BEGIN OF I_OUT OCCURS 0,
MATNR LIKE MARC-MATNR,
MEINS LIKE MARA-MEINS,
MBRSH LIKE MARA-MBRSH,
MATKL LIKE MARA-MATKL,
MTART LIKE MARA-MTART,
BSTME LIKE MARA-BSTME,
WERKS LIKE MARD-WERKS,
EKGRP LIKE MARC-EKGRP,
PSTAT LIKE MARC-PSTAT,
DISPO LIKE MARC-DISPO,
BESKZ LIKE MARC-BESKZ,
LGORT LIKE MARD-LGORT,
ERSDA LIKE MARD-ERSDA,
BWKEY LIKE MBEW-BWKEY,
PEINH LIKE MBEW-PEINH,
VKORG LIKE MVKE-VKORG,
VTWEG LIKE MVKE-VTWEG,
VRKME LIKE MVKE-VRKME,
KONDM LIKE MVKE-KONDM,
SPRAS LIKE MAKT-SPRAS,
MAKTX LIKE MAKT-MAKTX,
END OF I_OUT.
select-options: s_matnr for marc-matnr.
SELECT MATNR EKGRP PSTAT DISPO BESKZ FROM MARC INTO
CORRESPONDING FIELDS OF TABLE I_MARC where matnr in s_matnr.
if i_marc[] is not initial.
SELECT MATNR MTART MATKL MEINS MBRSH BSTME FROM MARA INTO
CORRESPONDING FIELDS OF
TABLE I_MARA FOR ALL ENTRIES IN I_MARC
WHERE MATNR EQ I_MARC-MATNR.
SELECT MATNR SPRAS MAKTX FROM MAKT INTO
CORRESPONDING FIELDS OF TABLE I_MAKT
FOR ALL ENTRIES IN I_MARC
WHERE MATNR = I_MARC-MATNR.
endif.
if i_makt[] is not initial.
SELECT MATNR LGORT ERSDA WERKS FROM MARD INTO
CORRESPONDING FIELDS OF TABLE
I_MARD FOR ALL ENTRIES IN I_MAKT
WHERE MATNR = I_MAKT-MATNR.
endif.
if i_mard[] is not initial.
SELECT MATNR BWKEY PEINH FROM MBEW INTO
TABLE I_MBEW
FOR ALL ENTRIES IN I_MARD
WHERE MATNR = I_MARD-MATNR.
endif.
if i_mbew[] is not initial.
SELECT MATNR VKORG VTWEG VRKME KONDM FROM MVKE INTO
TABLE I_MVKE
FOR ALL ENTRIES IN I_MBEW
WHERE MATNR = I_MBEW-MATNR.
endif.
LOOP AT I_MARC.
MOVE I_MARC-MATNR TO I_OUT-MATNR.
MOVE I_MARC-EKGRP TO I_OUT-EKGRP.
MOVE I_MARC-PSTAT TO I_OUT-PSTAT.
MOVE I_MARC-DISPO TO I_OUT-DISPO.
MOVE I_MARC-BESKZ TO I_OUT-BESKZ.
READ TABLE I_MARA WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MARA-MTART TO I_OUT-MTART.
MOVE I_MARA-MBRSH TO I_OUT-MBRSH.
MOVE I_MARA-MEINS TO I_OUT-MEINS.
MOVE I_MARA-MATKL TO I_OUT-MATKL.
MOVE I_MARA-BSTME TO I_OUT-BSTME.
READ TABLE I_MAKT WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MAKT-SPRAS TO I_OUT-SPRAS.
MOVE I_MAKT-MAKTX TO I_OUT-MAKTX.
READ TABLE I_MARD WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MARD-LGORT TO I_OUT-LGORT.
MOVE I_MARD-ERSDA TO I_OUT-ERSDA.
MOVE I_MARD-WERKS TO I_OUT-WERKS.
READ TABLE I_MBEW WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MBEW-BWKEY TO I_OUT-BWKEY.
MOVE I_MBEW-PEINH TO I_OUT-PEINH.
READ TABLE I_MVKE WITH KEY MATNR = I_MARC-MATNR.
MOVE I_MVKE-VKORG TO I_OUT-VKORG.
MOVE I_MVKE-VTWEG TO I_OUT-VTWEG.
MOVE I_MVKE-VRKME TO I_OUT-VRKME.
MOVE I_MVKE-KONDM TO I_OUT-KONDM.
APPEND I_OUT.
CLEAR I_OUT.
ENDLOOP.
Loop at i_out.
write:/ i_out-MATNR,
i_out-EKGRP,
i_out-PSTAT,
i_out-DISPO,
i_out-BESKZ,
i_out-LGORT,
i_out-ERSDA ,
i_out-WERKS,
i_out-BWKEY,
i_out-PEINH,
i_out-MTART,
i_out-MATKL,
i_out-MEINS,
i_out-MBRSH,
i_out-BSTME,
i_out-VKORG,
i_out-VTWEG,
i_out-VRKME,
i_out-KONDM,
i_out-SPRAS,
i_out-MAKTX.
endloop.
reward points to all helpful answers
kiran.M -
Strange problem with select options, problem in my code or standard bug?
I have a selection screen with no intervals.
In my select option When i give a range for example
BT(Between) 1 to 3 and then if i remove 3 (s-high) value and press enter the BT changes to EQ automatically which is correct.
Suppose i select BT as my operator and just give 1 in S-low and keep S-high as blank.
It behaves wiered and the data selected is not correct. BT now should have changed to EQ but it doesnt happen.
Same case occurs with NB ie not in between.
Can experts please give there advice on this behaviour of selection screenwht u can do is.....
u can keep these two input fields as two diff attributes....
consider it as A , B
then on various possibilities....fire select queries...
for eg:
if A & B not initial.
then select data between A and B
if A is not initial B is initial
then select data = A
and all possiblities to can think -
Hi everyone,
Is it possible to use checkbox and select option on the same variable?
My requirement is for a variable which is a select option with no intervals, and along with that, I need to put a checkbox in the left hand side of the same field.
Please suggest.Correct. I am not sure if you can achieve it without declaring a PARAMETER.
selection-screen : begin of block blk1 with frame title text-001.
selection-screen : begin of line.
parameters : p_chkbox as checkbox default 'X'.
selection-screen : comment 5(15) text-002.
selection-screen : position 21.
select-options : s_date for sy-datum no intervals.
selection-screen : end of line.
selection-screen : end of block blk1.
Thanks,
Pavan
Maybe you are looking for
-
How can I burn just a few photos to a cd using Photoshop Elements 11 on a windows 7 computer?
As a fairly new user of Photoshop Elements 11 I would like to burn just a few photos to a cd, not he whole catalogue. Please can somebody suggest an answer to this problem.
-
Please help! Problem playing film on PC!
When I edited the project I worked in two sequences for a while, but copied everything in the first sequence onto a new sequence and deleted the first sequence. It seems like this is why the film can't be shown on a PC or be uploaded to Youtube. It s
-
Adobe has not been a big help with this. If anyone knows what might be causing this error - great, pls post. Otherwise, in order to work the problem myself, I need to know the file locations of Camera Raw within PS CC and also the file location of
-
No Design/Split View?
Ok... sorry to sound like a rookie here, but one of the few times I really want to use Design View I cant seem to get it to work. Let me explain... I am a long-time hand coder, and still hand-code most of my pages. I have a page that I have hand-code
-
Importing excel date into InDesign
Ok so I have a load of names badges to do, name (in blue and bold 18 pt), job title (12 point bold, black) then company (10 point regular). Now I am currently copy and pasting the text in and using character styles to get it in the right format, but