Vendor selection according to Document Type

Hi Expert,
My Client wants that if he punches the service order then the vendor code selected should be SV001 and if he/she selected the item level vendor i.e. V0001 in the service PO then document should not be added.
I created the seperate vendor code for both type of vendors
for service type vendor i ceated SV001 and for item level vendor i created V0001 code respectively.
Thanks & Regards,
Pankaj Sharma

Hi Pankaj,
Use this SP.
IF @transaction_type IN ('A', 'U') AND @object_type = '22'
BEGIN
If exists
(Select docnum from OPOR
Where doctype = 'S' and cardcode not like 'SV%'
   and DocEntry=@list_of_cols_val_tab_del)
Select @error = 1, @error_message = 'Invalid Vedor '
END
Similarly write one for item type invoice and vendor
Regards,
Jimit Chhapia
Edited by: Jimit Chhapia on Jan 4, 2011 7:22 AM

Similar Messages

  • Sales order list according to docu. type

    HI,
    How I can get list of sales order according to document type?
    Regards,
    Chetan.

    Dear Muthupandiyan
    Just for information, In VA05, we can generate the report without giving either customer code or material code.  Only in VF05, both these are mandatory and only if you give either of these, reports will be generated.
    thanks
    G. Lakshmipathi

  • Vendor Payment with different document types

    Dear Sapguru,
    We have a scenario where a particular vendor payable is in two different document types for example, RE and KZ.
    When we execute TC F110, the payment proposal is grouping the payments by document type. I.e. it grouped all the documents under type RE and grouped all the documents under type KZ and created two line items in the payment proposal.
    Actually, we want to have a single group consisting of all the document types payable to the vendor.
    We have checked different SAP notes and also verified out system settings, but the problem still remains.
    Can somebody let us know how to group all the open items in a single line item in F110 irrespective of document types.
    Thanks in Advance.
    Regards.,
    Rama

    Dear Naravi,
    the main factor which affects the grouping of items is the Structure ZHLG1:
    ZBUKR
    ABSBU
    LIFNR
    KUNNR
    EMPFG
    WAERS
    ZLSCH
    HBKID
    HKTID
    BVTYP
    SRTGB
    SRTBP
    XINVE
    PAYGR
    UZAWE
    DTWS1
    DTWS2
    DTWS3
    DTWS4
    KIDNO
    All these fields have to coincide, to have a single payment.
    Please check why two documents with different document type are paid into two different payments.
    Read the SAP notes 109233 and 164835 and 305414 as well.
    I hope this helps.
    Mauri

  • Report on Vendor selection according to material group

    Hi gurus,
    I have a requirement from client where the client want a report of the vendors according to material group.
    There is a standard report for this in SAP T.C.---- ME6B. But this report is not working . it is throwing message that no vendor exists for the selection criteria. Material group has been maintained in Material Master record. Vendor master records exists. Please tell me is there any customising that may be required to generate this standard report.
    Thanks N regards,
    Siddhartha

    Hi ,
    Thanks for your mail.T C MC$< wont work for me as the client want vendor no.So I will have to work with ME6B.
    The data in the MATKL (Material Group field )in table EINA is not getting populated , could you please tell me the reason or any customisation required for that as all other field in Table EINA is getting populted.
    Thanks N regaards,
    Siddhartha

  • Validation according to Document type

    Hi all,
    i have defind validation in sales order using transaction notification stored procedure. ex:- sales order should be based on sales quotation etc. and code is as follows
    --- Sales Order Not Based On Sales Quotaion
    IF @transaction_type = 'A' AND @object_type = '17'
    BEGIN
    IF EXISTS (SELECT T0.ItemCode FROM [dbo].[RDR1] T0 inner join [dbo].[ORDR] T1 on T0.DocEntry = T1.DocEntry
    WHERE T0.BaseType = -1 AND T0.DocEntry = @list_of_cols_val_tab_del and T1.DocType= 'I')
    BEGIN
    SELECT @Error = 1, @error_message = 'Sales Order not based on Sales Quotation '
    END
    END
    now i want to apply this validation to only 'ITEM' type document instead of 'SERVICE' type document.
    how to do it?

    hi,
    Execute stored procedure in MS SQL Studio management on demo database first
    and then incorporate it in live db.
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(25),
    @transaction_type nchar(1),
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    declare @error  int                    
    declare @error_message nvarchar (200)           
    select @error = 0
    select @error_message = N'Ok'
    IF @transaction_type = 'A' AND @object_type = '17'
    BEGIN
    IF EXISTS (SELECT T0.ItemCode FROM dbo.RDR1 T0 inner join dbo.ORDR T1 on T0.DocEntry = T1.DocEntry
    WHERE T0.BaseType = -1 AND T0.DocEntry = @list_of_cols_val_tab_del and T1.DocType= 'I')
    BEGIN
    SELECT @Error = 1, @error_message = 'Sales Order not based on Sales Quotation '
    END
    END
    select @error, @error_message
    end
    Jeyakanthan

  • Fbl3n vendor code  issue for RE document type

    Hi
    I entered  in fbl3n t.code GR/IR account number then i execute it shows for document type WE (Goods receipt) assignment no,document no,doc type,doc  date,vendor code.but in RE(Invoice receipt) document type,vendor code only not display all other datas shown,is this possible to dispay vendor code in RE document type.plz suggest
    Regards
    Sam

    First of all you will have to copy the FM SAMPLE_INTERFACE_00001650 to a Z one .
    Then you will have to loop where the offseting account would be blank , then refer the same to BSEG or FAGALFLEXA or Vendor / customer open items .
    Then you will have to pass the values in the fields if already there in structre - RFPOS else append the structure and create new fields in structure .
    This is how you will have to proceed .
    Take the help of an abaper for Code and appending the structure .
    Cheers ,
    Dewang

  • Validation for Document type in Vendor Invoice.

    Dear All,
    I need to restrict the user from posting vendor invoice other than document type KR. I thought of using validation with account type and posting key , but looking at more refined solution. Please suggest.
    Thanks & Regards

    Hi,
    Yes, this can be acheived using an validation at accounting document level.
    Validation must be like
    If posting key is 31---Prerequisite: BSEG-BSCHL = '31'
    then the doc type type should be KR---Check: BKPF-BLART = 'KR'
    Else put one error message.
    This will resolve your issue.
    Thanks,
    Srinu

  • Create different billing document types from same sales order type

    Hello,
    Please take a common document flow, just  like this one:
    - Sales Order (type ZE01 )
    - Outbound Delivery
    - Billing Document ( ZA or ZB )
    The billing document is based on the outbound delivery. Here is the requirement that we need to implement:
    - We need to determine different billing document types ( ZA or ZB ) according to a custom determination, based on a Z table. In some cases the billing document will be type ZA, in other cases it will be type ZB. I've been told that I can achieve this  via copy control , but some extra help would be welcome.
    Any clues?
    Regards,
    Joã

    Hi João G Neves ,
    Were you able to achieve this requirement using a  user exit? if so could you let me know the name of the user exit? Basically in our current project a sales order can be billied using 6 different billing document types. The copy controls between the sales  document and billing document is been set up for all the 6different billing doc types and currently the users are manually selecting the billing document type in VF01 .The buisness insists on making this automated.They want the billing document type to be determined based on some custom condtions.
    Any inputs regarding this is highly appreciated.
    Thanks & Regards,
    Srini

  • Document Type in PR & PO

    Hi,
    During creation of purchase order or purchase requisition, in standard there are 2 seperate document types for materials with item codes & texts seperately. In document type text(TX) we cannot create a PO with material for item code & in document type standard(NB/IN) we cannot enter text items. Can we customize & create a new document type which allows both text as well as materials with material code. By doing this, is there any impact? Please let us know at the earliest.
    Regards,
    Srinivas

    You can copy an existing document type & modify it accordingly.
    The path to be followed is given:
    SPRO>Materials Management>Purchasing>Purchase Order>Define Document Types.
    Over here,select a standard document type, copy it & modify it accoerdingly and use this new doc type.
    Regards,
    Chiranjib

  • Company code and plant should get defaulted from PO Document Type

    Dear All,
               We have three company codes 1000 ,1010 ,1020 .We have three purchase document types.NB,NB1,NB2.My requirement is if the user selects document type NB system should automatically take company 1000 and plant 1000 .Same is the requirement for other 2 documents . Is there any settings from which we can achieve company code ,plant getting defaulted according to document type ?
    Thanks & Regards
    Abhijit Das

    Dear,
    Ask your Abaper to write code in GUIXT scripts....
    There if you select particular document type then by default in PO it will popup your plant and company code.
    The above mentioned functionality we do not have in our current projetc, but related tho this we have done it by using the same scripts.
    Try def it will work.
    Regards
    Utsav

  • CREATION OF NEW DOCUMENT TYPE

    Dear cons
    We want to create a new document type for pur. requisition.In this document type  account assignment  will be 'P'(PROJECT) . w.b.s should be only enter.
    so pl. give the details of filling data in the required field step by step. waiting for your early response.
    thanks
    nirupama

    Hi,
    In order to create a document type for a purchase requisition  use the path
    spro-materials management - purchasing--purchase requisitions --define  document type
    in that screen you select the document type you want to copy to create your document type and perform the action.
    if you want to change the screen/field selection for your document type select the field selection key (if you select the document type as NBB the field selection key will be NBB.,and go to the screen and change the field status.
    Hope this will be suffient for your requirement.
    Regards,
    Raghu.

  • Reg:Document Type creation in Manual bank Statement.

    HI all,
    What is the document type for Manual bank statement reconsolation.
    I created (BZ )for Manual bank statement reconsolation which fields i have to  select.
    regards
    JK

    Hi,
    Document types are created at client level. to restrict one kind transactions only and to identify the transactions pertaining to what.
    At the time of configuring BRS we have to specify the document type there u can specify what ever you want before it has to create. go to OBA7
    Hope this is clear, if yes assign points
    Regards,
    Sankar

  • Creation of new document types for document splitting rules

    Hi experts,
    We have copied from existing SA  document type to new document type.
    In standard SAP  SA  document type - define document splitting rule, we have select  "NO INHERITANCE OF ACCOUNT ASSINGNMENT", when posting the  GL document SA  document type without mapping partner profit center,system is control the derive the partner profit center.
      Our requirement is  copied from existing  SA  document type to create a new document type - we have created the new dusiness transaction variant and we have map the "classify document type to document splitting rule " and we have selet the "No inheritance of account assignment" while posting in FB01 GL document with out mapping partner profit center system is not control the " derive partner profit center".
    Could you please assist us as soon as possible
    Thanks ,
    Sreenivas
    Edited by: sapfico.srini12 on Jan 16, 2012 4:37 PM

    Hi,
    In order to create a document type for a purchase requisition  use the path
    spro-materials management - purchasing--purchase requisitions --define  document type
    in that screen you select the document type you want to copy to create your document type and perform the action.
    if you want to change the screen/field selection for your document type select the field selection key (if you select the document type as NBB the field selection key will be NBB.,and go to the screen and change the field status.
    Hope this will be suffient for your requirement.
    Regards,
    Raghu.

  • Custom report with  FAGLFLEXA and "Document type"

    We have new GL and we must do a custom report like this:
    Hierarchy of ProfitCentre ______Credit for mm.yyyy___ Debit for mm.yyyy 
    Profit centre 1_____________________ c1_______________d1
    Profit centre 2_____________________ c2_______________d2
    ect. ....
    The value of c1 is the sum of monthly credit for a profit centre, for a group of accounts, but only for certain "document type".
    The "Document type" is what worries me.
    I have already written a similar report with Report Painter, reading data from the table FAGLFLEXT (0FL library), but took the full credit from the account (for all "document type"), without restrictions on the document type (the table  FAGLFLEXT not contain the field "document type").
    The data I need in my report, I can see with T. FAGLB03. Double-clicking on, for example, the value of credit you go into detail, and data can be selected for different "Document type". I still do not understand how it works and which tables use the T. FAGLB03 to have these data in detail.
    Please, help me what exactly to do?My questions are these?
    My principals questions are these:
    1 . I think, inevitably, i have to link two tables: FAGLFLEXA (the one with the given to him) and GKFP that contains the field BLART (Document Type). This is the right way? Is there another way?
    2 This report can be create with one of SAP tools: Report Painter, SAP Query, ... or the only solution is to write a program in ABAP?
    3.  If i'm not asking too much, you could give me a step-by-step description of how i should proceed?
    All suggestions are welcome.
    Thank you in advance. Many points to assign who will help me to solve this problem

    I know PowerShell can help you with the Get-SCSMRelatedObject command but you would have to write a small script to get that to work en mass.
    http://smlets.codeplex.com/

  • Purchase Order Document Type and Account Assignment

    Hi  ,
    We have a requirement to control Account Assignment in Purchase Order Item line based on the Document type selected on the Purchase Order header.
    Like if user selects Purchase Order document type "ZNB" (Customized created) , then he will only able to select "K" or Blank or "P" as account assignment and similary we want to limit other Account assignments based on the Purchase Document type.
    How can we make this Control settings?
    Regards
    Shrey

    Hi,
    You can't really limit the account assignment categories per document type, at least not directly.
    You can limit the item categories that can be used for a document type via configuration:
    Materials Management > Purchasing > Purchase Order > Define Document Types
    Within this transaction you can define which item categories are valid for a specific document type.
    You can then define which account assignment categories are valid for each item category
    Materials Management > Purchasing > Account Assignment > Define Combination of Item Categories/Account Assignment Categories
    BUT
    limiting the account assignment categories that are valid for an item category will affect ALL purchase order document types that this item category is valid for. And you can't create your own item categories as this is a SAP standard table that can NOT be altered.
    Regards,
    Monika

Maybe you are looking for

  • Redetermination of Texts, Partners and Conditions

    Hi everyone. The purchase order is raised against a contract with delivery requirement to a specific plant. Immediately prior to delivery, it is possible that the plant might change. At which point, the system redetermines the texts, conditions and p

  • Built in isight suddenly won't work

    Yesterday when I got my macbook my isight worked fine and I took some goofy pics and it was fun. Very late in the day while trying to send some files from my PC to my macbook the camera stopped working. Now the green light stays on continually and an

  • XI3.1 and delegated admin?

    hi, we have two distinct project. each project must have delegated admin (manage user and group) : each admin must see only its users and groups... we have apply this : 1/create specific admin groups 2/ create specific acces level (view object/genera

  • Rea a blob from FROM A URL

    We use Note 294780.1 (https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_databa s e_id=NOT&p_id=294780.1) to read a blob from a url. When I try with a file size about 260 kb's caught in this error: ORA-06502: PL/SQL: numeric or v

  • How can I add a tag?

    I want to index JSP-pages but I want that the tags that are standard on the JSP-pages and everything between these tags would not be indexed? Is it possible to add tags to the HTML_SECTION_GROUP?