System pick Wrong Reff document number

Dear Experts,
While do 106 M/T with reference of document 105 M/T but in while check 106 M/Type document , document is picking refference from 103mvt document number instead of 105 movement,
Regards

Hi,
You can also cancel the document without any refrence document for which you have enter all the details manulally also here sytem will not determine movement type automatically.
You proceed as you generally proceed whil;e entering material document. and cancel the entry.
Regards,
Tushar Patankar

Similar Messages

  • Free goods - system picking wrong free good

    Dear All,
    I have defined free goods record in tcode vbn1 for the combination of
    1) plant and material
    2) division and material
    We have maintained different free goods for different record.
    While creating sales order system is picking free goods from the second combination , instead of picking from the first combination (even if we mention the particular plant).
    Can any one guide me what are the settings i need to maintain, if system has to pick the first combination.
    Regards
    Shammy

    Hi shammy
    check the for what key combinations you have maintained 1st of all
    i think as you said the key combinations are
    plant and material
    division and material
    in MMR for the free goods check wheather division and plant has been assigned or not .
    If you have not assigned division then it will check for the plant/material key combination free goods material and vice versa
    Regards
    Srinath
    Edited by: sri nath on Apr 17, 2008 1:26 AM

  • How to get an accounting document number from an Invoice number

    Dear All,
    I have a requirement where I need to know which accounting document is created against a  particular invoice. As we know that in the document flow of invoice we can see the Accounting document also. But to develop the report I need to pick the accounting document by the invoice document. Please suggest me a table where this value is getting stored. I already tried VBFA and VBKD but nowhere I am getting such information from which I can pick a accounting document number for a particular invoice.
    Please give me your suggestions.
    Regards,
    Sanju

    Dear,
    For Billing document create no. range by Tcode-VN01 and assign it to in Tcode-VOFA
    For Accounting document create no. range by Tcode-FBN1 and activate the External Field and assing it to in Tcode- OBA7
    but Assign the same no. range to both Document types for exp 1000000 to 1999999.
    Regards
    AJIT K SINGH
    HAPPY TO HELP U

  • Get FI Documet number from BKPF table using CO document number in COVP tabl

    Hi,
    In  datasource 0CO_OM_CCA_9 , we have written a code in CMOD to get the FI Document Number from CO document Number.
    The flow of code is:
    1) From the CO document number, get reference document number  (REFBNfield) from, COVP table
    2) Pass this REFBN in AWKEY(10) field of BKPF table.
    3) We have created new field in datasource named 'ZBELRE' which gets populated with BELNR field obtained from BKPF table.
    This ZBELNR is the FI Document number.
    But somehow wrong FI Document number is getting populated.
    After analyzing code, we found that the AWKEY which we passed in BKPF table is incomplete and the full AWKEY is
    COVP-REFBN+COVP-AWORG
    Is this condition always remains true in all the cases? Also, is the selection criterion which we have used to find the FI document number from BKPF table is sufficient?
    Our CO Consultant says that we should also pass AWTYP along with AWKEY in BKPF table.
    Please suggest a solution.
    Following is the code :
    ***********Datasource Modification for0CO_OM_CCA_9*******************
      WHEN '0CO_OM_CCA_9'." Data Source
        TYPES:BEGIN OF ty_bkpf,
        belnr TYPE bkpf-belnr,
        xblnr TYPE bkpf-xblnr,
        bktxt TYPE bkpf-bktxt,
        awkey TYPE bkpf-awkey,
        bukrs TYPE bkpf-bukrs,
        gjahr TYPE bkpf-gjahr,
        END OF ty_bkpf.
        TYPES : BEGIN OF ty_bseg1,
        lifnr TYPE bseg-lifnr,
        belnr TYPE bseg-belnr,
        bukrs TYPE bseg-bukrs,
        gjahr TYPE bseg-gjahr,
        END OF ty_bseg1.
        DATA: it_bkpf TYPE STANDARD TABLE OF ty_bkpf,
        wa_bkpf TYPE ty_bkpf,
        it_bseg1 TYPE STANDARD TABLE OF ty_bseg1,
        wa_bseg1 TYPE ty_bseg1,
        l_s_icctrcsta1 TYPE icctrcsta1.
        "Extract structure for Datasoure 0co_om_cca_9.
        DATA: l_awkey TYPE bkpf-awkey.
        DATA: l_gjahr1 TYPE gjahr.
        DATA: len TYPE i,
        l_cnt TYPE i.
        l_cnt = 10.
        SELECT lifnr
        belnr
        bukrs
        gjahr
        FROM bseg
        INTO TABLE it_bseg1.
        DELETE ADJACENT DUPLICATES FROM it_bseg1 COMPARING belnr gjahr .
        SELECT belnr
        xblnr
        bktxt
        awkey
        bukrs
        gjahr
        FROM bkpf
        INTO TABLE it_bkpf.
        IF sy-subrc EQ 0.
          CLEAR: l_s_icctrcsta1,
          wa_bkpf,
          l_awkey,
          wa_bseg1.
          LOOP AT c_t_data INTO l_s_icctrcsta1.
            MOVE l_s_icctrcsta1-fiscper(4) TO l_gjahr1.
            READ TABLE it_bkpf INTO wa_bkpf WITH KEY awkey(10) =
            l_s_icctrcsta1-refbn
            gjahr = l_gjahr1.
            IF sy-subrc EQ 0.
              MOVE wa_bkpf-belnr TO l_s_icctrcsta1-zzbelnr.
              MOVE wa_bkpf-xblnr TO l_s_icctrcsta1-zzxblnr.
              MOVE wa_bkpf-bktxt TO l_s_icctrcsta1-zzbktxt.
              MODIFY c_t_data FROM l_s_icctrcsta1.
              READ TABLE it_bseg1 INTO wa_bseg1
              WITH KEY
              belnr = wa_bkpf-belnr
              bukrs = wa_bkpf-bukrs
              gjahr = wa_bkpf-gjahr.
              IF sy-subrc EQ 0.
                MOVE wa_bseg1-lifnr TO l_s_icctrcsta1-lifnr.
                MODIFY c_t_data FROM l_s_icctrcsta1.
                CLEAR: l_s_icctrcsta1,
                wa_bseg1,
                l_gjahr1.
              ENDIF.
            ENDIF.
            CLEAR: l_s_icctrcsta1.
          ENDLOOP.
        ENDIF.
    ***End of Datasource Modification for 0CO_OM_CCA_9*******************

    Hi,
    this forum is for the SAP BusinessObjects BI Solution Architecture. Please post your question into the corresponding product forum for SPA BW
    regards
    Ingo Hilgefort

  • Idoc FIDCCP02 posting skipping document number

    I am using Idoc FIDCCP02 to post FI document. I have to enter value in field E1FIKPF-AWORG, otherwise it does not allow tax code to be used in certain conditions. Filling up filed E1FIKPF-AWORG is working fine and document is being posted. But the issue is that system is skipping one document number for each posting. If field E1FIKPF-AWORG is left blank, than this does not happen.
    Any help please!

    HI Dehra,
        YOu can check if any customizing is done within the IDOC processing function module.
    Or you can to analyse if populating the E1FIKPF-AWORG value creates any extra documents, which are consuming the number range.
    Suggestion: You may get better responses in either FI Forums or ABAP forum.
    Best Regards,
    Ravikanth Talagana

  • Billing document number skip

    Dear Sir,
    In some cases Billing document number (VF01) generate, (with reference to delivery number) but at the time create Excise Invoice against same billing document number, system given error "Billing document number does not exit".
    & after that  system will be allowed to create the billing document against same delivery.  please help
    Regards
    BK GAIKWAD

    Suitable suggestion has already been given.  May be you can have a look at the following note which may help you.
    Note 19050 - Gaps in document number sequence for billing docmts
    Alternatively, you can execute report RFVBER00 which explains on document numbering gaps.  Try this report in development before executing in production client.
    G. Lakshmipathi
    ps:- Please spell the name correctly

  • Document Number after Post !!

    Hi ,
    I am using Call Transaction in BDC .
    After Posting the document , the system generates an Accounting Document Number ..how can i get that document number after the call transaction call ??
    Thank You

    Hi,
    You can also code something like this.
    clear i_msgtab.
    refresh i_msgtab.
    call transaction 'VA02' using    bdcdata
                            mode     p_mode
                            update   'S'
                            messages into i_msgtab.
    if sy-subrc <> 0.
    *Process and display error messages
      loop at i_msgtab.
        clear t100.
        select single * from t100
        where sprsl = i_msgtab-msgspra and
              arbgb = i_msgtab-msgid   and
              msgnr = i_msgtab-msgnr.
        perform process_message using t100-text.
      endloop.
      skip.
    endif.
    form process_message using p_message.
      data: l_message(480).
      if sy-subrc = 0.
        l_message = p_message.
        if l_message cs '&1'.
          replace '&1' with i_msgtab-msgv1 into l_message.
          replace '&2' with i_msgtab-msgv2 into l_message.
          replace '&3' with i_msgtab-msgv3 into l_message.
          replace '&4' with i_msgtab-msgv4 into l_message.
        else.
          replace '&' with i_msgtab-msgv1 into l_message.
          replace '&' with i_msgtab-msgv2 into l_message.
          replace '&' with i_msgtab-msgv3 into l_message.
          replace '&' with i_msgtab-msgv4 into l_message.
        endif.
        condense l_message.
        write: /2 i_msgtab-msgtyp, l_message(250).
      else.
        write: /2 i_msgtab.
      endif.
    endform.                    " process_message
    Hope this will help.
    Regards,
    Ferry Lianto

  • Picking Wrong Storage Bin

    Hi Expert
    At the time Transfer Order creation system pick wrong bin compare with material master
    i.e Material Master Bin no AA10 but system pick AA20
    Please advise how to restrict this
    Regards
    Suman

    Please check the picking strategy defined  and also please double check the fixed bin in the material master is defined for the same combination of storage type/bin.Also please check where your stock is actually located in LS24 i.e. storage type and bin.

  • Returned document number upon saving

    When posting a FI invoice (e.g. FB60), SAP always returns the Accounting document number upon saving.  Then from Document Environment, we may look up the profit centre and CO documents.  I have seen posting that returns the CO document number, instead of FI number.  
    Is there a setting somewhere to control what documment number to return upon saving?

    If I post an invoice in MIRO, system returns the MM document number at the bottom of screen upon saving.  Then I look up the FI, CO document numbers from the Follow-on Document.
    If I post an invoice in FB60 system returns the accounting document number at the bottom of screen upon saving.  Then I look up the profit centre and CO document numbers from Document Environment.
    We are in the process of implementing an external system for early archiving.  It's the posting in the early archiving environment I have seen the CO (last document from Document Environment) number returned upon saving.  The problem may have caused by this external product/program.  I just want to make sure if any setting in SAP we may elect what document number to return upon saving.

  • System showing Wrong Billing Date of Billing Document number

    Hi,
    We have created a Billing Document Number 2010352872 on today dtd. 18/11/2010 but system is showing its Billing Date 17/11/2010. Why??
    Please help...

    Hi,
    Billing date is different from the Creation date.
    Document creation date is the date on which the Billing was created and it would be 18th in your case and
    Billing date is the Date proposed from the Actual GI date from the Delivery Document and it was 17th In your case
    Billing date can be taken into consideration while creating the Billing documents collectively
    Billing date is the date on which the Accounting document should post
    regards,
    santosh

  • Wrong VAT registration number in billing document

    Hi All,
    We have issue of wrong VAT Registration Number determined in the billing document for the departure country SK & Destination country DE. In one case system has determined the own co, tax number in the VAT registration number and other case ship-to party's VAT registration number for same partner.
    As per business wants ship to party VAT number only.it was created few days back.
    Pls advaise on this.
    Thanks,
    naveen

    Hello Naveen
    For tax exempt, Intra-EU  transactions, you need to specify both the VAT registration number of the company code and that of the customer. See the SAP documentation link below.
    I don't have any advice on the config for the issue- why it prints co code VAT registration number once and that of SH party another time.
    Please go through the following OSS note and those mentioned within for complete guidance on customizing for VAT for EU countries. There's a lot of stuff to take care of.
    653544 - EU2004:New members of Europ.Union as of 01/05/2004
    Help Documentation: http://help.sap.com/erp2005_ehp_04/helpdata/EN/e5/07804b4acd11d182b90000e829fbfe/frameset.htm

  • ProfitCenter ALE document (PRCDOC) contains wrong PST element number

    Hi CO experts!
    We use CATS in out HR system, and we want to transfer CO documents from this system to our ERP system.
    I configured the CO ALE model and set that we use decentralized profit center accounting. ( views: V_TKA01_ALE
    V_TKA01_PCA_ALE)
    All of our cost center, PST element, order number syncronize with  ALE from ERP to HR.
    And of course the PST has different ID in ERP system and in our HR system.
    Everything is fine, when I use the CAT7 transaction in HR, the CO document (CODCMT) and the ProfitCenter (PRCDOC) document has transfer with IDOC to ERP.
    The only problem is, that when the IDOC arrived in our ERP system, and the profit center document created, it has wrong PST element number. It contains the HR PST element number which is different from the ERP PST element number.
    But the CO document has good PST element.
    I see all of the 2 idocs data record: CODCMT and PRCDOC has HR PST element ID too. But when CO document created, maybe there is a conversion, that convert the HR PST ID to the ERP PST ID. But at profit center doc, there is no conversion.
    Maybe I miss some customizing on HR system, and it is possible to send the original ERP PST element ID in PRCDOC idoc?
    Thanks for your answers!
    Peter

    Solved.
    We have to enhance : MAP2E_GLPCA_TO_BAPIPCADOC
    DATA: waprps LIKE prps._
    SELECT SINGLE * FROM prps INTO waprps WHERE ( PSPNR EQ GLPCA-PS_PSP_PNR )._
    MOVE waprps-pspnr_logs_
      TO BAPIPCADOC-WBSELEM._
    So it send the correct PST number.

  • Again:  Define Number Ranges per Backend System for Follow-on Documents

    Obviously I have a problem with this setting! What have I done wrong?
    We are running ECS with multiple Backends. We want to assign different number ranges to each backend PO.
    Our settings:
    - Number Range SC and Follow On Documents:                          01 0100000000 - 0199999999 (internal) and                                                                               
    P1 3010000000 - 3019999999 (internal)
    - Number Range local PO:                                                         P0 3000000000 - 3999999999 (internal)
    - Number Ranges per Backend System for Follow-on Documents: XYZCLNT010 PO number range = P1
    - Transaction Type ZRM assigned to number range PO
    - Backend Document Type ZRM assigned to an external number range P1  3010000000 - 3019999999
    I would have expected following system behaviour:
    System creates the local PO within number range P0 and creates in backend XYZCLNT010 a PO within number range P1.
    But instead SRM tries to post the backend PO with a number from range  P0.
    What is wrong?
    Rgds.
    Dieter

    Hi. I do not know how to fix your problem as standard, I have never done the same setup, but BADI BBP_BS_GROUP_BE will allow you to choose different number ranges in method GET_NUMBER_OR_RANGE.
    Does that help at all?
    Regards,
    Dave.

  • Customer document number not picked while making payment

    Hi  guys
    we have one vendor the same vendor as customer also. while we making payment to vendor customer document document number not picked,, the erro message comes.. " NO APPROPRIATE LINE ITEM IS CONTAINED IN THE DOCUMENT"
    But we already assigned the following:-
    1) In Vendor master data, Customer code has been given
    2) In  Documnet type KZ, we select vendor also.
    But still the customer document not picked while  making payment
    Pl Help me out.
    Regards
    K.Gururajan

    Hi,
    Check the following:
    1. The check box clearing with customer and clearing with vendor has been selected in both the masters in the payment transactions tab.
    2. Ensure the vendor is not locked up in any payment proposal in F110.
    Thanks
    Aravind

  • What is the system variables of document number in General Ledger PLD?

    Dear all,
    Would anybody kindly tell me what is the system variables of document number in General Ledger Print Layout Designer?
    The default print layout use transaction number (system variables 272), however, my client wants document number to be displayed in the transaction number column.
    Regards,
    Simon Chiu

    Hi
    The only list available for Supported variables is for the version 2007A and for some specific localizations like Brazil and India.
    For the 2007A version the list is available in the following link:
    http://service.sap.com/smb/sbo/pld
    'How To Use the PLD Variables File in Release 2007 A '
    But in general the variables are for documents not for reports.
    In this case I believe there's no variable and you may need to fill a requirement in the Forum for that.
    Paulo Calado
    SAP Business One Forums Team

Maybe you are looking for