Logic Needed for MM Report with PR, PO, GR and Invoice details
Hi Experts,
We need to provide a list of below details as columns.
PR, PR creation date, PO, PO creation date, GR, GR creation date, Invoice and Invoice creation date.
Now on the selection screen we'll have Date range. If I give the dat range as 01.01.2011 to 31.12.2011, then the list should be displaying all the details. However, it should first check Invoices in that date range and mention the related details. If there are some GRs (for which invoice is not yet created) for that year, then the related details (PR, PO and GR) of that GR are to be shown. For POs (for which GR itself is not yet created), again details are to be shown (PR and PO details).
Can somebody help me in getting this done in some simpler way? I am thinking of fetching the data from the respective tables for this date range and then from invoice i will be printing and then deleting the corresponding GR, PO and PR. Then will be checking GR , printing the details and deleting corresponding PR and PO.. and so on. But I felt this not that great.
Can anyone suggest some other logic or provide some inputs?
Thanks.
Hi,
As per your requirement you can cross the tables i.e. BSET,RSEG,RBKP(For Invoice Header n Item Details).Then now go to the MKPF,MSEG tables (For MIGO Details) and EBAN,EKKO,EKPO(For Purchase Requsitions,Orders Details).... Consider BUDAT as a selection date among the tables RSEG,MKPF,EKKO.
Regards,
Rickky
Similar Messages
-
Report with goods receipt value and invoice posting value
Is there any standard report with goods receipt value and invoice value (the value with which invoice is posted.
Hi
Please check MC$4 transaction, mey be helpful.
regards
Srinivas -
Logic needed for dynamic report
Hi Experts,
I have made a dynamic report where my logic is if the value of the columns is 0 than it should be blank and if the columns of the stores have some value for eg: 01 than it should populate the same store.
The logic goes like :
for matnr 01store 02 store
01 100.00 0.00
02 00 00
03 50.00 13.00
than the output should be
matnr 01store 02 store
01 01store
02
03 01store 02 store
I have made the logic but all the lines are getting appended
it_field_dynamic1-fieldname = 'MATNR'.
it_field_dynamic1-desc = 'ARTICLE'.
it_field_dynamic1-reffield = 'MATNR'.
it_field_dynamic1-reftab = 'MBEW'.
it_field_dynamic1-seq = 1.
COLLECT it_field_dynamic1.
CLEAR wa_itab.
LOOP AT itab INTO wa_itab. "WHERE SALK3 NE '0.00'.
it_field_dynamic1-fieldname = wa_itab-bwkey.
it_field_dynamic1-desc = wa_itab-bwkey.
* IF WA_ITAB-SALK3 NE '0.00'.
* it_field_dynamic1-reffield = wa_itab-bwkey.
* ENDIF.
it_field_dynamic1-reftab = 'MBEW'.
it_field_dynamic1-seq = 1.
COLLECT it_field_dynamic1.
CLEAR wa_itab.
ENDLOOP.
LOOP AT it_field_dynamic1.
wa_alv_cat1-fieldname = it_field_dynamic1-fieldname.
wa_alv_cat1-col_pos = sy-tabix.
wa_alv_cat1-ref_field = it_field_dynamic1-reffield.
wa_alv_cat1-ref_table = it_field_dynamic1-reftab.
wa_alv_cat1-seltext = it_field_dynamic1-desc.
COLLECT wa_alv_cat1 INTO lt_alv_cat1 .
CLEAR wa_alv_cat1 .
* APPEND wa_alv_cat TO lt_alv_cat .
ENDLOOP.
IF NOT lt_alv_cat1[] IS INITIAL .
* Create Dynamic Table -> i_table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_alv_cat1
IMPORTING
ep_table = i_table1.
ASSIGN i_table1->* TO <table1> .
* Create dynamic work area and assign to FS
CREATE DATA i_struct1 LIKE LINE OF <table1>.
ASSIGN i_struct1->* TO <struc1>.
ENDIF.
DATA: l_row TYPE sy-index.
FIELD-SYMBOLS: <ls_table> TYPE ANY.
FIELD-SYMBOLS: <l_field> TYPE ANY.
DATA: wa_dref1 TYPE REF TO data.
FIELD-SYMBOLS: <wa_tab1> TYPE ANY.
CREATE DATA wa_dref1 LIKE LINE OF <table1>.
ASSIGN wa_dref1->* TO <wa_tab1>.
FIELD-SYMBOLS: <fs1>, <fs2>.
* DATA: wa_dref1 TYPE REF TO data.
* FIELD-SYMBOLS: <wa_tab1> TYPE ANY.
CREATE DATA wa_dref1 LIKE LINE OF <table1>.
ASSIGN wa_dref1->* TO <wa_tab1>.
CLEAR : wa_matnr, wa_itab.
LOOP AT imatnr INTO wa_matnr.
*clear: wa_itab-bwkey.
* CLEAR: wa_itab.
LOOP AT itab INTO wa_itab WHERE matnr = wa_matnr-matnr.
* CLEAR: wa_itab-bwkey.
IF wa_itab-salk3 EQ '0.00'.
CLEAR: wa_itab-bwkey .
ELSE.
ASSIGN COMPONENT wa_itab-bwkey OF STRUCTURE <wa_tab1> TO <fs1>.
IF sy-subrc = 0 . "AND WA_ITAB-SALK3 NE '0.00'.
<fs1> = wa_itab-bwkey.
ENDIF.
ENDIF.
*ON CHANGE OF WA_ITAB-MATNR.
ASSIGN COMPONENT 'MATNR' OF STRUCTURE <wa_tab1> TO <fs2>.
IF sy-subrc = 0.
* ON CHANGE OF wa_itab-matnr.
<fs2> = wa_itab-matnr.
* ENDON.
ENDIF.
* APPEND <wa_tab1> TO <table1>.
ENDLOOP.
APPEND <wa_tab1> TO <table1>.
CLEAR : wa_ltab.
ENDLOOP.
than i have called the alv grid display
Please let me know.
Thanks,
Nikhil.Hi Oliver,
My current output is:
for
matnr 01store 02 store
01 100.00 0.00
02 00 00
03 50.00 13.00
matnr 01store 02 store
01 01store
02 01store
03 01store
but for matnr 02, 01 store has 0 value hence it should come blank but its appending from the first line and populating 01store for material 2.
Thanks & Regards,
Nikhil. -
Help needed for building report with execution method Java Concurrent prog
Hi,
I have saw a report like this:
The report has executable "XML Publisher Data Template Executable", short name as "XDODTEXE", application "XML Publisher",execution method "Java Concurrent program". Also the report has a XML publisher Data Template and Data definition and in the data definition a .xml file is attached.
I could not understand what is the data source?
Could anyone help me on how to build or update this type of report?
Is there any link or help docs which has proper step by step procedure to build this type of xml publisher report?
Please help.
Thanks.The xml file which is attached to the data definition is the data source and it has sql queries and structure of xml file.
Check this out for step-by-step guidance.
http://www.oracle.com/technetwork/middleware/bi-publisher/overview/xmlebsrep-132947.pdf
http://apps2fusion.com/at/ps/51-prabhakar/262-xml-publisher-and-data-template-sql-query-to-develop-bi-publisher-reports
For more on data templates refer user guide
http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T434255.htm -
Footer for a report with 2 repeating frames with down/across print directio
I have a report with a frame for title shown in first page. the content of the report is shown on two columns in a repeating frame(R2) which enclose an other repeating frame (R1). In R2, just after R1, I have a frame for totals. Both repeating frame have down/across print direction. All repeating frames and title frame are enclosed by a regular frame(let say frame A) that have vertical elasticity fixed. at the end of the report i must display an other frame(frame B) with signatures. I put frame B in frame A, just after R2. If I set vertical elasticity to fixed or contract for R2, when the title frame is missing i get an empty space in the bottom of the page(except the first page, where the title appear)(R2 is anchored to title frame). if I set vertical elasticity to variable for R2, the frame B is not shown on last page with records, but in next page. I need a solution to keep the frame B in last page of the report which have records. the problem appear only when I have records in second column.
Can somebody help me, please?Hi,
I think without using Across/Down instead of Down/Across this is not possible. But then the output is
1 2 3 4
5 6 7 8
If you need to have
1 3 5 7
2 4 6 8
then you had to add some logic in an additional column for sorting the output. (sounds easy, but the logic need some work depending the count of records and their position.
Regards
Rainer -
Currency type option needed for copa report
Dear Experts,
Currency type option needed for copa report.I have checked all the possibilities in ke35 as well.
how to add curreny type in selection screen for COPA reports.
regards
RKIf you want to create your own report with required currency,
T CODE - KE35 - Click on "Report" (create), next window appears
Give the name of the report and description
The u see 2 options
1. Basic report
2. Report with Form
Select which ever you want and press ENTER
Here you need to prepare the report format and fields which are there in the right side box
Hope it helps
Thanks -
I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?
Hey tulgan,
This link will provide information on what to do after you change your Apple ID:
Apple ID: What to do after you change your Apple ID
http://support.apple.com/kb/HT5796
Welcome to Apple Support Communities!
Take care,
Delgadoh -
Background processing for ABAP report with selection screen
Hi ABAP Gurus,
I m facing a strange problem in scheduling a background job for my report with a selection screen. I have a variant for the report.
I scheduled a job, but it seems to be not doing anything though all the system resources are available. The job overview shows "Acive" for the job. The job is neither stopping anything, it is just sitting there In SM50, the status shows "On Hold".
Any ideas/comments on the problem and how this can be overcome?
Qucik replies and solutions will be highly appreciated as this is a crucial part for a go-live project.
Thanks in advance.
Shivani.Yes. My report has a selection-screen which requires user input. But I have created a variant for the report and trying to run it in background using this variant. But facing this problem.
Strange thing is, instead of the usual SM36/SM37 option where we schedule and monitor background jobs, this option does not work for my report.
But I tried through SE38, and from my selection screen I selected "Schedule background job" and "run immediately" option, and this works. Though I still use SM37 to monitor this background job.
I have never faced such a situation before.
Any hints/tips why this happens and how this can be overcome in the future?
Thanks in advance.
Shivani. -
Hi Friends ,
Where to download the crdb_jdbc.dll file ??? - Needed for Crystal report ..which is missing for me ...
i searched in many sites .. but this only dll file is missing ..
can any one help me out ..itsdhanasaraa wrote:
Hi Friends ,
Where to download the crdb_jdbc.dll file ??? - Needed for Crystal report ..which is missing for me ...
i searched in many sites .. but this only dll file is missing ..
can any one help me out ..Ask at where ever you bought the software from.
Let me guess, you didn't buy it, did you? -
What Kind of microcontr​oller is needed for alarm system with PIR sensors
Hi ! I'm student at Technical University Varna ,
Bulgaria . I'm interessted to create my own alarm system with Labview,
but I'm not sure what kind of controller i need and what kind of PIR
sensors. Thank YouThis is duplicate post:
What Kind of microcontroller is needed for alarm system with PIR sensors -
A Required COM Add-in program for XL Reporter has not been loaded and prohibits Microsoft Excel from running. For more information, click help.
XL 2007, with the Trust level for macros set to minimum. SBO 2007 PL 42.
Thanks
CharlesRead the following solution from SAP for your problem:
When we open XL Reporter we get an error
message "A required COM add-in program for XL Reporter has not been loaded
and prohibits Microsoft Excel from running." when trying to open a report
definition.
SOLUTION FOR THE PROBLEM:
Reason and Prerequisites
You need to be an administrator on the local machine to add COM add-ins.
Solution
The user should be added as a member of the administrator role on the
local computer the first time you start Excel from XL Reporter the first
time so that the COM addin are registered, then you can remove the user
from the administrator group again.
Manually Loading the XL Reporter Excel COM Add-In
Symptom
If you install Microsoft Office after installing the XL Reporter
application or use another Windows user than the one you used when
installing XL Reporter, you can get an error message.
Reason and Prerequisites
The reason for this is that the report writer COM Add-in has not been
loaded, which prohibits Microsoft Excel from running.
Solution
1. Start Microsoft Excel. If you already have the COM Add-ins command on
the Tools menu, go to step 7.
2. In the Tools menu, choose Customize.
This opens the Customize window.
3. Choose the Commands tab and select Tools from the Categories pane on
the left.
4. In the Command pane on the right, scroll down to the COM Add-ins
command.
5. Select the COM Add-ins command, hold down the mouse button, and drag
COM Add-ins from the Commands pane over to the Tools menu on the Microsoft
Excel men bar. When the Tools menu commands appear, point to where you
want the COM Add-ins command to appear on the menu and release the mouse
button.
6. To close the Customize window, choose Close.
7. On the Tools menu, choose the new COM Add-ins option.
This opens the COM Add-ins window.
8. In the window, choose Add to open the Add Add-in window.
9.Select the IXXLReporter.dll file located in the Client directory in the
XL Reporter program installation area and choose OK.
10. In the COM Add-ins window, select the XL Reporter checkbox and choose
OK. -
Create a listing of reports with last run date and # of times run
Hi All,
I want to create a listing of reports with last run date and number of times report is run in the past 18 months.
If anybody can please help me with the query for the same.
Regards,
Sk
Edited by: user10989244 on Aug 18, 2009 7:12 AMHi Sk
Assuming you have the collection of statistics enabled, which it is out of the box, you can get the information you need from the EUL5_QPP_STATS table. This script will help:
SELECT
QPP.QS_DOC_OWNER WORKBOOK_OWNER,
QPP.QS_DOC_NAME WORKBOOK_NAME,
QPP.QS_DOC_DETAILS WORKSHEET_NAME,
QPP.QS_CREATED_BY RUN_BY,
TRUNC(MAX(QPP.QS_CREATED_DATE)) LAST_USED_DATE,
COUNT(QPP.QS_ID) TIMES_USED
FROM
EUL5_QPP_STATS QPP
WHERE
QPP.QS_CREATED_DATE >= ADD_MONTHS(SYSDATE, -18)
GROUP BY
QPP.QS_DOC_OWNER,
QPP.QS_DOC_NAME,
QPP.QS_CREATED_BY,
QPP.QS_DOC_DETAILS
ORDER BY 1,2,3;
Best wishes
Michael -
Report with a break above and labels
We want to create a Report with a break above and labels. There are examples for each of these, but I do not see an example of both in the same Report. Hopefully this is possible?? What can you tell us?
Thanks, WayneThanks for the reply. I have the columns set up just as you have suggested. I even created a new report with form wizard and tried to update those two questionable columns.
If the columns are null, and I add values, they save. But then when I go back and update the record, but different columns, it nulls out the two I am talking about. I am wondering if a trigger is out there someplace that is causing them to get nulled out.
Regards,
Jeff -
Report with two ALV grids and a header
Hi experts,
I have a report with two ALV grids in the same screen, each one in a separated container. The information displays it correctly. The report has been implemented by using OO Programming.
My real trouble is in the header. It must have a logo, a title with a specific font and other information.
I'll attach a capture of my need:
[Report with two ALV grids and a header|http://picasaweb.google.com/lh/photo/AcQD49QPmm-0L_jL2iMedA?feat=directlink]
Then, I want to set up the header you can see, with logo, a font with specific features. Obviously, the header you see has taken from another report. But is the same idea.
I've tried with a third container, using the CL_GUI_CONTAINER and CL_GUI_CONTAINER classes, but it doesn't work.
Any idea? Would welcome any help you can provide.
Thanks in advance,
Jorge RojasHi, Jorge.
Should the header be a"attached" to any of the ALV? Or it should be carried alone?
If first applies, you've given the solution yourself: put the info & logo in first ALV's header and invoke it from the proper method.
You could use CL_GUI_DOCKING_CONTAINER CLASS to divide screen in several containers and then, in the upper one, I would create another one docking container to divide the screen into two: the written info could be performed with an HTML viewer class and the logo with a CL_GUI_PICTURE element.
Cheers. -
Is there a wider need for an industrial spec, hard cased, scratch and bump resistant iPad and iPhone? (ones that are more robust in the outdoors and an engineering environment.) With the acceptance of app based problem solving in industry, the only obstacle to purchasing apple products seems to be their emphasis on providing an asthetic product that looks cool. Industry however, needs something that is harder wearing, splashproof/showerproof, work in the cold and dirt and is fully wipeable. If such an apple product existed I believe they would move units.
I use the ipad in a hydrometallurgical plant. Lots of dust, harsh chemicals, and where equipment come to die.
I've used laptops/ tablet pcs. All having a very bad problem of sucking in air to cool the computer. The slight acid mist in the air corrodes the contacts in the computer and they last ~ 4 months.
I have moved on to using a ipad currently in a glorified zip lock bag from the internet that has been working for the last year. I haven't dropped it yet so that's great. Most of my applications are done in a virtualized environment where i connect in to using RDP.
It works flawlessly. When the zip lock bag i'm usign gets too scratched up to read easily, I just replace the 10$ bag.
I do want another case. I am waiting on the lifeproof case coming out for the ipad2. Shockproof, dustproof, and waterproof. Much classier than my zip lock bag solution.
Within my plant, there is 4 ipads.
they have fit the bill so far. Only downfall of ipad for our windows enterprise system is the lack of sharepoint browsing natively within the ipad. I can do it with RDP but come on. . .
Maybe you are looking for
-
Hi all, I've been looking through the forums for help with this problem. There are a couple of threads with similar problems, but no solved threads and the discussion doesn't seem to go anywhere... As far as I can tell, it's been causing a lot of ann
-
Distiller 5.0.5 and Office 2000 - creating pdf not working
I am using XP Home Edition SP2, Distiller 5.0.5, and Office 2000 Can not make PDF with 2000 WORD or 2000 EXCEL. - WORD: file > print > Distiller results in the conversion hanging up. The file can not be deleted from the print que until the computer
-
Error message «wait until importation is done»
My iphoto has been showing an error message ever since my last importation from my iPhone to my iPhoto library telling me I have to wait for the importation to be done before I can : import new photos / turn off my iPhoto / Turn off my computer at al
-
Making a field mandatory in MIRO transaction
Hi all, I have an issue like this In the MIRO Transaction , for credit memo , I need to make the field INV.REF. as a mandatory field. Kindly suggest me on this . thanks, Sumit
-
NCS - error when trying to move Wireless Map
When I'm trying to move building to new campus I'm getting below error: Error(s): You must correct the following error(s) before proceeding: Error:Unknown Exception Occurred. If the problem persists please send logs to the Tech Support. Error:Detail: