Adding posting date in report mb52 in selection screen
Hi all,
We have a requirement of adding the posting date in the selection screen and based on which the report has to be displayed.
We have copied the standard program and added the posting date in the selection screen but could not find where to include the search based on posting date.
Could anyone guide to resolve this issue.
Thanks in advance,
Neela
Hi,
I have added the posting date in selection screen and in the form data_selection i have also joined table bsim to extract values to the internal table t_mat.
But the results are not perfect. Should i do any changes elsewhere in d program.
Can anyone help me in resolving d issue.
Thanks in advance,
Neela.
Similar Messages
-
Calling another report by passing selection screen parameter
Hi,
I have created a report "ZREPA" with selection screen parameter say, "creator".
Nw, i hv to call that report "ZREPA" from another report say "ZREPB" by passing an value to the selection screen field "creator".
Can anyone tell me how to resolve this??
Thanks,
Aaru.Hi,
You can call one selection screen from other selection screen program using SUBMIT command.
The syntax is as follows -
codeSUBMIT... VIA SELECTION-SCREEN
USING SELECTION-SET <var>
WITH <sel> <criterion>
WITH FREE SELECTIONS <freesel>
WITH SELECTION-TABLE <rspar>.[/code]
e.g.
The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
codeREPORT demo_program_submit_rep1.
DATA number TYPE i.
PARAMETERS paramet(14) TYPE c.
SELECT-OPTIONS selecto FOR number.[/code]
The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
DATA: int TYPE i,
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
RANGES seltab FOR int.
WRITE: 'Select a Selection!',
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE sy-lilli.
WHEN 4.
seltab-sign = 'I'. seltab-option = 'BT'.
seltab-low = 1. seltab-high = 5.
APPEND seltab.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH paramet eq 'Selection 1'
WITH selecto IN seltab
WITH selecto ne 3
AND RETURN.
WHEN 5.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
wa_rspar-low = 14. wa_rspar-high = 17.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
wa_rspar-low = 'Selection 2'.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
wa_rspar-low = 10.
APPEND wa_rspar TO rspar.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar
AND RETURN.
ENDCASE.
=> To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
Regards,
Omkaram. -
Display items which doesn't have any posting data in report painter
I made some reports by report painter. The problem is that when I run these reports, they can't display the items which doesn't have any posting data. But my customers want to display all items whatever it has been posted or not , can you give me the solution?
BTW, when I made Reports by using Drilldown report, it display all items
Thanks and best regards!In the change report screen in GRR2 go to menu
Formating--> report layout
There in the rows tab select the radio button, Print Zero rows
and in the columns tab select Print Zero columns radio button,
hope this should solve the problem
Thanks
Naveen -
MB5B - Closing Value for Posting Date inconsistently reported.
Greetings,
I am executing transaction MB5B in ECC 6.0 for a single Posting Date in November of 2008. The parameters include 3000 ROH materials (selected by MIN/MAX material number ranges) in 30 plants within 3 different companies (selecting all by leaving these values blank). The problem I am having is that I am getting a different total USD valuation each time I run the report. If I run the report 3 times in 15 minutes I will get 3 different USD totals. Difference is usually small (.006%).
At times I will get exact matches. Yesterday, 3 out of 5 runs were exactly the same result.
Can anyone advise what might be causing this variability? And how it might be corrected. Either by using different selection parameters of another more reliable transaction code.
Regards,
JoeHi,
If you post in the previous period and the material price in the previous period differs from the current price, the system generates a stock posting and revaluation line with the same value but opposite signs.
You can ran an inconsistency check report using SE16: MBEW
Go through SAP Note 518368
Bye,
Muralidhara -
Added posting date period in LDB SDF!!
Hi,
i have a kinda req where i have to modify the SDF and add posting date period on the selection screen n modify the select queries accordingly therin.so i hav copied the LDB , which all places shall i make the changes to accomodate posting period ( so that it works fine)!!
Thx
Gunjan1) add to selections
2) modify select of bsis / bsas
in put_bsis / put_bsas
SELECT (bsis_fields) FROM bsis "/ bsas
WHERE bukrs EQ save_bukrs
... and monat = sd_monat
Andreas -
Adding Posting Date in Transaction MB56
Hi all,
I want to add "Posting Date" in Transaction MB56. How can I do this?
Thanks
DevinderHi,
I've created WithHolding Tax Report on ALV Grid using OOPS, But data is coming three times (means records are repeating 3times) according the Document No.
How can Resolve this?
Thanks
Devinder -
How do I modify invoice request xml file by adding posting date?
Hi,
We import customer invoice requests via xml files from an external data source. Currently the standard SAP xml file does not include the posting date, and invoices enter SAP with a blank posting date. When the invoice is released, the posting date is taken from the invoice date.
Due to our month end processes, we have hundreds of invoice requests every month where we do not want posting date to equal the invoice date, and for each of those invoices the posting date is manually entered one invoice at a time during the release process. This is very time consuming.
We would like to build functionality in our external system to create the posting date at the xml file generation stage. Could anyone let us know the following:
- what is the name of the posting date field on invoice requests (invoice documents)?
- where would we place the additional script in the xml file?
I'm attaching one of our current xml files (which already contains one section that has been customized)
Your suggestions would be appreciated.
Thanks,
KerstinKerstin,
The closest i could find in the WSDL of the Manage Invoice Request Web Service that handles this integration is "<ProposedInvoiceDate>" or possibly even "<ProposedDeviatingPostingdate>", both of which sit directly under the <CustomerInvoiceRequest> element.
For more information, go to the Service Explorer, find the ManageInvoiceRequestsIn Web Service, download the WSDL, and open it in SOAP-UI or something similar. This way you can see all the fields that you can write to, which is where i found these two elements. -
BEx Report Performance with selection-screen input
Hello Gurus,
My Bex report is working fine when the report had run with out PLANT filter in the selection-screen but when report had run with plant in the selection-screen , report running for forever.
Please let me know what I need to do improve the performance.
Saleem.Hi Saleem, Just a few thoughts;
1. Check the M-table in RSD1 for 0PLANT. In Table View edit any blank or null values. Run the same restrictions you apply in the query at Info provider level > Display Data. If there's any lapse; you can judge where exactly the problem lies.
2. If you are using Infocube & that your master is >20% fact; you can declare the Info object as 'Line Item Dimension'.
3. Create Variants. Esp. if you are running the query for same set of data. Try Variable Preselection: You can restrict both the values + varaiables in the filter level. When you execute the values will be visibly pre-selected in selection screen.
4. As discussed in previous messages, running a SQL trace using RSRT may prove useful. -
Report without a selection-screen, just a dynpro
Hi experts,
I wrote a small report, which reads out a file. After this I want to display it in a tablecontrol of my dynpro. In the dynpro there is a button to push the data of the tablecontrol in the R/3 via BDC.
Now I have the problem of a automatic generated Selection-Screen. Which has some fields of my used variables (e.g. file-name, file-typ) and even maybe 10 fields (input-fields and checkboxes) from the BDC program.
The fact is that it is not possible to use this code, simply without any "START-OF-SELECTION" statement:
REPORT ZMM_REPORT01.
TABLES: mseg.
TYPES: BEGIN of input_struk,
matnr TYPE mseg-matnr,
erfmg TYPE mseg-erfmg,
END of input_struk,
tt_input TYPE TABLE OF input_struk.
DATA: it_input TYPE tt_input.
DATA: wa_input LIKE LINE OF it_input.
CALL SCREEN 100.
The error is: "Statement 'CALL SCREEN 100' couldnt be reached."
If I use the program-type M for PROGRAM and not type 1 for REPORT. Then fails with the necessary INCLUDE statement of the BDC program.
Regards,
Steffenok, if I decode your big letters, I have to put the CALL SCREEN at the end of my program.
so I do that but I didn't work . error: the call-statement could be reached.
REPORT ZMM_REPORT01.
TABLES: mseg.
TYPES: BEGIN of input_struk,
matnr TYPE mseg-matnr,
erfmg TYPE mseg-erfmg,
END of input_struk,
tt_input TYPE TABLE OF input_struk.
DATA: it_input TYPE tt_input.
DATA: wa_input LIKE LINE OF it_input.
PARAMETERS: fname TYPE rlgrap-filename DEFAULT 'c:lagerver.dat',
ftype TYPE rlgrap-filetype DEFAULT 'ASC',
bwart TYPE MSEG-BWART DEFAULT 201,
werks TYPE MSEG-WERKS DEFAULT 2000,
lgort TYPE MSEG-LGORT DEFAULT 2500,
kostl TYPE COBL-KOSTL DEFAULT 201300.
START-OF-SELECTION.
* PBO Module
MODULE pbo_0100 OUTPUT.
SET TITLEBAR 'TITLE_100'.
SET PF-STATUS 'SCREEN_100'.
PERFORM z_daten_input.
PERFORM z_convert_dummy.
ENDMODULE.
* PAI Module
MODULE pai_0100 INPUT.
IF sy-ucomm = 'BACK' OR
sy-ucomm = 'EXIT' OR
sy-ucomm = 'CANCEL'.
LEAVE PROGRAM.
ELSE.
DATA: l_date TYPE sy-datum.
>THE BDC PROGRAM statements<
ENDIF.
ENDMODULE.
FORM z_daten_input.
DATA: filename TYPE string, " UNICODE
result TYPE boolean.
filename = fname.
REFRESH: it_input.
CALL METHOD cl_gui_frontend_services=>file_exist
EXPORTING file = filename
RECEIVING RESULT = result.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
filename = filename
filetype = 'ASC'
READ_BY_LINE = 'X'
REPLACEMENT = '#'
CHANGING
data_tab = t_dummy[].
ENDFORM.
FORM z_convert_dummy.
LOOP AT T_DUMMY.
wa_input-matnr = T_DUMMY-VAR+0(11).
wa_input-erfmg = T_DUMMY-VAR+33(5).
APPEND wa_input TO it_input.
ENDLOOP.
ENDFORM.
*&spwizard: declaration of tablecontrol 'TC_FILE' itself
controls: TC_FILE type tableview using screen 0100.
*&spwizard: output module for tc 'TC_FILE'. do not change this line!
*&spwizard: update lines for equivalent scrollbar
module TC_FILE_change_tc_attr output.
describe table IT_INPUT lines TC_FILE-lines.
endmodule.
CALL SCREEN 100. -
Fill data in 2 fields on selection screen from a search help
Hi,
I have defined a custom search help as given below.
Selection Method : ZTSTCT
Search Help Parameters :
TCODE Importing & Exporting
TTEXT Exporting Only
I have two parameters in my report as declared below:
PARAMETERS : tcode TYPE tstct-tcode MATCHCODE OBJECT zm_tstc,
ttext TYPE tstct-ttext.
Now whenever a user selects any TCODE in the help ZM_TSTC, I need both the fields on the selection screen to be filled with appropriate data. When I tested the search help in SE11, both fields are getting filled with appropriate data but in the report only the field TCODE gets filled. Is there any way to get the other field also filled with the appropriate data ?
Points will be awarded for helpful answers.
Thanks & Regards,
MukulHi,
Use the Event.
AT SELECTION-SCREEN AT tcode.
Use the select query from the method ZTSTCT.
select single TTEXT into ttext from ZTSTCT where TCODE = TCODE.
you will get the value of TTEXT .
Regards,
Balakumar.G. -
Query says master data value is invalid in selection screen.
Hi,
I am experiencing an issue that is occurring across many reports in our BW QA system, not just one. My InfoProvider clearly contains data with plant = US33. However, when I run the report and in the selection screen I enter US33 I get the error message saying that the value US33 is invalid.
If I open the selection box, it even shows US33 as an available option (selections are restricted to values in the infoprovider), but again if I select US33 and click ok I get the same error message saying that the value US33 is invalid.
If I run the report open the report returns records with plant = US33. However, if I try to filter on plant US33 in the report it returns no data.
US33 is available in the 0PLANT master data and yes the data is active. I even tried modifying this record and saving it and that didn't work. I also tried reloading the data and still nothing.
I also tried running tests in RSRT on the 0PLANT master data but there are no errors.
I can query data in the infoprovider successfully when I select plant = US33 in the BW.
I suspect that since this is occurring across multiple reports that report off of different infoproviders, that this is a master data or system issue but I can't solve it.
Please advise.
Thanks,
Anthonywhat is the length of 0plant .
it should be 4 characters with lower case on.
ensure cases are same in 0plant and report selection screen if lowercase is allowed in plant data.
if it still gives your problem try to create a new variable on 0plant and use it.
revert back nothing works.. -
How to pass value from the Z Report to the selection screen of the std rep
Dear Experts,
i have developed a report and the values are maintained only in internal table based on some condition. When I execute the report, for example MM60, there is a material number field for multiple selection.
the report should call the standard transaction and pass the values from the internal table to the multiple selection- material number of the standard transaction.
the standard transaction should never get executed automatically. Only the value should get passed from internal table to the standard t code. Please help.
regards,
ShankarHai
Go through the following Documents
SUBMIT rep.
Additions
1. ... LINE-SIZE col
2. ... LINE-COUNT lin
3. ... TO SAP-SPOOL
4. ... VIA SELECTION-SCREEN
5. ... AND RETURN
6. ... EXPORTING LIST TO MEMORY
7. ... USER user VIA JOB job NUMBER n
8. ... Various additions for parameter transfer to rep
9. ... USING SELECTION-SETS OF PROGRAM prog
Effect
Calls the report rep . Leaves the active program and starts the new report rep .
Addition 1
... LINE-SIZE col
Effect
Prints the report with the line width col .
Addition 2
... LINE-COUNT lin
Effect
Prints the report with lin lines (per page).
Addition 4
... VIA SELECTION-SCREEN
Effect
Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained.
Addition 5
... AND RETURN
Effect
Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode .
Addition 6
... EXPORTING LIST TO MEMORY
Effect
Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" .
Addition 7
... USER user VIA JOB job NUMBER n
Effect
Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN .
Note
When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
Addition 9
... USING SELECTION-SETS OF PROGRAM prog
Effect
Uses variants of the program prog when executing the program rep .
Note
Important
The programs prog and rep must have the same SELECT-OPTIONS and PARAMETER s. Otherwise, variants of the program prog may be destroyed.
Note
When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari . On the other hand, all variant-related actions on the selection screen of rep (Get , Save as variant , Display , Delete ) refer to the variants of prog .
Example
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00 .
Note
Runtime errors
LOAD_PROGRAM_NOT_FOUND : The specified program was not found.
SUBMIT_WRONG_TYPE : The specified program is not a report.
SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a report parameter.
SUBMIT_WRONG_SIGN : Invalid value passed to a selection with the addition SIGN .
SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with WITH sel IN itab had an unexpected structure.
Try with this Example
Data: listobject like abaplist occurs 1 with header line.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1 .
IF sy-subrc <> 0.
message ID '61' TYPE 'E' NUMBER '731'
with 'LIST_FROM_MEMORY'.
ENDIF.
Thanks & regards
Sreenivasulu P -
How to display in sap-script the data which is input in selection screen by the user.
Hii,
I want to display the data in sap-script that has been input by the user in selection screen.
Suppose the the user has done input for posting date from 25.1.2001 to 25.1.2005,what i want is to display this date in sap script.
How can i do it.
please help asap.
Regards.Hi,
If select-option name is s_erdat.
then from value will be s_erdat-low and to value will be s_erdat-high.
Arivazhagan S -
How to use a parameter of a report program from selection screen in a dialog program
how to use a parameter value(entered ) of a report program from a selection screen in a dialog program.
I have to fetch the value entered in the parameter of report program and display it in a dialog programHi Aasim,
Just mention like below in your ABAP report.
PARAMETERS: p_aufnr TYPE aufnr MEMORY ID ord.
and mention the same memory ID name in the module pool screen property it automatically populates the value to and fro -
Report with two selection screen
Hi,
I have one requirement for report.
When we execute the report then it should have two parameter (sales org, document number)
After pressing F8 it should display another screen or same screen with display customer name, city for that document and screen should have 2 more parameters (New customer kunnr).after pressing F8 program functionality should work.
Please suggest.please create 2 reports as given below.-
REPORT ZSZP_00007.
parameters a(5) .
parameters b(5) .
parameters c(5) .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'A' or screen-name = 'B' .
get parameter id 'aaaaaaaaaaa' field a.
get parameter id 'bbbbbbbbbbb' field B.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
start-of-selection.
your logic
REPORT zszp_00005.
PARAMETERS a(5).
PARAMETERS b(5).
START-OF-SELECTION.
SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
your logic
SUBMIT zszp_00007 VIA SELECTION-SCREEN.
i hope this approach will solve your problem.
thanks
Swanand
Maybe you are looking for
-
How to only sync selected items from library
*I am a new owner of a 120GB iPod classic. How do I sync only certain songs from the itunes I currently have ? I removed the check mark from the box and those songs still downloaded to the ipod. Not sure how to set itunes to only snyc those items sel
-
What does all does metadata fields mean?
So far, I haven't yet created a personalized Metadata Preset for all my photos because I don't understand most of the fields, what they exactly mean and where is that value going to be displayed/read by. Can anyone help me on that or point to me to a
-
I had to restore my iPhone 4 and now all my pictures are gone. I don't have them backed up to my laptop, and I thought that they automatically backed up to iCloud but I'm not sure. I had a lot of pictures that i desperately want to get back PLEASE HE
-
Hello, I use to own a MX890 and use the MP Navigator software that came with it. I'd scan documents and the OCR pdfs worked great. Well that printer died and I replaced by the MX922. It does come with OCR but it converts it to a word pad document.
-
Find out USA Model number of Satellite A80-127
Hello, I have a Toshiba SA80 127 . Is there any way i can find out the model number of the US version of this Laptop ? since i probably need some repairs/replacements on parts (cooling fan/ LCD). Any suggestions will be helpful. Thanks karthik