ALV report which displays Delivery and Invoice details..by linking vbfa.
Hi...
I wants to develop an ALV Report, which displays Delivery details as well as Invoice details for a range of given sale orders.
For this report I am using Tables : VBAK,VBAP,LIKP,LIPS,VBFA tables .
Here VBFA is a table for Document flow how to link this with report ??
Please reply.
Regards ,
ASHOK
Moderator message : Not enough re-search before posting, spec dumping not allowed. Thread locked.
Edited by: Vinod Kumar on Aug 1, 2011 9:58 AM
VBFA has VBELV and POSNV can be used to map VBAP (sales order item) i.e.
VBFA-VBELV = VBAP-VBELN AND
VBFA-POSNV = VBAP-POSNV
with VBTYP_N = J Values available in VBFA-VBELN and VBFA-POSNN will be LIPS -VBELN and LIPS-POSNR
VBTYP_N/ VBTYP_V = J stands for delivery and C stands for order
Nitesh
Similar Messages
-
Dashboard prompt for report which displays curent and previous FY
We have a dashboard with the prompt for the FY and one of the reports on the dashboard should show results for selected FY and previous FY. Report has filters Fiscal Year is greater than or equal to PREVIOUS_FSCL_YEAR AND Fiscal Year is less than or equal to CURRENT_FSCL_YEAR. However if filters are not protected report will display only results for FY selected in prompt but if they are protected it will then ignore prompt. Any idea how to resolve this issue? We need this solution if FY 2009 is selected in the prompt report will display results for FY2008 and FY2009 or if FY 2010 is selected report will display results for FY2009 and FY2010.
Thanks
TatjanaHi,
You can do this by creating a dynamic variable in the RPD for the current year as:
SELECT (TO_CHAR(sysdate,'YYYY')) from dual. This will produce Current Year value.
In the Answers for the report which refers to the Year Column. Make a filter from the Year Column. While making filter Click on 'Advanced' in the Filter--> Convert this filter to SQL. And inside it write this forumla: Column_name_will come=VALUEOF(Dynamic_Variable_Name)
For Example-"Time Period Year"."Calendar Year" = VALUEOF("Current_Year_Var")
Make similar filter and write the SQL Filter as- "Time Period Year"."Calendar Year" = VALUEOF("Current_Year_Var")-1
(This will give you the last year value)
And important is make it as 'OR' condition between the two filters.
Hope this will resolve your problem. Let me know further
Regards
MuRam -
Report - quantity and value difference between delivery and invoice?
Hello experts,
My client use u201EProof of deliveryu201D t-code: VLPOD. There is always quantity and value difference between delivery and invoice.
Do you know any report which will show this differences between delivery and invoice?
Best regards,
MaciejHi,
Note 867678 - Proof of delivery (POD), delivery and billing document will help you to understand POD flow.
You have the tcode VLPODF/VLPODL/VLPODA, but perhaps they will not help you. So, as the before note suggests you, you can use the tables VBFA, LIKP, LIPS, VBRK, VBRP, TVPOD and TVPODG to do your own report.
I hope this helps you
Regard,
Eduardo -
A report which shows the vendor invoice and its purchase order MM
Hi All,
I wonder if ther's a SAP standard report which shows the vendor invoice (the FI document) and its purchase order MM.
Could anyone help me?
Thanks
G.Rossi
Edited by: Lakshmipathi on Aug 2, 2011 2:24 PM
Thread Locked - Reason Cross PostedDear,
you can use FBL1N,
From there you can view following things:
1. Vendor Invoice = Reference
2. Document type = KR and RE for Invoices
3. Po Number
4. Amount
you can enable there many fields as per your requirement.
Hope this helps!!!
Br,Vivek -
Crystal Report for Sales, Delivery and Payment.
Hi Guys,
Need some expert advice over here. Currently, our sales team are using 3 separate report, one report on sales per month for each specific customers, one report on delivered amount per month for specific customers again and the last one report on payment received per month for specific customers as well.
We have the idea of joining this 3 report so that I can report on sales, delivery and payment all at once so that they can see the trend better. However, after trying for quite a few times, we fail to create a common joining between ORDR, ODLN and ORCT. Is there any possible way to work something out ?
I have thought of using subreport, but I just cant find the way to plug in the figure correctly.
Need some advice over there.
Thank you.
Best Regards,
AlexBased on what you have told me, then you should then join Sales Order, Delivery, Invoice and Incoming Payments into one.
The reason I say Invoice table also is because, you cannot directly link Delivery and Incoming Payments window.
Also you it is not enough that you link the ORDR, ODLN and ORCT, you will need to get the details from RDR1 and DLN1.
In SAP Business One, each line in SAP Business One can have a different Delivery documnet.
The TrgetEntry, TargetType will give you this information. For example, if a line for Sales Order has TargetType 15, then TrgetEntry will be the DocEntry in the ODLN. But if it TargetType is 13 it means the Sales order was converted directly to and Invoice and bypassed the creation of Delivery step, which is possible in SAP.
So here is how I think you will need to link Sales order and Delivery
RDR1.TrgetEntry INNER JOIN DLN1.DocEntry AND
RDR1.TargetType INNER JOIN DLN1.ObjType AND
RDR1.LineNum INNER JOIN DLN1.BaseLine
Now this could get a little more complicated if you do partial deliveries. For example if a line in your Sales Order has say 10 items and 6 of them are delivered using Delivery Note 123 and the remaining are delivered using Delivery Note 124, then the join will give you 2 different lines.
So basically you will need to link the tables in this fashion
ORDR <-> RDR1 <-> DLN1 <-> INV1 <-> RCT2 <-> ORCT
Unfortunately, this linking process can get complicated if you do not follow certain steps, like for example if you do not create a Delivery Note and converted your Sales order to Invoice. Then the link would be
ORDR <-> RDR1 <-> INV1 <-> RCT2 <-> ORCT
I hope I didn't confuse you.
Krishnan -
How to devolped an Interactive ALV Report to display sales orders
hi,
how to devolped an Interactive ALV Report to display sales orders pertaining to the selected Customers and item details in the secondary list.For this report what are the tables and fields wehave to used give with example.
thank you
radhakrishnaHi,
look via se38 for BCALV* and SALV*.
Try ABAPDOCU.
Regards, Dieter -
Create a ALV report with fields editable and entry to be saved in ztable
Hello Experts,
I have created the ALV report which has two of the fields editable. Now whenever user puts an entry in the ALV it has to be saved in the ZTABLE.
The report is displayed with editable fields but i'm not sure what has to be written in the 'USER COMMAND' subroutine to save the entries in ztable.
Please see my code belwo:-
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'ALV_USER_COMM'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
TABLES
t_outtab = it_bg2
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
Thanks,
Naveen
Edited by: jaikrishna on Sep 4, 2010 8:13 AMHi,
I have worked on similar requirement. You can do that on sy-ucomm value only and you have to call a FM and a method. For that end user has to click on a button which you need to create in the application toolbar. Say that button function code is 'SAVE'. Write the following code in your user command :
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
*Code to reflect the changes done in the internal table
DATA : REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA: L_VALID TYPE C.
IF REF_GRID IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = REF_GRID.
ENDIF.
IF NOT REF_GRID IS INITIAL.
CALL METHOD REF_GRID->CHECK_CHANGED_DATA
IMPORTING
E_VALID = L_VALID.
ENDIF.
CASE SY-UCOMM.
WHEN 'SAVE'.
*Data will come with the edited values from ALV
*Here you write your code to save entries into Z table
ENDCASE.
ENDFORM. "USER_COMMAND
Thanks & Regards,
Rock. -
Linking column for sales,delivery and invoices
I just have a question regarding database schema in SAP B1.
I would like to know how SAP b1 links
Sales Delivery and invoices
In other words
i want to know all invoices based on Sales and delivery
all invoices based on just delivery etc
What is the linking field or column between these three tables
rdr1, dln1,inv1
How does Sap keep track of whether a invoice is based on sales or delivery or
both.? I appreciate your help.
Thanks,
JoshHi Joshua,
What you need to look at are the BaseEntry, BaseType and BaseLine fields in the item row (ie INV1 or DLN1). It works as follows:
BaseType = The originating document type where 17 is a sales order and 15 a delivery
BaseEntry = The DocEntry of the originating document
BaseLine = The LineNum of the originating document
A simple example is as follows:
1) I create an order (DocEntry 10) with 2 rows (LineNum 0 and 1)
2) I create a delivery (DocEntry 5) based on this order with both rows. In the DLN1 table my rows will have BaseEntry 10, BaseType 17 and BaseLine 0 and 1.
3) I create an invoice for the second row from the delivery. In the INV1 table I will see BaseEntry 5, BaseType 15 and BaseLine 1.
You also have TargetType and TargetEntry which show the target document details but these are not that useful as they only show the last target number and type and cannot be used where you have multiple target documents.
Kind Regards,
Owen -
Creation of Automatic delivery and invoice..
Hi Team,
Can you guys please tell me the configuration steps of automatic delivery and invoice creation.
Actually I want to create the delivery and invoice as soon as order get saved.
I will be highly oblige if you kindly revert me back
regards,
jeetsapDear Prasanna,
In vl23, you will not be able to make changes in the STANDARD VARIANTS.
You can create your own variant by (SHIFT + F7).
Give a variant name ' TEST' and click create.
Now you can give the selection parameters
Click on attributes
So you will reach a variant screen, where you have to give a 'meaning name'...like variant for TEST
You can see fields .
Imagine that initially you had given 1100 in the sales organisation.
Now if we do not want that value to be changed, then use protect field.
If that field need not be displayed, the choose hide field.
Usually, these two will be used, if we are going for background processing.
SAVE and you can see a new variant in VL23 now.
Thanks & Regards,
Hegal K Charles
Edited by: Hegal . K . Charles on Jul 18, 2011 11:48 AM -
ALV Report to display the status of the requests raised through ESS
Hi All,
We have to develop a ALV report to display the status of the requests raised through ESS
for Leave, Travel & Event Management, Travel and Appraisal workflows.
ESS Travel, ESS TEM, ESS Apraisal workflows are associted with SAP Business Objects.
we are using the function module SWI_WORKITEMS_OF_OBJTYPE_GET to get
the top level work item id's by passing the object type like PDRELA_025, BUS2089.
By using SWP_WORKFLOW_LOG_READ function we are getting the workflow log
by passing top level work item id's as imort parameter.
The report output should have the following fields
Initiator, Initiator Personal No, Request Type( Leave, Travel etc.. )
Date of application of the request, Status ( Approved by RM, Rejected etc )
Name of the Approver, Approved / Rejected Date.
The logic should be work for all the above ESS workflows and should be generalized.
Can any one please let me know the procedure to get the required information from the workflow log.
It would be great if any one suggest on the same how to proceed further to get the information as mentioned above.
Thanks & Regards,
Jagadeeswara Rao Balla.Hello,
You can get most of that information from fm SAP_WAPI_GET_HEADER, input is workitem_id.
regards
Rick Bakker
Hanabi Technology -
Blockin of Delivery and Invoice
Hi Guys,
If a vendor is blocked for some reason thru FD32, can we restrict SOs, which have been created earlier by him, for delivery and billing?
Warm Regards,
Mohandoss P.Hi Erik Hoven,
Let me explain the scenario, A customer can't create a sales order if i suppose block that customer,lets consider CGK20S000,through FD32 on 15th March'09. He is no more allowed to system to create a documents now onwards.
Fine then, the system allows him to create a delivery and invoice for the sales orders which have been created by him on prior to 15 March 09. Our requirement is, he should not be no more allowed to create any documents.
Will it be achieved through any exits?
Warm Regards,
Mohandoss P. -
Report to display materials and prices
Hi everyone.
Pls. I would like to know if there is a report to display materials and prices, I mean prices from material master accounting view.
Thanks a lot.Dear Frnd...
There is no such report... as per my knowledge... may be I am wrong...
But you can use Table MBEWH and develope report for the same..
Regards,
AMit P Hiran
njoy SAP..
njoy Lyf... -
Delivery and Invoice Numbering range
Hi Friends
Delivery and Invoice Numbering range Plant Wise.
1. I have one Company Code Many Plant. Whenever i am creating the Delivery and Invoice, i should want different Numbering range of Delivery Number and Invoice Numbers. So that i can understand that these invoice raised from particular plants
Regards,
UdhayHI
To achieve this you have to for Development using Userexits in MV50AFZZ and RV60AFZZ respectively for Delivery and Billing.
Create a ZTales and maintain the list of Plants and the corresponding Number ranges.
Then the system takes the Number corresponding to that plant in the document under creation, from the list in Ztable.
Thanks,
Ravi -
Delivery and Invoice Number Plant wise
Hi Friends
I have one Company Code Many Plant. Whenever i am creating the Delivery and Invoice, i should want different Numbering range of Delivery Number and Invoice Numbers. So that i can understand that these invoice raised from particular plants
Pelase send me sourse code
Regards,
Udhayhello,
changing nuber range:
1. for deliveries:
program MV50AFZ1:
FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
Example: Numer range from TVLK like in standard
US_RANGE_INTERN = TVLK-NUMKI.
ENDFORM.
2. invoices:
program RV60AFZC:
FORM USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN.
Example: Number range from TVFK like in standard
US_RANGE_INTERN = TVFK-NUMKI.
ENDFORM.
reward points if helpful
best regards,darek -
Exit to block Sales Delivery and Invoice?
Hi Experts,
Does there exist any exit to block the sales delivery and invoice?badi LE_SHP_DELIVERY_PROC
Regards.
Maybe you are looking for
-
Incoming MIDI data from unassociated devices still gets sent out in 2.1.3
The problem I have reported numerous times for previous versions of MainStage is still present in 2.1.3. An incoming MIDI CC value that is NOT associated with a device is being sent to other channel strips. Last night before rehearsal, I added a Mini
-
Need to be able to join a windows network
Hi All I have an Ibook runing 10.4.5, and i need to be able to get some data off a windows server which has it own windows network. How easy is it to link up to the server, do i just plug my laptop into its network and connect as you would to an xser
-
Hi I wonder if anyone can help. My computer died recently and I couldn't retrieve anything from it including my i-tunes. I wondered is there any way that I can update a new itunes from my i-pod without having to load all of my cds again ( I have abou
-
Disk Utility fails to partition
This is what it says: Partition failed with the error: Could not modify partition map because filesystem verification failed
-
My question is how do I watch music videos while my iPad is connected to the cd player in my car? I haveva new cd player. I get sound but screen just says accessory connected and I canted anything to the touch screen. Any tips?