SUBSTITUTION FOR DOCUMENT TYPE

Dear Friends,
I had an requirement of changing the Document type while posting the document.
The requirement is as follows we have 2 users say user-1,user-2 both are posting a document with doc type SA (number range for doc type SA is 1001 - 2000). Generally the document number generated are doc no.1001,doc no.1002. But our requirement is if User -1 is posting the document, the document number should be 1001 and if a user-2 is posting the document it should generate a new document number say 35001 ( for this client is ok for creation of new document type for number ranges).
We even checked the same in OBBH and created the same at document header level, we maintained the prerequisite as if company code = xxxx and user name = 1234 and document type = SA, then substitute it with document type (taken from substitutable field) say Z1 (for which document number ranges already maintained).
It might be possible with USER EXITS and RULES.
Please guide me.
Thanks & regards,
Sandeep

Dear Milosalvjevic,
Yes we have even done it.
But now its solved by changing the standard program and added our requirement after execution of the standard program.
Done Same thing as BTE works.
Regards,
Sandeep

Similar Messages

  • Error M8-688 - Creation of several vendor line items is not possible for document type RN.

    Hello All,
    We are using the Net Invoice Posting with document type RN(Invoice- Net). We are generating different vendor line items in the accounting document based on the withholding tax codes involved in the invoice posting. When it comes to net invoice posting system is giving an error message M8-688 - Creation of vendor line items is not possible for document type RN. Is there is any way to create multiple vendor items with net invoice posting? Please suggest.
    Thanks,
    Chandu.

    I dont think that there is any way because it is a hardcoded error message.
          IF NOT t003-xnetb IS INITIAL.
            MESSAGE e688 WITH pi_rbkpv-blart.
          ENDIF.
    SAP is checking the customizing for net/gross posting per document type in table T003
    And if it is set up as net, then it is a hard error.

  • In fbl1n report for document type RE  withholding tax amount is not showing

    in fbl1n report for document type RE  withholding tax amount is not showing
    in sap note 363309 determines
    Solution
    Remove the field which contains the withholding tax information (field BSEG-QSSHB) from your display
    variant.
    If you want to display the withholding tax information, double-click on the document number and
    subsequently choose 'Withholding tax'.
    my doubt is we remove the field BSEG-QSSHB in layout how can show the withholding tax amount in FBLIN report
    how to remove from the layout
    please clarefy
    bhayyapu   

    Hi,
    If you want to check amounts of withholding tax for the vendors, you have some options to view it. You can access the WITH_ITEM, LFC1 tables by SE16. You have too the S_P00_07000134 report. This report is developed for the Colombia but I already used for the another country with the ABAP development for this country.
    Also you can use table join BSIK and WITH_ITEM by SQVI for the open items and BSAK and WITH_ITEM for cleared items. It is more simple and fast.
    JPA

  • How to change number range for document type ?

    Dear All
    Experts
    How to change the number range for document types for entry view? I am trying to change the number range for all document type as per defined ranges in FBN1, but at the time of saving document type and number range the system is throwing error message as 
    Doc. type C1: Number range 07 is used for ledger L6 with doc. type AE
    Message no. FAGL_LEDGER_CUST093
    I have defined a leading ledger in system too with these settings
    1)     Define ledger for accounting.
    2)     Defining currencies for it.
    3)     Defining ledger group for the same.
    4)     Defining accounting principles
    5)     Assignment of principles to leading ledger.  
    Are there any extra settings required for leading ledger settings?
    I have some doubts those are :-
    How document types defined at ledger level?
    How to define them at leading ledger level?  (Like my case)
    Focus on this will be appreciable.
    Regards,
    Sharvari Joshi.

    hi ,
    The document numbers in the leading ledger and the non leading ledgers should be in sync, they should not have any differences, so incase you are trying to change the number range for C1, the  number range 07 is already been assigned to doc type AE. i guess you have cant use 07 for C1. may be you can try out with an other number range. check this and let me know if you are able to do this.
    coming to
    1.How document types defined at ledger level?
    2.How to define them at leading ledger level? (Like my case)
    Ans 1. please try defining document types for entry view in a ledger.
    path : SPRO- financial accounting new -financial accounting global settings new - document -document types -define document types for entry view in ledger.
    upon prompt enter the ledger and go ahead creating the number ranges for the document types.
    Hope this helps.
    Regards
    amrutha

  • Automatic PO for document type

    Hi..
    i have a requirement where i need to generate automatic PO from PR for a unique document type.
    I have created PR document type ZNB from NB, and also PO document type ZNB from standard doc type NB..
    i am able to create automatic PO from PR for PR doc type ZNB to PO document type ZNB BY ME59
    but when i have PR for document typeNB am not able to create automatic PO.
    is there any settings where i can specify that for PR document ZNB only PO for document type ZNB will be created.

    YOU JUST NEED TO GO TO TCODE OLME>PO>DEFINE DOCUMENT TYPE >SELCT YOUR DOCUMENT TYPE AND CLIK ON THE FOLDER   LINK WITH DOCUMENTS
    here u ca maintian the zb pr as u r source document thenm only with refrence to this document type u will be able to create the po
    do the above activity for pr also
    in pr document type maintain the target document type as znb (po)

  • Down Payments Error: Account type K is not defined for document type DZ T

    I am getting the error message: Transaction code: F-29
    Account type K is not defined for document type DZ
         Message no. F5243
    In this case i am trying to post a customer down payment in t.code:  F-29.
    In the document type DZ in OBA7 we tick only G.L and Customer tab as this is not a vendor document.
    Also the settings in T. Code : OBXR where we maintain configuration for customers has been maintained with a special G/L reconciliation account.
    any help will be really appreciated,
    Regards
    Satish

    I have checked all the settings
    OBXR for Customer Down Payments. It is with indicator A and a Special G/L Account has been configured.
    The special G.L Account is of the Recon account type Customers with FSG as Recon accounts
    The document type DZ in OBA7 is ticked for G.L and Customer and this is how i think it should be as i am not paying a vendor downpayment
    but it still gives me the same error.
    Regards
    Satish

  • Error:Account type D is not defined for document type RE

    Hi! I encountered this error msg: "Account type D is not defined for document type RE"  while posting IR in mir6.  What does this error msg mean? Thanks!

    hi,
    RE stands for Gross postings...
    When you block the document for payments...its never possible to the post the payments for such documents...
    The invoice seems to get posted, but is internally blocked for payment and later you need to delete the payment block indicator and process the invoice further for payments...
    check OMBA as well for the settings...
    Regards
    Priyanka.P

  • Account type D is not defined for document type RE - Credit Memo

    I tried to key in credit memo of fixed asset at MIRO but prompt out this errors "Account type D is not defined for document type RE". I checked OMBA - account type for vendor is selected. Any advise to resolve this problem?

    Hi Sanil,
    It is just a debit Vendor and Cerdit Fixed Asset. Is anything wrong here?

  • Validation for Document Type

    Hi,
    I want make a validation for document type wise posting for particular users like user ABC only post JV doc.type document. Please suggest me how I will make it.
    Thanks & Regards,
    Hemant Kumar Maurya

    Hello Hemant,
    You can manage this with authorization or validation (T Code OB28 or GGB0), for validation:
    1 - Create a validation at document header level.
    2 - You can create a set (table BKPF and filed - user name) with T code u2013 GS01 wherein you can give list of users for which you want to restrict posting only with document type u201CJVu201D. Attached this set or a single user in u201CPrerequisiteu201D section of validation.
    3 - In u201CChecku201D section of validation validate the document type u201CJVu201D syntax u201CBKPF-BLART <> JVu2019
    4 - Create and attach error message for above validation.
    5 - Attach this validation to your company code in OB28
    Since i donu2019t have SAP log on credential therefore cannot give you exact validation code syntax.
    Please try, hopefully this would help.
    Regards,
    Parag

  • Table for document type Number Range interval

    Hi,
    I want to know the number range interval for document type in the production system but I do not have authorisation for SPRO in the prd system.
    Kindly let me know the table name to check this number range interval for the document type.
    Table T003 stores only the number range and not the interval.
    Thanks
    Suresh

    Hi,
    The table which has document types is T003 but the number ranges are stored in a Structure IRDP. The number ranges are maintained directly in the production system.
    regards,
    radhika
    Edited by: kolipara radhika on Aug 25, 2008 6:01 AM

  • Error - Account type D is not defined for document type WL

    I am getting error while doing PGI (Post Goods Issue).
    Error - Account type D is not defined for document type WL

    As we had the same problem for a document in our system, I was also browsing for the answer. I saw this thread and now we have found the solution, so could not resist sharing, although it is an old posting.
    In these cases it can be that a user wants to create a purchase order of the type UB. But if you have stock transport between two companies, you should not use this order type. You have to use order type NB.
    If the user creates the PO with NB then probably they will not get the message.

  • Regarding invoice address for document type

    Hi friends,
    I want to know how to print the INVOICE ADDRESS for a perticular document type if user-id  is not exist.
    Please suggest me the suitable code for the above requirement.
    Regards
    Kumar

    Hi,
    Check Table RBKP & Field name RMWWR for Gross invoice amount & BLART for document type.
    Regards,
    Biju K

  • Restrictions to Postings between GLs for Document type SK/KD/SD/DD

    Hello Friends,
    In our SAP system we have encountered an issue where we see that our SAP system allows to post between GL accounts for document types SK/KD/SD/DD. We are trying to implement a validation rule such that it stops postings between GL account. But it does not work completely.
    Please help me with this issue.
    Refer the Screenshot attached showing the validation rule that we have created in OB28.
    Thanks and regards,
    Jeetendar

    Hello,
    Try this,
    LOOP AT bool_data-bseg INTO bseg.
         IF bseg-koart EQ 'K' OR bseg-koart EQ 'D'  .
            b_result = b_true.
           EXIT.
         ELSE.
           b_result = b_false.
         ENDIF.
       ENDLOOP.
    Thanks,
    V V

  • Gross Invoice amount for document type KR & RE

    Please help in understanding SAP Table & Field name that stores Gross invoice amount for document type KR (Non PO invoice) and RE(PO Invoice)

    Hi,
    Check Table RBKP & Field name RMWWR for Gross invoice amount & BLART for document type.
    Regards,
    Biju K

  • Reference Field for Document Type AB has made Mandatory

    Dear Experts,
        In OBA7, for Document Type AB (Accounting Document) I had clicked the Reference Number Field Check Box (Made it mandatory)
        So it became mandatory every time to enter the Reference Number when using the Document Type AB
        Now I am facing the problem, when using the T Code F-44 (Clear Vendor - Header Data) the system is popping an Error Msg, " For Document Type AB, an entry is required in field Reference "
         Since their is no Reference Field available on the screen, where should I enter the data for the same
        I am unable to understand How this issue can be resolved, I tried a lot but failed to get a solution
         Their is Reference radio button available on Additional Selections tab, but not field
    So please help ..!!
    Regards, Nimish

    Dear Manmay,
          You are correct but the system is not allowing what you have suggested
          When I enter the vendor no. and click on Goto-Document Overview, the system pops the error message and doesnt allow me to enter anything on that screen
         Please try at your end and revert boss
        I think I may require to raise an OSS note for this
    Regards, Nimish

Maybe you are looking for

  • Is it possible to get a variable if I only know the variable by it'

    Is it possible to get a variable if I only know the variable by it's string name? In my case I would like to call Resources.GetStringToDisplay("TEXT_0") and get the string "bla bla 0" public class Resources { public string GetStringToDisplay(String s

  • Chm won't open

    When I compile my project, it only compiles a file of 1KB. When I try to open it, unsurprisingly I get a message saying 'Cannot open xxxxx.chm' I tried deleting the CPD file (not that I understand how that would help but it has done the trick for oth

  • Alt bom components with ATP check - production order resets usage prob.

    Hello, I have searched many threads for this answer.  Here is my scenario BOM for finished good X  has the following components Component   |    Usage Prob   |    Strategy    |  Alt Item Group   |   Priority A          |             55%         |    

  • Outer Glow not appearing in Illustrator CS5.1

    I am working in a file in Illustrator CS5.1 and when I try to add an Outer Glow effect to text or an object, it does not show up.  As I'm applying it with the preview option selected, or even after I apply it. I also can't seem to get the blur option

  • Virtual Time Hierarchy parameters

    Hello I have a few Virtual Time Hierarchies defined on our BW system. These are automatically shown in Business Objects webi when accessing a BEx query but they always show only 1 level. If I define one of the virtual hierarchies on my object in BEx