Billing cancellation need to create Block at SO

Hello All,
when have situation here like when CSR rep cancel the billing document , then the sale order should be blocked.
where  can i make changes in config or user exit.
Please let me know  how can i start.
Thanks
Raju.

You  can try with billing user exit USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC) where you can apply the logic in such a way that whenever billing document is cancelled via VF11, it should check the preceding document of sale order via VBFA and block that sale order for further processing.
thanks
G. Lakshmipathi

Similar Messages

  • HELP NEEDED BADLY, creating Block Avoider game.

    Could anyone please help me with creating a game called block avoider, i have a link here to show what the game should look like. I need alot of help with it so if anyone is good a coding and see`s this as an easy project helping me would be greatly appreciated.
    LINK TO SIMILAR GAME:
    http://scratch.mit.edu/projects/timo4932/82326

    We can help, but we won't do it for you. Start the game, and post a question if you are stuck and need help.

  • Best way to create blocks from "No Year" to each year

    Hi,
    I have a scenario where I need to create blocks for each year based on the data in "No Year", keeping all the other members same.
    Years in Year dimension are not fixed as every year it would be added, so I do not want to hard code the years.
    I was looking the Datacopy command but am not able to get it using the same.
    Following is the extract of the code that I am trying to execute.....
    SET UPDATECALC OFF;
    SET CREATEBLOCKONEQ ON;
    SET LOCKBLOCK HIGH;
    FIX(
         [Scenario],
         "No Year",
         "ALDAR PJSC",
         "ICE99999",
         "ARB-Al Bandar","P115101", /* Projects */
         @RELATIVE("Emp013",0), /* Employees*/
         @RELATIVE("EMPG001",0), /* Employee Grade */
         @RELATIVE("D100000",0), /* Department */
         @RELATIVE("Period",0), /* Period - Dense */
         "ADJ120",     /* Adjust - Dense */
         "ST02021300" /* Account - Dense */
         [Version]
              [Version] = [Version] + 0;
    ENDFIX
    In the above case, I want to use @RELATIVE("Projects",0) which has around 90 members, but it takes huge amount of time. So, I tried having only one Project member initially and it took around 1 minute; then I tried using 2 members from Project dimemsion, then it took 2 minutes...
    Let know if there is any way to create blocks......

    Why not do a DATACOPY with a substitution variable as the target?
    FIX(
    [Scenario],
    [Version]
    "ALDAR PJSC",
    "ICE99999",
    "ARB-Al Bandar","P115101", /* Projects */
    @RELATIVE("Emp013",0), /* Employees*/
    @RELATIVE("EMPG001",0), /* Employee Grade */
    @RELATIVE("D100000",0), /* Department */
    @RELATIVE("Period",0), /* Period - Dense */
    "ADJ120", /* Adjust - Dense */
    "ST02021300" /* Account - Dense */
    /* Copy the data, creating blocks along the way. */
    DATACOPY "No Year" TO &NextYear ;
    /* Get rid of data, but keep blocks. */
    FIX(&NextYear)
    CLEARBLOCK ALL ;
    ENDFIX
    ENDFIX
    That would be pretty quick.
    Regards,
    Cameron Lackpour

  • How to create block by copying parent value to all of its children

    Hi All,
    I need to create blocks by copying the parent value into it's children, however, the following does not work:
    DATACOPY "Profit"->"Actuals"->"2012"->"Period Total"->@PARENT(@CURRMBR("Business")) TO "Profit_2"->"Budget"->"2013"->"Input Mth"->@CURRMBR("Business")
    Does anyone know how to go about achieving this?
    Cheers,

    from source to target
    copy data
    FIX ( "Profit","2012","Period Total",@Idescendants("Business",-1))
    "Actuals"(
    Account_NA=0;
    ENDFIX
    FIX ( "Profit","2012","Period Total",@RELATIVE("Business",0))
    "Actuals"(
    IF(Account_NA->@PARENT(@CURRMBR("Business")+0 == 0)
    "Profit_2"->"Budget"->"2013"->"Input Mth"->@CURRMBR("Business"))= "Profit"->"Actuals"->"2012"->"Period Total"->@PARENT(@CURRMBR("Business"));
    Account_NA->@PARENT(@CURRMBR("Business"))=1;
    ENDIF;
    ENDFIX
    copy block
    FIX ( "Profit","2012","Period Total",@RELATIVE("Business",0))
    "Actuals"(
    "Profit_2"->"Budget"->"2013"->"Input Mth" = "Profit"->"Actuals"->"2012"->"Period Total"->@PARENT(@CURRMBR("Business"));
    ENDFIX

  • Do I need to create billing for FD (free delivery) sales order

    Hi
    I have a question. I created first a sales order (FD) in our sap system. but I don't know whether I need to create billing for the FD order. when I try to create billing for this FD order, SAP cannot to process it.
    I also research configuration. in VOV8, SAP not set billing function.
    thanks
    Henry

    Hi henry
    If you have created Free of charge delivery (FD) sales order then the item category will be KLN only.After PGI then stock level will reduce  and the effect of the stock is that you are issuing stock to  customer at free of charge.And as you have assigned cost center then the data will flow to the controlling area and the Financial document  after  PGI.
    Secondly if you assign TANN as a item category and do delivery and then PGI then if the reference document is different then it will have affect as the KMN and TANN item categories doesn't have same features
    Regards
    Srinath

  • Block of SD billing cancellation

    Good day,
    In t-code VF11, I want to block billing cancellation of the billing doc. whose billing date is out of FI posting period
    Is there any proper user-exit for it?
    Thanks for your quick response in advance.

    You can use USEREXIT_NUMBER_RANGE in MV60AFZZ. This check happens while saving. So if won't allow to save if there required condition is not met.
    Thanks

  • Need to create multiple PA documents during billing

    Hello,
    We have the following scenario.
    When we create a billing document from an SD order, we need to create multiple PA documents based on the condition types.  We have maintained those condition types to different value fields in KE4I.
    For e.g, for a line item in an order, we have Basic Price = 100, Discount = 20
    When we do billing for the above line item, we want to create two PA documents, one for the Basic Price and one for the discount. Note that the above Basic prive and Discount are mapped to different value fields and different cost element groups.
    Thank you.
    Bala

    Hi,
       This functionality is not possible not does it make any sense. SD conditions are mapped to value fields via KE4I. If you have not activated summarization (tcode KE2S) then for every SD item you will get a COPA document. Each COPA document will contain all the values fields filled via the SD conditions displayed in one line item.
       Imagine if you have a SD billing document with 20 items, each items containing 10 conditions. Then you will get 200 COPA documents as per your requirement !!! This does not make any sense neither from technical point of view nor from business point of view.
    regards
    Waman

  • While Sales Order Change , need to create Billing plan Item wise

    Hi ,
    We are using BAPI_SALESORDER_CHANGE for changing item category as well as parallely need to create billing plan item details (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT), Hence Please tell me the Procedure.
    Example: Billing Plan is Depending on Item Category, In my scenario , initially Item category do not have Billing Plan Tab, When we go for BAPI_SALESORDER_CHANGE for changing Item Category to Supported Billing Plan, So How can we update (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT) in Billing Plan Tab for every sales order item.
    Regards
    Jana

    Hi Ravi,
    Can You explain in detail.
    Regards
    Jana

  • Need cancel account and create new one

    Two kids, two laptops one shared account, how do i cancel both and create two new ones,
    (any changes i make to one replicates on the other)

    sorted, thanks anyway

  • Invoice cancellation does not create accounting document.

    Hi. here's the scenario.
    A billing document has been creating in transaction VF01.When created, an accounting document and a controlling document have been generated(you can get the document numbers when you click on the 'Accounting' button in VF03 or through FB03).
    Problem:
    A cancellation has been carried out for the billing document (transaction VF11). However no accounting documents have been created for the cancellation.
    Any idea on the customising which was missing?thx.

    Hello,
    If you accounting period is block, you need to open the accounting period and transfer these documents manually from SD back to FI by using VFX3 transaction code. You need to release them manually to transfer the documents to FI. See the log if there are errors.
    It will give the reason when you run VFX3 the documents are not moved back to FI.
    Regards,
    Ravi
    Edited by: Ravi Sankar Venna on Apr 8, 2009 12:06 PM

  • Help needed for creating 1 invoice for 2 different material types.

    Dear, Gurus
    I really need help here I have spent 3 days cracking my head trying to solve the problem. Problem is client was creating invoice with reference to order and while invoice was being made it would cause an invoice split. The materials involved are Trading Good and Service Material. They would like only 1 invoice. Note nothing was different except material group and item cat. of the material. payment terms billing dates partners everything is same.
    Current item config for Trading Good material is ZMPI-project item cat.
    Copying requirements   023  Item ord.ref. w/o AZ        Billing quantity     A
    Data VBRK/VBRP         000                                           Pos./neg. quantity   +
                                                                                    Pricing type         K
                                                                                    PricingExchRate type
                                                                                    Price source
    Current item config for service Material is TAD-Service
    Copying requirements   002  Item/order-related          Billing quantity     A
    Data VBRK/VBRP         001  Inv.split (sample)            Pos./neg. quantity   +
                                                                                    Pricing type         G
                                                                                    PricingExchRate type
                                                                                    Price source
    I was told to change Data VBRK/VBRP to 003 One Invoice which I did in both of these item cat. and yes they worked perfectly but at time of creating the invoice for service material the qty that showed was 11. Note: In sales order it is 1 qty. So I went back into the config of item cat TAD and changed copying requirement to 023 instead of 002 but nothing changed. Seems a qty of 10 is referencing something else which I have no idea what or where it is picking this up from. Just to see or test things I went into the sales order and tried changing the service material qty then a weird popup appears and says service order 12344456 has been blocked. (Seriously I have no idea why this would happen or should be existing at all.) Even if for some reason it is being referenced the service order that is existing is qty 1.
    I really really do need help and if someone can help me that would be god sent.
    Regards, Ali

    You did not mention what value is maintained in the field billing quantity in the copy control->Item settings. Check for the service item, what value is assigned. Put value A and re-test.
    Note that whenever you change any settings in configuration side, you need to create a new documents to test the results of the settings. You should not use the existing documents.
    When you say the document is blocked, then check the status of the sales order to find the reason for blocking (like credit block, approval etc)..
    Regards,

  • Create blocked customer

    I have a situation on which I need to create the new customer with Posting Block (All Company codes - SPERR) set. So the new customers created from XD01 to be blocked, without going to XD05 Tcode.
    After that an workflow will be trigger and if the request is approved the customer will be unblocked.
    The user need to be able to save the customer without sending the request so i need to blocked the customer before the workflow is triggered (thous, the variant in which i blocked the new created customer at the start of the workflow is not a solution).
    Please let me know your thoughts on how to do this as setting the SPERR value to X of KNA1 from an enhance spot does not seems like a good idea. Also, let me know if there is a way to do this from customization.

    Hi,
    Blocking the data against the sales area will set the block for each transaction it will not stop you to create sales order and delivery,billing.
    For your requirement u can set the deletion flag to perticular sales area in transaction code XD06. Enter the customer no. and select the sales area in which u want to block from perform any transaction. then select check box name "Selected Sales Area".
    Hope this will resovle ur problem.
    Rgds
    Dhiraj

  • Do I need to create a view for this?

    Hi Ihave got 2 tables emp and project
    In emp tabe:
    emp_no
    family name
    given name
    In porgect table:
    emp_no
    status(assigned,unassigned)
    start_date
    end_date
    emp_no Family_name given_name
    1 Smith John
    In project table same employee can have many assigement eg
    emp_no status start_date end_date
    1 assigned 01-may-08 01-july-08
    1 assigned 01-sep-08 01-july-09
    1 unassigned 01-july-09 01-oct-09
    In the form:
    there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
    retrive records which have end date between field1 and field2.
    The following fields are needed to get from database:
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Requirements:
    1. project.start_date and project.end_date must be the latest project_end_date for the same emp
    so in the above sample date
    2. No. of time assigned is a count of total of number records which have status='assign'
    So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Smith John 01-sep-08 01-july-09 2
    What is the best approach to get:
    1 The lastest project(latest end_date) for the emp
    2. get No.of time assigned.
    Do I need to create a view for this? If yes, any sample sql code this this?
    Thanks for your help

    Hi W1zard,
    Thanks for your reply. Could you clarify the following points for me:
    1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
    set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
    Q1: where I pit this code? in pre-query trigger in detail block?
    2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
    create or replace force view v_emp as
    select emp.family_name, emp.given_name, project.start_date, project.end_date
    from emp, project
    where emp.emp_no = project.emp_no
    Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
    max(project.end_date) somewhere in create view to make sure only one record for one employee.
    Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
    Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
    where I put this customerised sql so when user click excute query. My sql will run and display one the form?
    REally appreciated your help!
    Michael

  • Excise / Billing cancellation

    I want to make a check for billing cancellation, that ,first the user has to cancel the excise invoice and then only he can cancel the billing document when he cancelling billing document,
    similarly if he is cancelling a delivery then first he need to cancel the excise invoice and then delivery doc.
    plz guide me as how i will maintain this check, as complusory, using which functional module or user exit

    Dear Rishi
    Yes in the said user exit only, I had applied the same logic in Form USEREXIT_READ_DOCUMENT as follows:-
    data: v_vbeln like vbfa-vbeln.
    if sy-tcode eq 'VL09'.
    select single vbeln into v_vbeln from vbfa where vbeln = likp-vbeln and vbtyp_n = 'U'.
    if sy-subrc = 0.
    message 'Cancel the Proforma Invoice and the Excise Invoice' type 'E'.
    endif.
    endif.
    In fact, my case is that the end users without closing the delivery related proforma, they were cancelling the delivery document which standard allows to do so.  So I have applied the above logic and it is working fine all these years.
    May be you can try with any other user exits also which the ABAPer can do this.
    thanks
    G. Lakshmipathi

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

Maybe you are looking for