Report displaying List of Document number whoose MIRO never done
hi all,
i have to make a report which will display those document number whose Invoice verification(MIRO) never done but it processed MIGO. so can anyone please tell me the logic or tell me from which table and on which condition can i get the respective data ?
regards saurabh.
hi evrybody,
thanx for reply, can u please tell me from which table shoud i take PO number? actually i taken PO number and Mat document no from MSEG...so please check my code and tell me i m going correctly or not?
codes :
REPORT zmat_list NO STANDARD PAGE HEADING LINE-SIZE 255.
TYPE-POOLS: slis.
TABLES : mseg, makt, mkpf, ekbe, ekko.
TYPES : BEGIN OF itab1,
matnr LIKE mseg-matnr,
werks LIKE mseg-werks,
bwart like mseg-bwart,
ebeln LIKE mseg-ebeln,
ebelp LIKE mseg-ebelp,
erfmg LIKE mseg-erfmg,
erfme LIKE mseg-erfme,
dmbtr LIKE mseg-dmbtr,
lifnr LIKE mseg-lifnr,
mblnr LIKE mkpf-mblnr,
budat LIKE mkpf-budat,
maktx LIKE makt-maktx,
aedat LIKE ekko-aedat,
END OF itab1.
DATA : itab TYPE STANDARD TABLE OF itab1 WITH HEADER LINE.
DATA : BEGIN OF itab3 OCCURS 0,
ebeln LIKE ekbe-ebeln,
ebelp LIKE ekbe-ebelp,
matnr LIKE ekbe-matnr,
END OF itab3.
**--ALV DECLERATION--
DATA : w_container TYPE scrfname VALUE 'CL_GRID',
w_cprog TYPE lvc_s_layo,
g_repid LIKE sy-repid,
w_save TYPE c,
w_exit TYPE c,
cl_grid TYPE REF TO cl_gui_alv_grid,
cl_custom_container TYPE REF TO cl_gui_custom_container,
it_fld_catalog TYPE slis_t_fieldcat_alv,
wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
layout TYPE slis_layout_alv,
col_pos LIKE sy-cucol ,
alvfc TYPE slis_t_fieldcat_alv.
***-- SELECTION-SCREEN--
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : ebeln FOR mseg-ebeln,
lifnr FOR mseg-lifnr,
budat FOR mkpf-budat,
matnr FOR mseg-matnr,
werks FOR mseg-werks.
SELECTION-SCREEN : END OF BLOCK b1.
PERFORM fill_catalog1 USING:
'MATNR' 'ITAB' 'Material',
'MAKTX' 'ITAB' 'Description',
'WERKS' 'ITAB' 'Plant',
*'MBLNR' 'ITAB' 'Mat Document No.',
'EBELN' 'ITAB' 'Purchase Order',
*'EBELP' 'ITAB' 'Item',
'AEDAT' 'ITAB' 'P.O. Date',
*'ERFMG' 'ITAB' 'Quantity',
*'ERFME' 'ITAB' 'Unit',
'DMBTR' 'ITAB' 'Amount',
'LIFNR' 'ITAB' 'Vendor'.
SELECT m1matnr m1werks m1ebeln m1ebelp m1erfmg m1erfme m1dmbtr m1lifnr m2mblnr m2budat
INTO TABLE itab FROM mseg AS m1 INNER JOIN mkpf AS m2 ON m2mblnr = m1mblnr
WHERE m1~ebeln IN ebeln
AND m1~lifnr IN lifnr
AND m2~budat IN budat
AND m1~matnr IN matnr
AND m1~werks IN werks
AND m1~bwart = '105'.
IF sy-subrc <> 0.
MESSAGE 'Data Not Found' TYPE 'I'.
ENDIF.
SORT itab BY ebeln.
LOOP AT itab.
SELECT ebeln ebelp matnr FROM ekbe INTO TABLE itab3 WHERE ebeln = itab-ebeln
AND ebelp = itab-ebelp
AND matnr = itab-matnr
and vgabe = '1'
AND vgabe EQ '2'
AND bwart EQ ''.
IF sy-subrc EQ 0.
DELETE itab.
CONTINUE.
ELSE.
SELECT SINGLE maktx INTO itab-maktx FROM makt WHERE matnr = itab-matnr.
select single aedat into itab-aedat from ekko where ebeln = itab-ebeln.
MODIFY itab INDEX sy-tabix TRANSPORTING maktx aedat.
ENDIF.
ENDLOOP.
layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZMAT_LIST'
it_fieldcat = it_fld_catalog
i_default = 'X'
i_save = 'A'
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form FILL_CATALOG1
text
FORM fill_catalog1 USING p_fieldname TYPE any
p_ref_table TYPE any
p_scrtext TYPE any.
CLEAR : wa_fld_catalog.
wa_fld_catalog-fieldname = p_fieldname.
wa_fld_catalog-tabname = p_ref_table.
wa_fld_catalog-seltext_s = p_scrtext.
wa_fld_catalog-seltext_m = p_scrtext.
wa_fld_catalog-seltext_l = p_scrtext.
APPEND wa_fld_catalog TO it_fld_catalog.
ENDFORM. " fill_catalog1
Regards.
Similar Messages
-
Permanent sorting the open items list by document number descending
Hello,
I want to store, that the "Sales -A/R - Sales Report - Open Items List" is allways sorted by document number descending.
I am able to sort the list, but the system doesn't store this configuration.
Next time when I enter the list, I have to sort it again. We use B1 2007A SP01 Patch 7 Hotfix 1.
Has any one an idea ?
Regards.
MichaelHi
U can use Customised query Report to show ur report as per ur format and requirement. But in Normal Report u cant do this...always u have to sort there was no option in standard to save...
Giri -
Display of FI document numbe and material document number
Hi,
I want to display both the material document number ( RBKP ) and the acccounting document number ( BSET ) together while posting the Invoice using MIRO transaction.
Pl provide with your valuable suggestions.
Regards,
R. Dillibabu.Hi Arif,
We wanted to generate a number during invoice verification based upon the order type of the PO, As you know it is not possible to generate a order specific material document number but it is possible to generate a order specific accounting document number provided we can select RE or ZE while processing invoice verification.
This accounting document number will be considered as a claim number for one of the customized business process ( Warranty Claim process ).
The user has to record the claim number on a daily basis. Currently it is being done by passig the RBKP-BELNR to the BKPF to get the accounting document number ( BELNR ) which is quite tedious.
Hope the business functionality is quite clear now.
Regards,
R. Dillibabu. -
Reference Document Number In MIRO
Hi,
I want to make Reference Document Number mandatory in MIRO.
Pls. guide.
Regards,Hi PK,
You can make it mandetory for document type RE,use following path,
SPRO- Financial Accounr\ting (New ) -- Document - Define DT for entry view - double click on DT - See last tab Required During Doc Entry and tick on reference number.
It will make compulsory field for MIRO.
Thanks ans regards
Gitesh -
Accounting document number for MIRO
Hi All,
Please help me out, is there any way to find out the accounting document of MIRO documents, apart from BKPF table.
Actually i am checking for developing a query for finding the MIRO which are created without PO details, that is the MIRO dont have any Purchase order details or reference. These MIRO document will be captured in table RBKP but not in RSEG. How can we get only those document which is not created with reference to PO in a query.
Please help me out on this.
Waiting for a best solution on this.
Thanks,
Nitin KumarHI Ravi,
Thanks for the response,
The issue here is all the MIRO invoice done with PO reference or No PO reference will be having the same document type RE, how can we differentiate them.
Thanks,
Nitin Kumar -
Report for listing all document flow for SD
Hi expert,
do you know any report from SAP or you have any sample report that can display and show all document flow for SD in one line...
let say in selection screen i have contract number... so when i key in by contract number all detail and flow will display e.g
conract 2000001 service order 3000000 delivery 4000000 invoice 5000000
thanks.
[SAP Notes & Tips|http://abap4beginner.blogspot.com/]hi,
thanks for the solutions. Did others have experience on this situation?
Thanks.
[Abap Notes & Tips|http://www.abap4beginner.blogspot.com/] -
Report that displays Costcenter , Document Number and Document type
Hi All,
Can anyone suggest Report that displays Costcenter for a Document Number of certain Document type - Like G/L accounts .
Thanks in advance ,
Regards,
RyGood afternoon.
If you are trying to run a report for a particular cost center (or range of cost centers) and have the report show the GL document number and document type, try transaction KSB1. You can update the line layout to show these fields.
If you are trying to run a report for a GL account and have the report show the cost center, run FAGLL03. You can update the line layout to include cost center.
Apologies if I have mis-understood your question.
Barb -
Accounting document number display in purchase order history tab
Is it possible to display the accounting document number in the purchase order history tab? Currently it is displaying material document number for Good receipts and LIV (logistic invoice verification) document number for Invoice receipts against material document number colmn. We can get to the accounting document number by drilling into the LIV document number. We are looking for a way to display the accounting document number in the display screen of purchase order history tab instead of drilling down.
Is there an option to display accounting document number of the MIRO posting in ME23N , purchase order history tab?
Truly appreciate any help in this regard.Thanks for the response.
-
Excise No. using Accounting Document Number and the P.O. number
Hi All ! In my GL report, I'm displaying the Accounting Document Number and the P.O. number.
Now, the requirement is to display the excise no..
Tried different tables in SE11 using J_1EXC for excise detials, but to no avail.
And last which vendor to pick, Because vendors in P.O and BSEG differs.
If I use the BSEG-BELNR I get a different vendor & If I use the P.O. no. in EKKO then also I get a different vendor.
Please suggest.Hi,
Actually the vendor in the accounting document and PO should match. If not look in table EKBE, It will have the accounting document or at least the invoice receipt against which accounting document would have been created. Check if the vendor number matches with the invoice receipt.
Regarding the excise number I'm not sure what you mean, If you mean excise invoice number, you can look at the J_1IEXCDTL
J_1IEXCHDR tables. You could check with FC on what basis the document is getting created to make out the relation ship. If it is vendor excise no etc. you can hit F1 help to find out the table etc.
Hope it helps.
Sujay -
PO number not appearing in Purchasing Document number
Hi
I have posted a MIRO. PO number: 4500000013. Now when i see in FBL1N & vendor open items, PO number does not appear in Purchasing Document field. Let me know how to bring the PO number.
Edited by: Deepak Agrawal on Oct 8, 2009 11:50 AMHi,
The display of the purchasing document number for customers/vendors via the line item display is not possible. However, you can branch from the vendors/customers line item display into the document overview and there display the purchasing document number for the individual G/L account line items.
Regards,
Eli -
To Display the Sales docoment Number(VBAk-VBELN) in Business Workplace
Hi,
I want to display the sales document number(ie VBAK-VBELN) of Credit blocks orders in the Business Workplace inbox.
I am able to display the message called "Sales Order Block for Credit Checks ". I have done the following customizing.
1. Partner Function KB(Credit Representative) for the Sales Document Header.
2. Output Determination Procedure.
3. Output Master Record VV11(KRML) : - Here is there any coding i need to write or can i do it by customizing.
Regards
RaviI need to add classification data for sold to party business partner that I created.
Business partner-->General Data->Classification-->
Classification -
> I need to check the check box for customer and also
Business partner--->General Data-> Classification----->R/3 integration---->Account Group I need to put 0001.
How should I do this? I am making use of the BAPI BAPI_BUPA_CLASS_ADD.
Here I need to pass values to CLASSIFICATION.
I donu2019t know what values I need to pass to this import parameter CLASSIFICATION.
When I go and see the structure of it, I find that the following fields are there.
CLASSCAT, CRIT1, CRIT2, CRIT3, CRIT4, CRIT5, ATTRID, VALUE.
What values should I pass so that I can add classification data to my sold to party business partner such that the Customer check box is checked and in R/3 integration----->Account Group I should fill 0001.
Regards,
Jessica Sam
Edited by: jessica sam on Nov 15, 2008 2:33 PM -
Hello Freinds,
Could you please help me out for the below issue.
My client requires document no to be appear in the transaction SP01.
Say for ex: currently if we use tcode SP01 we get the fields like, Spool no, Type, user name, Date, Time, status etc
In the same way can we accomidate the sales document / delivery document number in that row for easy identification of the document and trigger for print out.
Or is ther any way to make the spool no as the document number in SP01
Kindlyu help me in this regard.
Regards,
Ram.Hello,
I don't think it is possible.
Beause SAP assigns unique number to each Output Request & it is referred in future by that number itself.
But user can display a particular Spool No. (on SP01) before actually printing it.
Check with your ABAPer whether he can copy SAP Standard Program for SP01 & modify it to display the actual Document Number.
Hope this helps,
Thanks,
Jignesh Mehta -
Dears,
could you please advise on how to display the field DOCNR in absence infotype after saving the absence ? i want to display the created document number to the user.Hi Kathy,
Unfortunately you cannot enhance time management infotypes:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d526be575e11d189270000e8322f96/content.htm
You may go for a different solution -e.g. You may implement user exit ZXPADU01/02 and show doc nr in a pop-up screen-
Regards,
Dilek -
List of GL account no.that never been posted
Hi,
Please advise I am finding the report that display list of GL account no. that never been posted in the system.
Regards,
PollaHi
Try S_ALR_87012277 - G/L Account Balances
In the input screen select 'Accounts not posted to'and execute
Thank You, -
Report - open/closed goods receipt & its MIRO Document number
Dear all,
Is there any standard report for open/closed goods receipt(Material doc. no.) & its MIRO Document number based on good receipt posting date ?
Awaiting valuable reply.
JeyakanthanHi,
If your requirement is only to display Open GR & Open IR with material & a/cing document, then you need to develop a report.
Tables
EKPO - PO and line item
EKBE - documents with values
You can create a query with the help of SQ01 / SQVI. Then you can create TCode with thehelp SE91.
Pick up values for selection parameters and display while creating query.
Anand.
Maybe you are looking for
-
Can Oracle XE be used for small business organizations.
I want to ask with reference to licencing of software. my question is whether Oracle XE can be used for a small size business organizaion, cuz it needs no license for any purpose. Please also guide if there are some limitations in this version with r
-
Need suggestion on OSB design..
Hi i am facing following issue:- I have 4 interface that i need to do using OSB. I have separate xsd's for each interface. Each interface may have its own message flow, Now what i want to do is:- Use only one WSDL ,one Proxy and in business service..
-
Problem with unavailable fonts haunting me
Using Frame 11, I cannot create a PDF because of unavailable fonts. I dutifully change them to what the console says using the Character Designer. That works. But when I open the files back up later, the unavailable fonts message come back. I need so
-
Accessing XML data from a different class
Hi all, I have an xml class that loads xml data, I need to access the data from another class. I have imported the xml classinto the new class and created a new instance of it. However when I try to access the xml data it is coming back as null. I un
-
Mac OS X 10.6.2 Upgrade/Parallels Crashes/HD Unrepairable
Once I have the 10.6.2 upgrade installed, parallels 4.0 crashes. I tried to repair the HD utilizing the install disk utlity. It is telling me the HD is not repairable. I restored the HD from my time capsule but once I re-install the 10.6.2 upgrade it