Mandatory field for TIN No, or  Contact Person

HI Expert,
                 Can anyone please tell me code for Mandatory field for TIN number or Contact person  at the time of adding Purchase Order.its possible by SP i tried for it but its variable so pls anyone have any idea.
Sudhir

Hi Sudhir,
Try This.
FOR Contact Person-----
IF EXISTS (SELECT DocEntry FROM [dbo].[OPOR]
WHERE
((CntctCode IS NULL OR CntctCode = '')
AND DocEntry = @list_of_cols_val_tab_del))
BEGIN
SELECT @error =1, @error_message = 'Your Error Msg1'
END
END
For TIN No.-------
IF (@object_type = '22' AND @transaction_type= 'A')
BEGIN
IF EXISTS (SELECT DocEntry FROM [dbo].[POR12]
WHERE
((TaxID11 IS NULL OR TaxID11 = '')
AND DocEntry = @list_of_cols_val_tab_del))
BEGIN
SELECT @error =1, @error_message = 'Your Error Msg 2'
END
END
Regards
Ashutosh T

Similar Messages

  • Mandatory fields for  BAPI_ACC_DOCUMENT_POST

    Hi
    I am getting the follwing data from the file (Which is coming from oracle) invoice number and the amount,
    from that i have to use Fb70 tcode for posting ,Please help me what are the mandatory fields for FB70,
    how will get those fields from SAP. How to use the BAPI ?
    Regards
    Pabs

    hi
    check out this thread
    Re: BAPI_ACC_DOCUMENT_POST
    hope this helps
    regards
    Aakash Banga

  • Mandatory fields for xd01

    hai,
    what are the mandatory fields to create the datas for xd01.(customer master data).
    regards
    surender

    HI
    MANDATORY FIELDS FOR CREATING CUSTOMER DATA ARE:
    Account Group---ktokd(field name)
    Name---Name1
    Search term----sortl
    postal code----pstlz
    country-----land1.
    Regards,
    vineela

  • Mandatory Fields for IDOC ORDERS01 for Pricing Condition EDI1 to trigger

    Hi ,
    I'm Testing an Inbound ORDRSP using we 19  for Pricing Conditions EDI1. What are the Mandatory Fields for IDOC ORDERS01
    Thanks

    hello,
    I think it's better to execute VA01 to create a sales order; in that way you should have an idea of mandatory fields.
    Thanks.

  • Can any one pls tell me the mandatory fields for BAPI_ACC_DOCUMENT_POST

    hi all ,
    Can any one pls tell me the mandatory fields for BAPI_ACC_DOCUMENT_POST
    what all data i need to give to post a document.
    Thanks and Regards
    JK

    Hi...
    part of my source code:
    ** Header Data " Sending comp code
    wa_documentheader-comp_code = 'XXXXX'.
    wa_documentheader-doc_date = '20060620'.
    wa_documentheader-pstng_date = '20060620'.
    wa_documentheader-doc_type = 'XX'.
    wa_documentheader-username = sy-uname.
    wa_documentheader-ref_doc_no = 'XXxxxxxx'.
    wa_documentheader-header_txt = 'Text Header.
    wa_documentheader-bus_act = 'XXXX'.
    *it_currencyamount
    wa_currencyamount-itemno_acc = '1'.
    wa_currencyamount-currency = 'COP'.
    wa_currencyamount-amt_doccur  = 1943.
    APPEND wa_currencyamount TO it_currencyamount.
    *it_accountpayable
    wa_accountpayable-itemno_acc = '1'.
    wa_accountpayable-gl_account = '1234567890'.
    wa_accountpayable-bus_area = 'DIV'.
    wa_accountpayable-item_text = 'Text 1 XXxxxxx '.
    wa_accountpayable-pmnt_block = ''.
    APPEND wa_accountpayable TO it_accountpayable.
    *it_accountgl
    wa_accountgl-itemno_acc = '2'.
    wa_accountgl-gl_account = '1234567890'.
    wa_accountgl-item_text = 'Text 2 XXxxxxx'.
    wa_accountgl-bus_area = 'DIV'.
    APPEND wa_accountgl TO it_accountgl.
    wa_currencyamount-itemno_acc = '2'.
    wa_currencyamount-currency = 'COP'.
    wa_currencyamount-amt_doccur  = ( 1943 ) * -1.
    APPEND wa_currencyamount TO it_currencyamount.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
      EXPORTING
        documentheader = wa_documentheader
      TABLES
        accountgl      = it_accountgl
        accountpayable = it_accountpayable
        currencyamount = it_currencyamount
        return         = it_return.
    clear it_return.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
          EXPORTING
            documentheader = wa_documentheader
          TABLES
            return         = it_return
            currencyamount = it_currencyamount "currencyamount
            accountpayable = it_accountpayable "accountpayable
            accountgl      = it_accountgl "accountgl
          EXCEPTIONS
            OTHERS         = 01.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • Mandatory fields  for mapping in ORDERS idoc.

    Hi
    I m working on File to idoc scenario for creation of sales order in ECC 6.0 , now I want to know what are the mandatory fields in ORDERS idoc which needs to be populated or else disbaled so that the sales order gets created properly in the ECC 6.0..
    Pl let me know the method of finding mandatory field for mapping for  any idoc  and which fileds of idoc are to be disabled.
    Pl help ..
    ans will be rewarded .
    thanks & rgds
    mojib

    HI,
    U can disable the control record segment and in the IDOC adapter use the option apply control record from payload.
    If you have set the Apply Control Record Values from Payload indicator in the receiver IDoc adapter, the following fields are filled from the IDoc-XML payload:
    ·        MESCOD
    ·        MESCFT
    ·        TEST
    ·        EXPRSS
    ·        STD
    ·        STDVRS
    ·        STDMES
    ·        SNDSAD
    ·        SNDLAD
    ·        RCVSAD
    ·        RCVLAD
    ·        REFINT
    ·        REFGRP
    ·        REFMES
    ·        STATUS
    ·        DIRECT
    ·        OUTMOD
    ·        CREDAT
    ·        CRETIM
    read the information in below link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/ab/bdb13b00ae793be10000000a11402f/frameset.htm
    thnx,
    chirag

  • Mandatory fields for vendor master load

    Hi Experts,
    what are the mandatory fields for the vendor master upload? how can I find that?
    Thanks for the help.

    In addition, you can also refer the links:
    http://www.auditnet.org/docs/SAPR3AccountsPayable.txt
    http://users.ev1.net/~gmorris/securitydocs/SAPR3AccountsPayableMatrix.doc
    Hope this’ll give you idea!!
    <b>P.S award the points.!!! !!!</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • PS: Setting Project Profile as a mandatory field for Project Definition

    Hi,
    I would like to know how to set Project Profile as a mandatory field for Project Definition (CJ20N or CJ01).  I tried to look for controls at OPUK config but the Project Profile is not available for definition - either mandatory, optional, suppressed, etc.  Would appreciate if you can share your expertise on this.
    Thanks!
    Regards,
    Vivian

    Hi,
    I would like to know how to include some additonal fields in OPUK/OPUJ.  We have defined some .INCLUDE component / fields to SAP standard table PRPS/PROJ.  We want those fields to also appear in OPUK/OPUJ so that we could also defined their characteristics - whether input, mandatory, suppressed, etc.
    Thanks!
    Regards,
    Vivian

  • Mandatory Field for Entering Delayed Reason for project during scheduling .

    Hi Friends
    Here I have a question on "Scheduling"?
    My Client want an mandatory field for entering the delay reason if any phase or tasks or project definition get delayed.
    Your input would be highly appreciated
    Regards,
    YAGHAG

    Hi Abhijit,
    Thanks for your prompt reply.
    I am implementing cprojects 4.5 in PLM 7.0 and not in PPM 5.0.
    Regards

  • Mandatory fields for VF01, ME51, XD01, Co40

    can anyone tell me the mandatory fields for the tcodes to do BDC:
    VF01
    ME1
    XD01
    CO40

    Hi,
    ME51,VF01 -- No mandatory fields for these transactions.
    XD01-- account group and customer number are mandatory.
    CO40- Planned order mandatory.
    Regards,
    Jagadish.

  • Make material as a mandatory field for a particular document type in PR

    Hi,
        Currently we are in SAP 4.6c version. There is a business requirement for making material as a mandatory field for a particular document type of purchase requisition as they don't want the user to raise non material purchase requisition using that document type. The field for material is currently not available in the configuration for Define Screen Layout at Document Level for purchase requisition.
    So could you kindly let me know the possible options to prevent user from raising a non material purchase requisition using that document type. If not could you kindly suggest me the user exits available at the time of saving purchase requisition which i could use so that we can write a code to check if the material number is entered or not. If not entered prevent the user from saving the purchase requisitions.
    Also it would be helpful if you could let me know how the fields for enjoy transaction (like material,document type) can be made available for selection in the configuration for Defile Screen Layout at Document Level for purchase requisition.
    All you help in the solving the above problem is highly appreciated.
    Thanks & Regards
    Ram

    Hi,
    Check below method works out for you, if you do not want to proceed with any ABAP development.
    Have a custom field selection key with Material Description field as "Mandatory" and "Display" in Basic Data, Item selection group.
    Assign this to your PR document type which need material as mandatory. With this you are making user to enter material indirectly as mandatory & user will not have an option of entering text which avoids indirect / service procurement.
    "Material Group" option won't help as User can have default settings with some value and it updates even in display mode of field.
    Regards,
    Ram
    Edited by: Ramprashanna S on Jan 11, 2012 11:51 PM

  • How to remove mandatory field for Last Name in Personal Data Editing Screen

    Hello All,
    CUrrently we are using BP_ ERP5ESS1.31 SP5 & SAP_ESS  603 SP5.
    All my ESS Services are Displaying fine and working from Portal.I am having the requirement like I need to make Last Name as Non-Mandatory field in Personal Data. While Editing the PD Screen, there  i will find the * mark for Last Name filed, i checked through the Global Personalization Make as Mandatory is Not Personalized its showing, i think its defualt prpoerty,so i am unable make any changes from Portal w.r.t Global Personalization.
    I checked in SPRO-- Personal Admin> Custmomizing User Interfaces>Change Screen Modifications, there i find the respective Module pool for those Infotypes and country Specific..
    I cheked forModulePool MP000200--> P0002 and Variable Key-40(For India)  P0002 - NACHIN -- LastName only OF Radio Button is Selected all other Rado buttons are not selected.
    I Checked in V_T588MFPROPS view there for 0002 Infotype P0002 -- NACHN Mandatory check box is Checked all other check boxes are Unchecked.
    How to make that Last Name field as Non-Mandatory in Personal Data Edit Screen, where i need to make the changes.'
    Please list out the Steps..Where i need to do the configuration. And i assigned all the required ESS roles on the backend.
    Thanks in Advance
    Adapag

    Hi,
    I don't think supressing through Global Personalization will change the business logic. Within the Business Logic it checks for the mandatory field.
    After the changes I guess you need to make the changes accordingly.
    The below link might be of some help.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    Please correct if I am wrong.
    Cheers-
    Pramod

  • Manage Person - Mandatory field for Singapore

    Hi,
    User requirements have changed and what seems to be marked as a required field for new people in Singapore (field is "Legal Name") is no longer required. I was not involved in the initial implementation.
    The only place I've seen to add/remove required name fields and set a mandatory flag is under the "Manage Person Name Styles" task - but when I try to remove it there I get the following error:
    Warning: You cannot deselect a name component that is predefined as required. (PER-1531563)
    You cannot deselect a name component that is predefined as required. (PER-1531563)
    Can anyone help ? Much appreciated!

    Hi, Have you looked if the name fields are set to required in a customization? The documentation that details how to manage customizations is here.

  • Distribution Cycle: Cost Centre is a mandatory field for GL Acct

    hello,
    When I am executing the distribution cycle in FAGLGA35 in update mode I am getting the error (Message no. F5808) "Field Cost Ctr is a required field for G/L account xxxxxx" as detailed below:
    Field Cost Ctr is a required field for G/L account 2050 599030
    Message no. F5808
    Diagnosis
    The value for field "Cost Ctr" in the interface to Financial Accounting is an initial value but you are required to make an entry in the field selection for G/L account "599030" in company code "2050" linked to the field selection for posting key "40".
    System Response
    Error
    Procedure
    It might be an error in the configuration of the G/L account field selection. The initial application, used to call up the interface must otherwise define a value for field "Cost Ctr". If this is the case, contact the consultant responsible for the application used to call up the interface or get in contact with SAP directly.
    As per the Field Status Group assigned to the master data of this GL Account, cost centre is an required entry. Further I am not able to change the Field status Group of this GL since this GL acct contains some balance.
    Could someone please help me on how to overcome this issue.
    Regards,
    Lavanya

    Hello Ravi,
    Thanks for your response.
    I have tried the option you have provided but user donot want to use the OKB9 option and neither she wants to change the field status group of the GL Acct by which Cost Centre can made an optional field.
    Can you please tell me if we can integrate a cost center in the distribution cycle so that the allocation can be done also for accounts for which a cost center is mandatory ? We can define a cost centre that will be used only for this allocation and that will be the same for all the accounts.
    Request your inputs on this.
    Regards,
    Lavanya

  • Mandatory fields for delivery, GI BAPIs

    Hi Folks,
    scenario, i have an STO number for which i have to create an outbound delivery(like its done in VL10B). now that i have a delivery number, next i have to change the quantity of this delivery and post goods issue. after GI i need to post a GR. data is comming in from a non sap system.
    bapis are -
    BAPI_DELIVERYPROCESSING_EXEC
    to create an outbound delivery
    BAPI_OUTB_DELIVERY_CHANGE
    to change the outbound delivery and then post GI
    BAPI_GOODSMVT_CREATE
    to creat GR
    can anyone who has worked with the following bapis tell me what the mandatory fields are in each bapi. i am unable to post them. i would appreciate your help and thanks in advance.

    Sample Code for BAPI_GOODSMVT_CREATE
    Populate header data
    Posting date
        x_goodsmvt_hdr-pstng_date = <deldate>.
    Document date
        x_goodsmvt_hdr-doc_date   = <doc_date>.
    User Name
        x_goodsmvt_hdr-pr_uname   = <ernam>.
    User Name
        x_goodsmvt_hdr-ref_doc_no = <PO/Delivery No).
    Bill of lading
          x_goodsmvt_hdr-bill_of_lading =<BOL>.
    Populate item data
    Purchase order number
        i_goodsmvt_item-po_number = ebeln.
    Line item number
        i_goodsmvt_item-po_item   = ebelp.
    Plant
        i_goodsmvt_item-plant     = werks.
    Movement type
        i_goodsmvt_item-move_type =movtype.
    Movement indicator
        i_goodsmvt_item-mvt_ind   = mvt_ind.
    GR quantity
        if p_movtype = c_101.
          i_goodsmvt_item-entry_qnt = menge.
       else.
         i_goodsmvt_item-entry_qnt = menge * -1.
        endif.
    GR UOM
        i_goodsmvt_item-entry_uom = meins.
    Storage location
        i_goodsmvt_item-stge_loc = lgort.
    Production date
        i_goodsmvt_item-prod_date = doc_date.
    Delivery completion indicator
        i_goodsmvt_item-no_more_gr = c_x.
    Movement Reason
        if p_movtype = c_122.
          i_goodsmvt_item-move_reas = c_12.
        endif.
      endloop.
    For each PO create a GR document
      if not i_goodsmvt_item[] is initial.
        call function 'TRANSACTION_BEGIN'
             importing
                  transaction_id = l_trans_id.
        call function 'BAPI_GOODSMVT_CREATE'
             exporting
                  goodsmvt_header  = x_goodsmvt_hdr
                  goodsmvt_code    = x_mvt_code
             importing
                  materialdocument = l_mat_doc
                  matdocumentyear  = l_mat_doc_year
             tables
                  goodsmvt_item    = i_goodsmvt_item
                  return           = i_bapireturn.
    endif.

Maybe you are looking for