FI Dunning note enhancement of selection screen sapf150v
Hello
Maybe somebody has dealt with such problem
I need to enhance the screen parameters in transaction SAPF150V (screen: 111)
I'm working in 6.0, these fields are mostly needed only for printout,
some data from this screen must be printed on the form.
The problem is that I do not now how to modify this screen without
doing hard modification of program (i.e. F150- ZF150)
Anybody has an idea?
Best regards Bogumila
Hi!
If the data is constant text, you might use standard texts with SO10 transaction. Even the users can maintain this text.
The other way, is to use a PERFORM from the dunning SAPScript, and you can write your ABAP code here.
It's working like this:
Definition in the SAPscript form:
/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
/: USING &PAGE&
/: USING &NEXTPAGE&
/: CHANGING &BARCODE&
/: ENDPERFORM
/ &BARCODE&
Coding of the calling ABAP program:
REPORT QCJPERFO.
FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: PAGNUM LIKE SY-TABIX, "page number
NEXTPAGE LIKE SY-TABIX. "number of next page
READ TABLE IN_PAR WITH KEY PAGE.
CHECK SY-SUBRC = 0.
PAGNUM = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY NEXTPAGE.
CHECK SY-SUBRC = 0.
NEXTPAGE = IN_PAR-VALUE.
READ TABLE OUT_PAR WITH KEY BARCODE.
CHECK SY-SUBRC = 0.
IF PAGNUM = 1.
OUT_PAR-VALUE = |. "First page
ELSE.
OUT_PAR-VALUE = ||. "Next page
ENDIF.
IF NEXTPAGE = 0.
OUT_PAR-VALUE+2 = L. "Flag: last page
ENDIF.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Regards
Tamá
Similar Messages
-
Field is not coming in selection screen
Hi all,
In one of my report there is a field customer group in selection-screen. Report is working fine so i transport request to qas in qas that field is coming on selection screen and its working fine.
But when i transport same request from qas to prd that field is not coming on selection screen.
I try 2-3 times by making diffrent diffrent request but still same result. can any body please tell me why its happen in prd??
regards
AnkitHi,
What i would like to suggest u that u need to first
is u have to convert the R/3 Production systems into the Quality one
try using tcode BDLS
read the documentation of BDLS.
hope this helps u !!
thanks
ravi -
'SET PF-STATUS EXCLUDING fcode' not working in Selection Screen event
Hi all,
I am trying to set PF-Status dynamically in Selection Screen based on Radio button.
For that i have inserted following code under event --> AT SELECTION-SCREEN OUTPUT
* SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: s_inc RADIOBUTTON GROUP rad DEFAULT 'X'
USER-COMMAND inc MODIF ID mod,
p_inc(10) MODIF ID m1,
s_lbr RADIOBUTTON GROUP rad,
p_lbr(10) MODIF ID m2.
SELECTION-SCREEN END OF BLOCK b1.
* AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
REFRESH fcode.
IF s_inc IS INITIAL.
APPEND 'CRTE' TO fcode.
APPEND 'CHNG' TO fcode.
APPEND 'DISP' TO fcode.
APPEND 'PRNI' TO fcode.
APPEND 'CRTL' TO fcode.
SET PF-STATUS 'STATUS_IN' EXCLUDING fcode.
ELSE.
SET PF-STATUS 'STATUS_IN'.
ENDIF.
Though s_inc is initial, i can see all the buttons from Status 'STATUS_IN' after execution of above code. EXCLUDING statement is not taking any effect which we normally get in Module pool program.
Please tell me what went wrong in above code?Problem solved ......Thanks Keshav,
Giving code correction -->
* SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: s_inc RADIOBUTTON GROUP rad DEFAULT 'X'
USER-COMMAND inc MODIF ID mod,
p_inc(10) MODIF ID m1,
s_lbr RADIOBUTTON GROUP rad,
p_lbr(10) MODIF ID m2.
SELECTION-SCREEN END OF BLOCK b1.
* AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
REFRESH fcode.
IF s_inc IS INITIAL.
APPEND 'CRTI' TO fcode.
APPEND 'CHGI' TO fcode.
APPEND 'DISI' TO fcode.
APPEND 'DELI' TO fcode.
APPEND 'PRNI' TO fcode.
APPEND 'CRTL' TO fcode.
APPEND 'DATA' TO fcode.
ELSE.
APPEND 'CHGL' TO fcode.
APPEND 'DISL' TO fcode.
APPEND 'PRNL' TO fcode.
ENDIF.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = 'STATUS_IN'
P_PROGRAM = sy-repid
TABLES
p_exclude = fcode -
Customized Button code not working on selection screen.
Hello Experts,
I have a button on the selection screen next to Execute button on the Application Tool Bar.
I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.
But the problem is that the code is not working.When I execute the button,the screen just remains their.
The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.
Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.
Good points will be rewarded.Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.
REPORT zyou_0001.
TABLES: sscrfields.
SELECTION-SCREEN PUSHBUTTON 2(10) pbut1 USER-COMMAND chk.
AT SELECTION-SCREEN OUTPUT.
pbut1 = 'Test This'.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'CHK'.
sscrfields-ucomm = 'ONLI'.
ENDIF.
START-OF-SELECTION.
DO 10 TIMES.
WRITE:/ sy-index.
ENDDO.
Regards,.
Mohammed -
BI report not displaying Variable selection screen on UI
Hi,
We have recently upgraded our CRM to 7.0, but the strange thing is the BI reports are executing without giving the user the variable screen.
Now the alternative to this is making the variables in BI section Mandatory and they show up in the report, but this is not the correct way.
Are we missing some piece of configuration somewhere.
Regards
LalanHi Vinayak,
Do you know how can I get the variable selection screen to display in BI analyzer when I execute the report from backend BW system and it launches BI analyzer. I know we can go into Add-Ins and from toolbar we can go into Change Variables Values icon, but I would like selection screen to display as default when user runs the report from backend.
Thanks
Divya -
Within FM not possible AT SELECTION-SCREEN or PROCESS ON VALUE-REQUEST
Hello !
Within a "User Help Exit" must be called the FM named
C14F_LOV_WAID. How can I adress this FM
for a field.
The goal is if user klicks on F4 the this FM mist be called.
please notice a user help exit is like a Function Modul.
e.g.
FUNCTION zuser_help_exit.
ENDFUNcTION.
Within this block FM block above I can't say:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR<FIELD>
or
PROCESS ON VALUE-REQUEST.
FIELD <field-name> MODULE create_dropdown_box.
Regards
Ertas IlhanHI
well I am not sure about this it works or not but we have various function modules which we can call in other function modules to provide F4 help i mean to say that call Function module inside a Function Module
F4IF_INT_TABLE_VALUE_REQUEST
F4IF_FIELD_VALUE_REQUEST.
Try out these Fm calling ..
I hope it helps you am not sure
Regards
Pavan -
While executing the query sales org not given in Selection screen but still
Hi ,
while am executing a query even though am not giving any sales organization input in selection sceen , and execute , the query will run and pop up windows displays as ' you do not Authorization to read Zsales organization,
same query i executed last days before , it worked fine, but now its not working, plz adviceHi,
you might made Sales org Info object as Auth relevant, hence it is giving that error.
Eirther disable the authorization relevant check in the infoobject maintainance in Bex explorer tab...
Or create a auth variable for the infoobject and use it in the query..
Regards,
Rangz -
Do not want key date in the selection screen in query
Hi,
I have made a query for Customer Ageing. I do not want a selection screen- however, i still get a prompt for the 'Key Date'.
Can someone suggest me a workaround?
Many Thanks,
DeepinderHi Deepinder,
Though Key date is not there in the filter area, it is being used in any restrcited key figures in your report. Check all the RKFs used in your report. Also the ones indirectly involved in calculations. May be you are calculating diff between key date and posting date and then used this difference for further calculations.
Either you remove those RKFs if not needed, or in the property of your formula variable uncheck ready for input.
Best Wishes,
Mayank -
Hello friends,
I have to dipslay a samll not on the selection screen. Basiclly a note to th end users as whats the purpose of the program would be. May be about 5 line description.
How would I add this note to the selection screen.
Any Suggestions.
Ster.Hi ,
write the code like this...
selection-screen skip 2.
selection-screen comment 1(65) text-s02.
selection-screen skip 1.
selection-screen comment 1(65) text-s03.
selection-screen skip 1.
selection-screen comment 1(65) text-s04.
selection-screen skip 1.
selection-screen comment 1(65) text-s05.
selection-screen skip 1.
regards,
Bharani -
Selection Screen is not visible when i run tcode S_ALR_87013611
Hello all,
whenever i run T-code S_ALR_87013611.The report is directly executed . it does not stop at selection screen as i want to change the parameters in the screen.but the selection screen is not coming. as the report is generated on the basis of previous data selected.
Please let me know is there any user setting through which this setting can be changed.
Thanks
NaveenAre you using Webgui / portal or SAPgui
Regards
Subodh -
Want to have own selection screen in HR-ABAP report using LDB
Hi experts,
I am working on HR-ABAP report using LDB pnp and infotypes..But, here we get the built in selection criterion..but I want my own selection screen to be displayed..whats the solution for this??? Is it possible to create my own selection screen instead of default one..and how???
Please help me..its very urgent..Hi,
chk this out:
Create Report Categories
In this step, you define the report categories and determine the layout
of the standard selection screen for these report categories. You can
create report categories for programs or queries that are based on the
PNP or PNPCE logical databases.
The definition of report categories is divided into two sections:
o In the Change Report Category view, you define general attributes
such as sort order, input fields for date, and so on.
o In the Change Selection Criteria view, you define which selection
fields of the logical database should be avaliable on the selection
screen.
Example
You want to set up your system so that your employees can only start
evaluation reports for Payroll if they use a payroll area. Within a
payroll area, you should be able to select according to personnel
number. Additional selection criteria should not be possible and you
should not be allowed to enter a sort sequence.
Standard settings
The standard system already contains report categories. You can find the
attributes of the report categories in the table.
Note the following five report categories in particular:
o Report category ' ' is the SAP default report category for
programs that are based on the PNP logical database.
o Report category PNPCE is the SAP default category for programs that
are based on the PNPCE logical database.
o Report category '00000000' is the customer-specific default category
for programs that are based on the PNP logical database.
o Report category '0PNPCE' is the customer-specific default category
for programs that are based on the PNPCE logical database.
o Report category __X2001 is the default category for Queries that
are based on an InfoSet of the PNP LDB.
o Report category QUEPNPCE is the default category for queries that
are based on an InfoSet of the PNPCE LDB.
The default report categories are used when a report is called if
the report has not been assigned a report category.
Parameters and Options for Report Categories of the LDB PNP and PNPCE
Parameters and Options in Screen Area General Data
If you activate this parameter, you can only enter data on the data
selection period if you use reports that have been assigned. The
same date entries are then used for the person selection as for the
date selection.
o Matchcode allowed
If you activate this parameter, you have use of a Matchcode
pushbutton (search help) if you use reports that have been assigned.
This pushbutton enables you to perform the person selection.
o Sort allowed
If you activate this parameter, you have use of a Sort pushbutton if
you use report that have been assigned. This pushbutton enables you
to define a sort order before you execute the report.
o Organizational structure allowed
If you activate this parameter, you have use of an Org.Structure
pushbutton if you use reports that have been assigned. This
pushbutton enables you to perform the person selection.
Note:
For more information about these options, see the online
documentation under this path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> Standard HR Reports -> Report Selection Screen in
Human Resources Management.
Parameters and Options in Screen Areas Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Options for data selection period and person selection period (key
date and so on)
Here you define which options for date and person selection are
available for reports that have been assigned.
o Options for payroll area/period/year
Here you define which options for selection using payroll
area/period/year are available for reports that have been assigned.
Parameters and Options in Screen Area Selection View
o Type/Name
This parameter enables you to use selection views to define report
categories. You use the selection view selected here to determine
which fields are available in the Dynamic Selectionsy.
Note:
You create selection views for the PNP and PNPCE logical databases
in the Object Navigator (SE80):
1. Start the Object Navigator (SE80)
2. Choose Workbench -> Edit Object.
3. Choose the More... tab page and the Selection view on this tab
page.
4. Choose Create.
5. In the Create Selection View dialog box, choose the For any
tables option.
6. In the Name of view field, enter a name for your selection view.
7. In the Tables dialog box, enter the name of the table from which
you want to use fields.
Note:
When you enter the table name, observe the naming convention in
Personnel Administration:
Infotype number: nnnn -> table name: PAnnnn
8. Choose Continue.
9. In the Functional groups area, define functional groups by
assigning a name and a number.
10. Assign fields from the selected tables to the functional groups
by entering the number of the desired functional group in front of
each field.
11. Save your entries.
For more information about adjusting the dynamic selections using
your own selection views, see the online documentation under the
following menu path:
SAP Library -> Human Resources -> Reporting in Human Resources
Management -> HR Standard Reports -> Report Selection Screen in
Human Resources Management -> Enhancing the Selection Screen -
Dynamic Selections.
If you do not want to offer dynamic selections, make the following
settings:
- LDB PNP: In the Selection view field, enter PNP_NO_FREE_SEL.
- LDB PNPCE: Leave the Selection view field empty.
Parameters and Options in Screen Area Data Selection Period/Person
Selection Period/Payroll Area/Period/Year
o Available input parameters, date or period entry (today, key date,
all, and so on), and standard value.
Using the Standard value option, you define which of the selected
options is shown.
Parameters and Options in Screen Area CE Selection Fields
o CE selection fields (external person ID, grouping reason, grouping
value)
Using the options in this area, you define whether the external
person Id, grouping reason, or grouping value are available on the
selection screen.
Note:
These parameters are only relevant for you if you implement
Concurrent Employment (see also note 517071).
Parameters and Options in Screen Area Selection view
o Dynamic selections as dialog box
If this switch is set, you can call the dynamic selections as a
dialog box.
o Dynamic selections active
If this switch is set, the dynamic selections of the logical
database are active at the start of the report.
Note that the following combinations are possible for the last two
options mentioned:
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/inactive
Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/active
Dyn.Sel. as dialog box/Dyn.Sel. active: active/inactive
Activities
1. Choose Edit -> New entries.
2. Enter an abbreviation and a long text for the report category.
The customer name range for report categories is 0-9.
3. Select the For the PNPCE logical database checkbox, if you want to
create a report category for a program or for queries of the PNPCE
logical database.
4. In the General Data screen area, choose the desired options.
If you want to use selection IDs, you must have first created and
grouped selection Ids. The IMG path to do this is given in the
parameter description section.
5. In the Data selection period/person selection period or Selection
period screen area, choose the desired options.
6. In the Selection view screen area, choose the desired options.
7. In the CE selection fields screen area, choose the desired (only
possible for report categories of the LDB PNPCE).
8. Save your entries.
9. Choose the subactivity Permitted selection criteria.
10. Choose Edit -> New entries.
11. In the Select option field, use the input help to select each field
that should be available on the selection screen.
12. Select the checkbox in the 1.page column, if you want this selection
field to be available directly when you call the selection screen.
Further notes
13. If you want to copy entries, you still have to enter the selection
parameters again in the subsequent screen.
o If you create the report category '000000000', a selection screen is
generated according to report category '00000000'for all reports for
which a report category has not explicitly been assigned.
Assign Report Categories
In this step, you assign a report category to your reports.
Example
You have created your own report, for example ZPCTEST1, and would like
it to have the selection screen that corresponds to that of the
evaluation report for Payroll, which is assigned to report category
'__M00001'.
Assign report category '__M00001' to the report.
Requirements
You must have defined the Report Categories.
Standard settings
SAP Standard Reports:
In the standard system, reports are assigned a report category. If you
want to override these assignments, perform the activities described
here. If you want to assign report categories to standard reports using
SE38, this represents a modification.
Customer-Specific Reports:
For reports you have developed yourself, you can either assign report
categories by performing the activities described here or directly in SE38.
Recommendation
Only assign a report category if you have created your own reports or if
the selection screens in the standard system do not meet your
requirements.
Activities
1. Choose Edit -> New entries.
2. Perform the required assignment using the Program name and Report
category fields.
3. Save your entries.
reward if helpful
regards,
madhumitha -
At selection screen output plz help
hi all ,
i written below code . my req is if users select radio button r_com all elements in block b2 should be invisable.
this code is not working becuase r_com is populated with 'X' VALUE at rumtime in the event .
tables : coep ,SSCRFIELDS.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_GJAHR FOR COEP-GJAHR NO INTERVALS NO-EXTENSION
OBLIGATORY ,
S_PERIO FOR COEP-PERIO NO INTERVALS NO-EXTENSION
OBLIGATORY.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-002.
PARAMETERS : r_Com RADIOBUTTON GROUP mai user-command rusr .
SELECTION-SCREEN COMMENT 25(15) TEXT-003.
PARAMETERS : r_group RADIOBUTTON GROUP mai .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN : END OF BLOCK B1 .
SELECTION-SCREEN : BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) TEXT-003 MODIF ID B21.
parameters : p_0001 like AFRU-ISMNW OBLIGATORY MODIF ID B21.
SELECTION-SCREEN COMMENT 45(40) TEXT-004 MODIF ID B21.
parameters : p_0002 like AFRU-ISMNW OBLIGATORY MODIF ID B21 .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) TEXT-005 MODIF ID B21.
parameters : p_0003 like AFRU-ISMNW OBLIGATORY MODIF ID B21.
SELECTION-SCREEN COMMENT 45(40) TEXT-006 MODIF ID B21.
parameters : p_0004 like AFRU-ISMNW OBLIGATORY MODIF ID B21 .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN : END OF BLOCK B2 .
at selection-screen OUTPUT.
IF R_COM EQ 'X' .
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'B21'.
SCREEN-ACTIVE = 0 .
MODIFY SCREEN.
ENDIF.
ENDLOOP.
thanks ,
sridharAMIT ,
IT IS WORKING , thanks but when i use another block like below and using this code it is not working .
SELECTION-SCREEN : BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-002..
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) TEXT-003 MODIF ID B22.
parameters : p_0005 like AFRU-ISMNW OBLIGATORY MODIF ID B22.
SELECTION-SCREEN COMMENT 45(40) TEXT-004 MODIF ID B22.
parameters : p_0006 like AFRU-ISMNW OBLIGATORY MODIF ID B22 .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) TEXT-005 MODIF ID B21.
parameters : p_0007 like AFRU-ISMNW OBLIGATORY MODIF ID B22.
SELECTION-SCREEN COMMENT 45(40) TEXT-006 MODIF ID B22.
parameters : p_0008 like AFRU-ISMNW OBLIGATORY MODIF ID B22 .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN : END OF BLOCK B3 .
at selection-screen OUTPUT.
IF R_COM EQ 'X' .
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'B21'.
SCREEN-ACTIVE = 0 .
MODIFY SCREEN.
ENDIF.
ENDLOOP.
elseif r_group eq 'X'.
LOOP AT SCREEN .
IF SCREEN-GROUP1 = 'B22'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
my question is , whne i select one radio button how to diable block .
thanks,
sridhar -
Hi, In my program i used a default seelction screen and 5 user defined selection screen. Based on the selections made in default selection screen, it should go to the corresponding user defined screen.
and the problem iam getting if i press enter jey insted of F8.
""Selection screen ZP2I_MASSCHANGE_TEMP1 1000 was
not called using CALL SELECTION-SCREEN"""
the code is as follows.
A T S E L E C T I O N-S C R E E N
*AT SELECTION-SCREEN.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP rgp1.
CHECK SY-UCOMM EQ 'ONLI' OR SY-UCOMM EQ 'CRET' .
Download
IF r_dwnld = c_check.
Material Screen Call
IF r_matplt = c_check.
CLEAR p_werks7.
sree = 'A'.
CALL SELECTION-SCREEN 170.
ENDIF.
Material Storage Screen Call
IF r_matstr = c_check.
CLEAR p_werks1.
sree = 'B'.
CALL SELECTION-SCREEN 110.
ENDIF.
Material Handling Screen Call
IF r_mathan = c_check.
CLEAR p_werks2.
sree = 'C'.
CALL SELECTION-SCREEN 120.
ENDIF.
Material Pick/Up Delivery Screen Call
IF r_pcdt = c_check.
CLEAR p_werks3.
sree = 'D'.
CALL SELECTION-SCREEN 130.
ENDIF.
Material Inboundlogistics Screen Call
IF r_inlogs = c_check.
CLEAR p_werks4.
sree = 'E'.
CALL SELECTION-SCREEN 140.
ENDIF.
Material Packaging Screen Call
IF r_pkng = c_check.
CLEAR p_werks5.
sree = 'F'.
CALL SELECTION-SCREEN 150.
ENDIF.
ENDIF.
Upload Screen Call
IF r_upld = c_check.
IF ( r_matplt = c_check OR
r_matstr = c_check OR
r_mathan = c_check OR
r_pcdt = c_check OR
r_inlogs = c_check OR
r_pkng = c_check ).
CLEAR p_uload.
sree = 'G'.
CALL SELECTION-SCREEN 160.
ENDIF.
ENDIF.
s T A R T - O F - S E L E C T I O N
START-OF-SELECTION.
DOWNLOAD
CASE sree.
WHEN 'A'.
Select Material Details
PERFORM get_material_data.
IF NOT tbl_matplt[] IS INITIAL.
IF p_dalv7 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Storage data into local file
PERFORM download_file USING p_matdet.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 170.
Select Material storage data
WHEN 'B'.
PERFORM get_storage_data.
IF NOT tbl_matstr[] IS INITIAL.
IF p_dalv1 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Storage data into local file
PERFORM download_file USING p_matstr.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 110.
Select Material Handling data
WHEN 'C'.
PERFORM get_materialhandling.
IF NOT tbl_mathand[] IS INITIAL.
IF p_dalv2 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Material Handling data into local file
PERFORM download_file USING p_mathan.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 120.
Select Pick/Up DayTime data
WHEN 'D'.
PERFORM get_pickup_delivery.
IF NOT tbl_pcdel[] IS INITIAL.
IF p_dalv3 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Pick/Up DayTime data into local file
PERFORM download_file USING p_pcdt.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 130.
Select Inbound Logistics data
WHEN 'E'.
PERFORM get_inboundlogistics.
IF NOT tbl_inlog[] IS INITIAL.
IF p_dalv4 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Inbound Logistics data into local file
PERFORM download_file USING p_inlogs.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 140.
Select Packaging data
WHEN 'F'.
PERFORM get_packaging.
IF NOT tbl_pkng[] IS INITIAL.
IF p_dalv5 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Packaging data into local file
PERFORM download_file USING p_pkng.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 150.
WHEN 'G'.
Material Details data upload
IF r_matplt = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Material details from local file
PERFORM load_file USING p_uload.
Prepare data
PERFORM prepare_mat_data.
Get actual Material Details from ZP2_MATPLT
PERFORM get_old_material_data.
Validate new data against database entries
PERFORM validate_material_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_matplt.
tbl_plts-werks = tbl_matplt-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify material data
PERFORM modify_zp2_matplt.
ENDIF.
Material Storage data upload
IF r_matstr = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload material storage data from local file
PERFORM load_matstr_data USING p_uload.
PERFORM load_file USING p_uload.
Get the material storage data from database
PERFORM get_old_storage_data.
Get material plant data for the corresponding
Storage data.
PERFORM get_matplt_data_storage.
Get data from table fields
PERFORM get_tblfld_values.
Validate data against database entries
PERFORM validate_storage_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_matstr.
tbl_plts-werks = tbl_matstr-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify material storage data
PERFORM modify_zp2matstr_table.
ENDIF.
ENDIF.
Material Handling data upload
IF r_mathan = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload material Handling data from local file
PERFORM load_file USING p_uload.
Get the material Handling data from database
PERFORM get_old_materialhandling.
Get material plant data for the corresponding
handling data.
PERFORM get_matplt_data_handling.
Validate data against database entries
PERFORM validate_handling_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_mathand.
tbl_plts-werks = tbl_mathand-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify material handling data
PERFORM modify_zp2mathand_table.
ENDIF.
ELSEIF sy-ucomm = c_s.
LEAVE SCREEN.
ENDIF.
Material Pick/Up DayTime data upload
IF r_pcdt = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Pick/Up DayTime file data from local file
PERFORM load_file USING p_uload.
Get the Pick/Up DayTime data from database
PERFORM get_old_pickup_delivery.
Get Inbound logistics data corresponding to handling
PERFORM get_inlogs_pcdel.
Validate data against database entries
PERFORM validate_pcdel_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_pcdel.
tbl_plts-werks = tbl_pcdel-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify Pick/Up DayTime table
PERFORM modify_zp2pcdt_table.
ENDIF.
ELSEIF sy-ucomm = c_s.
LEAVE SCREEN.
ENDIF.
Material Inbound Logistics data upload
IF r_inlogs = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Inbound Logistics file data from local file
PERFORM load_file USING p_uload.
Get the Inbound Logistics data from database
PERFORM get_old_inboundlogistics.
Get data from table fields
PERFORM get_tblfld_values.
Get Vendor data
PERFORM get_vendor_inlog.
Get material plant data for the corresponding
Inboundlogistics data.
PERFORM get_matplt_data_inlog.
Validate data against database entries
PERFORM validate_inlog_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_inlog.
tbl_plts-werks = tbl_inlog-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify Inbound Logistics table
PERFORM modify_zp2inlog_table.
ENDIF.
ENDIF.
Packaging data upload
IF r_pkng = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Packaging file data from local file
PERFORM load_file USING p_uload.
Get the Packaging data from database
PERFORM get_old_packaging.
Get material plant data for the corresponding
Packaging data.
PERFORM get_matplt_data_pkng.
Get Vendor data
PERFORM get_vendor_pkng.
Get data from table fields
PERFORM get_tblfld_values.
Load Primary container reference data
PERFORM primary_container_data.
Validate data against database entries
PERFORM validate_packaging_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_pkng.
tbl_plts-werks = tbl_pkng-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify Packaging data
PERFORM modify_zp2pckg_table.
ENDIF.
ENDIF.
ENDIF.
IF p_trun = c_check.
Display the Error list
PERFORM display_result.
CALL SELECTION-SCREEN 160.
ENDIF.
ENDCASE.
Another problem is If i press BACK on the report output, it is coming to the default selection screen. and my requirement is, it should come to the corressponding user defined selection screen and not the default selection screen.
PLz help me in this regard.. Iam breaking my heading, but could not able to solve it.
Thanks in advance
sreeHello,
You must have defined user command for the radio button. This is not required. Just try putting it in at selection screen. AT SELECTION-SCREEN ON RADIOBUTTON GROUP rgp1.
the moment the user clicks the radio button it will go to this event and call the screen. Just use AT SELECTION-SCREEN.
Regards,
Shekhar Kulkarni -
Query Selection Screen in Report Designer/WAD
Hi Gurus,
Please help. Iam try to copy two BEx queries into one report using Report Designer & Web Application Designer. Iam sucessfull in it, however when I execute the report either by report designer or WAD, the report does not populate the selection screen, it just gives you the output of the two queires into one page. Is there a pre-settings we need to perform to get the selection screen for each of this report?
Thanks!Hi,
Front-end upgrade will not help in this case. This feature "Display Variable Screen [VARIABLE_SCREEN]" was introduced in SP8 backend. You need SP8 backend to be able to use it.
You will find this setting in "Properties" -> "Web Template" (in combo box) -> "Web Template Parameters" -> "Behaviour" -> "Display Variable Screen"
This setting is defined in metadata and required an implementation on Java side (also SP8 required)
Regards, Karol Kalisz
SAP BI Development -
Hi Experts,
Please can any one give me the details ..
1)What is the actual use of selection screen validation?
2) When we use Selection-screen validation?
3)If we are not written the selection-screen validation is there any effect?
I know how to write the validation for a selection screen. But why i am asking above questions is I am very new to ABAP .My Functionl people also new to ABAP. They told me one report.I asked me what are the validation for selection screen . At that time they told there is no validation.
Thats the reason to ask above questions..
please tell me the details..
Thanks In Advance..
Thanks and Regards
Siri..Abhi,
Selection Screen Validation are used for correct input processing.
Selection screen elements are used further in select queries to fetch data. if user enters some wrong input
we will unnecessarily hit the data base with wrong values and select will fail , hence validation of the input
will avoid unnecessary data base hit.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 27, 2008 12:26 PM
Maybe you are looking for
-
my ipod has the green lights however when i try to listen to music ....nothing ....i tried several head sets. how do i know when the ipod is finally dead
-
Dear All i type netmgr and ORACLE NET MANAGER OPENS there i click on (plus)+ sign of Listeners and it gives following error .. [oracle@sys202 ~]$ netmgr Exception occurred during event dispatching: java.lang.IllegalArgumentException: illegal LWChoice
-
Dump error when doing ODS activation
Hi, When doing to the ODS activation, out of 500 data packets 1 data packet is not updated its highlighting Red traffic light. After that i selected that incorrect data packet i given manual update sytem is gives ABAP runtime errror MESSAGE_TYPE_X.
-
My Bridge in Adobe CC 2014 did not install
My Bridge did not install Photoshop CC
-
Help with connect BB Pearl to PC.. plz
Hi, I could connected the BB Pearl 8120 to the PC, but now I cannot, I don't know why, can help me. The USB recognizethe BB, but don't open. THK