Report a sales contract

Good morning guys,
I'm having trouble making a report of SD because it has no functional SD here to tell me some things. I'm doing a report for the Sales Contract, this report I have to pull the contract from some suppliers.
I was using the VBAK table after I was in VBAP table, and the vendor entered on the selection screen I would go to VBPA table to pull the vendor making a relationship with the VBAK, now I do not know if this flow is correct. If anyone can help me I appreciate it.

1. Fetch the Sales document & Item number from VBPA table based on the the input vendor pass to lifnr field
2. Based on the above internal table, fetch the data from VBAP (If you need VBAK data then use VBAK also) for all entries of the step 1 and populate the new internal table
3.  Display your Sales Contract data in the output of the report

Similar Messages

  • Download Sales Contract data into Excel sheet

    Hi,
    I need to download the Sales Contract Data into excel sheet is there a Function module that i can use?? Else how do i go about it. Kindly help.
    Thanks,
    Riya.

    use the function module FUNCTION 'GUI_DOWNLOAD'
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = 'C:\REPORT.XLS'
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = IT_PR
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.

  • Partner function for sales contract

    Hi
    I have to extract Sales related data from SAP R/3 to BW.
    Facing issue if someone just changes partner function for Sales contract as they are not captured in any of the standard extractors.
    If there is change in partner function for Sales order then it gets captured in 11 vascl but if its for contract then it doesnt get capture.
    Any solution ?
    Regards,
    monika

    Hi ! Ivy
    I guess there is a option.
    Try this out. Use the menu path IMG> Sales & Distribution> Sales> Lists> Set updating of partner index
    In the resulting screen, click on 'New Entries' make entries 0 - for sales orders and 4 - for contracts as transaction group. Under the column 'partner function' ener the partner function for which you want the report and save your entries.
    Now when you go for executing your report, click on the push button 'Partner functions' ( Say in VA05) , you will have the option for selecting the new partner functions , select and execute your report.
    Provide your feedback.
    Regards,
    PATHIK

  • Sales contracts could not coming into the KE24

    Hi,
    Only sales contracts(VA43) not coming ito the KE24
    But whenever we created the sales order with reference to the sales contracts then that time its appearing into the ke24
    why only sales contracts(do not having the Sales orders) not coming into the KE24
    Is it requires any config for this

    Hi
    Contaract is not standard charactor in co-pa thats y only contract it won be appear in the ke 24 report . if you are using contract with reference to sales order when you are doing the billing system it will take both sale order and coanaract fields it will update in co-pa .
    If you want to take contaract in to co-pa without sales order u have to create charactor strics dervation rule in KEDR transaction then it will update in copa .

  • Report on Sales Orders Cancelled

    Dear Experts,
    I have the following TWO Requirements.
    1) How to cancel Sales Orders.
    2) How to Generate a Report  on Sales Orders Cancelled during a given time. The details required in the Report are:
    Orders cancelled by an User, Depot and by the Region.
    Creation date of sale order.
    Cancellation date.
    Kindly give us your Detailed & Valuable solutions to proceed.
    Regards
    Hari

    Hi Lakshmipathi,
    I have been going through various Threads Posted in the Forum.
    In One of your Replies to a Question Posted "Re: Deletion indicator of sales order" the Solution given is "Execute TCode AUT10."
    When I had tried with the Transaction Code AUT10 on the SAP System, No Data is populated on the Screen. Any settings to be done on the System.
    You can suggest a possible solution to the Issue posted by me.
    Regards
    hari

  • How to restrict Material Class in Sales Contract Doc

    Hi,
    I need to restrict Material Class in Sales order based on Item catagory, Material group4 and Sales contract Document type.
    If the above 3 fields having a particular value then the system should restrict all the other classes of that material and display only a particular class and it's related characteristics.
    If any one come across such a senario then pklease let me know.
    Regards
    Ajay

    Hi,
    You have to make few configuration settings before you actually restrict at the object level. The solution is clearly discussed in the below thread:
    how to restrict material master by material type  t-code MM01
    Hope this helps!!
    Regards,
    Raghu

  • Centralised Report for Sales/Purchase

    Hi guys,
    One of my client needs a Centralised report for Sales & Purchase for a particular period .
    Like we are mainting multiple taxcodes  like
    BED,eCess,HeCEss,
    VAT 4,VAT 2,VAT12.5,
    VAT10.3,TAXEXEMPTED,ETC...
    So every month they need to know total sales and purchase value in a single report to be displayed respective of each tax code
    lie
    Taxcode 1 = tax Value1,total value
    Taxcode 2 = tax value 2,total value
    Total Sales value = Sum of all tax values, sum of total values
    Total Purchase value = Sum of all tax values, sum of total values
    And  needs Item Wise Sales For Each customer.
    I tried in system defined Sales and Purchase analysis report but our client needs the above type of report..
    Pls give us some solution for this..
    Regards,
    Vams

    Hi VamSam......
    Try the below query for purchase details alongwith tax amt.....
    SELECT T0.[DocNum], T0.[DocDate], T0.NumAtCard As 'Bill No.', T0.[CardName], T1.[Dscription], T1.[Quantity], T1.Price As 'Rate', T1.[LineTotal] As 'Value', T0.[DocTotal] As 'Total Value', (ISNULL((SELECT SUM(T2.QUANTITY) FROM rpc1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetQTY, (ISNULL((SELECT SUM(T2.LineTotal) FROM RPC1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetValue, (isnull((SELECT SUM((case when upper(t4.STACode) like 'BED%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ExciseDuty,
         (isnull((SELECT SUM((case when upper(t4.STACode) like 'eCess%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ECess,
         (isnull((SELECT SUM((case when upper(t4.STACode) like 'hes%' then T4.TaxSum else 0 end))
          FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) HEdCess, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'VAT12.5',
    (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT4, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT2, (isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST2',
    (isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
    FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST4', T2.TransCat As 'Form No.'  FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH12 T2 ON T0.DocEntry = T2.DocEntry WHERE (T0.[DocDate]>='[%0]' and T0.[DocDate]<='[%1]')
    Regards,
    Rahul

  • 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,
    Alex

    Based 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 create a daily report for sales order

    hi
    how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

    Hi
    You have to use the sales order tables VBAK,VBAP and VBEP
    So keep date field on selection screen
    and treat this date as Order creation data audat field in VBAK.
    based on this fetch the data from VBAK and VBAP  with the following fields like
    VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS  etc and display in the report
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Report for Sales orders with the consumed credit limit value

    Dear Gurus,
    In my company, the credit check is at sales order level. We want a report which shows up the credit value consumed from the credit master by Sales order.
    Going into the details, Say Credit limt is setup for a customer at Credit master for 10000 $.
    I want a report showing Sales order 59235 has consumed 500 $, Sales order 59277 has consumed 1500 $, Sales order 59333 has consumed 2500 $.
    Is their a report in standard SAP for the above functionality. If not, any ideas of how to achieve it?
    Thank you for your responses.
    Regards,

    Hi,
    Try the following transaction codes
    S_ALR_87012218
    FDK43
    F.31
    But if you want to a report like what you explained in thread i think in standard not available we need to develop a customized one.
    Regards

  • URGENT : REPORT for sales register

    Hi Guys,
    Anybody is having the report on sales register? logic follows like this:-
    The logic which needs to be developed is, as per input criteria given by user, which will be sales organization, plant & date range.Program needs to pick all the billing document which will satisfy the above criteria.
    Except for document cateroty N i.e. invoice cancellation (VBRK -VBTYP not equal to N) and which are marked for cancellation (VBRK-FKSTO not equal to
    X)
    From the VBRK table pick up the document condition number (VBRk-KNUMV) and then go to KONV table you will find all condition with value over their. Pick up the values as per condition type and print it. (Condition types are already mentioned in format attached).
    Their are 3 different format they have asked for, the format types will depend on the plant i.e. if plant start with 21 then it is RMC plant and accordingly appropriate format needs to be picked. Please check config for plant descrption.
    By looking at format, i feel that some changes needs to be done into it like their is no material number or descprtion mentioned in format but qty & base rate fields their. Now whether register needs to printed for every line item in invoice or ony one line item for every invoice i.e.
    consoliadted  per invoice number. If it is consolidated then what about base rate which can be different for each line item. In this case what rate needs to be print.
    Always print the invoice values line item by line item, giving each line item quantity, base price, and other pricing conditions but should have facility to sum up     fields like Quantity, Base price, all pricing conditions each customer wise. 
    I have to get this report in ALV format.
    I will reward points for useful answers.
    My mail id is [email protected]
    Waiting for reply...
    Thanks,
    Sundeep.

    Hi
          If you are using sales and operation planning in make to stock scenario its simple . As You input target sale plan and target production plan for whole one year (MC84) . So this data can be pulled out from the tables .
    For Action Need to be taken and revision you may need to have new table .
    Neal

  • Report for sales target & Production target

    Report for sales target & Production target which should include the following fields
    Sales Target
    Revised Sales Target
    Production Target
    Revised Production Target
    Action Need to be taken

    Hi
          If you are using sales and operation planning in make to stock scenario its simple . As You input target sale plan and target production plan for whole one year (MC84) . So this data can be pulled out from the tables .
    For Action Need to be taken and revision you may need to have new table .
    Neal

  • Report on sales order material

    Hi
    i am working in implementation project first time.We are implementing sd module in bi. We are working on the infocube 0sd_c03.I have to develop the reports on "*sales order material". As i am new kindly explain me what is procedure step by step
    Tushar

    Hi Tushar,
    1.Execute T-code RSA1, Under menu options on LHS, goto Metadata Repository.
    You will find 2 windows adjacent to eachother.
    Under "SAP Business Information Warehouse" window, Click on "Local Objects" under Heading Business Content.
    After Selecting that, you will find a huge list of all the objects on RHS window such as KPI's,Infoarea,Application, info object catalog etc..
    Click on "Infocube". (note:System may take time to display all list of cubes.)
    You will find a list of all infocubes which are ready to use (out-of-the-box) from Business content.
    Search for your cube ,use CTRL+F /Find option (give Sales cube or 0SD_C03 in search).
    Click on the cube Sales cube :0SD_C03.
    Now you will find all the details about this cube. Each and every data objects are dispayed.
    Goto reports section, you will find a huge list of reports already built on your sales cube. There you will find the report 0sd_c03_Q0012.
    If you need to know which key figs/characteristics/variables used in this query, then just click on that query, it will take you to a new screen displaying details about that query.
    Once you gather all the details, then after Gap analysis, if you feel that, yes the standard out of the box report matches your requirement or it almost meets the requirement and if you need to do slight enhancements then you can go ahead in instaling this report and save a lot of time instead of starting from scratch.
    To install this report, pre-requisites are- you should haveinstalled your cube, underlying DSO, transformation, all keyfigs, all chars, data source etc.
    and then use T-code RSORBCT/you can use BI Content menu on LHS in RSA1 screen to install this report.
    If pre-requisites are pending, you need to install all the objects first, you can use RSORBCT to install your cubes.
    2. It is advisable to search the query you need in the business content, if the query matches the requirement, you save a lot of time in developing the query. If you didnt find the suiatable query in Busines content, then you need to develop it from scratch.
    3)
    so when we run the query in bex query designer on cube 0sd_c03 by using 0sd_c03_Q0012 then what are things we have to take care. In rows and columns which chartersitic and key figures we have to put?
    I hope the query 0sd_c03_Q0012 "sales order material" may meet your requirements. If its not then try to get what is missing in this. If you need to enhance by adding any new objects, then first install this query from Business content, and then modify this query as per your need. and then activate and it will be ready to use.
    You can install any object as many times as possible from business content, its just the same as copy and paste.
    So only business content can help you on first phase regarding your requirement, because SAP has developed these reports at standard level used world wide thoughout industry.
    Hope this clears your queries.
    Regards
    Jeeth
    Edited by: Jeeth_P on Feb 3, 2012 9:25 AM

  • Report on sales orders

    hi all,
    i need to develop a report which has Purchase order number, sold to party, sales order number, required delivery date and confirmed delivery date by system. i tried to to do this by sqvi, but here requirement is some group of users have to run this not restricted to single user, and when ever i use shedule line tables it is doubling the lines per schedule line, can we display that in just two columns as required delivery date and confirmed date by system.
    Thank you gurus in advance,
    Naga.

    Hi
    SAP1 & SAP2
    theer r 2 stsndard report for Sales view as per ur requirement.
    However u can go for SAP Query .
    there u can joint two tables and field as per ur requirement and crete a infosat with respect to User.
    T.code
    SQ03-SQ02-SQ01
    thanks
    Mk

  • Report of sales orders with several schedules lines

    Hi all,
    I try to develop a report for sales orders and delivery info. I need sales order quantity, delivery quantity and the quantity in the scheduled line. But I faced with the problem of several scheduled lines.
    I could not find the relation between delivery information and the scheduled lines of sales order.
    Any function module or other way to find out a delivery belongs to which cheduled line of the sales order ?
    Thanks,
    Utku

    Solved problem

Maybe you are looking for