Mandatory Field for BAPI_PR_CREATE

Hi,
I am using BAPI BAPI_PR_CREATE to create Purchase Requisition. I fill the parameter PRITEM and PRACCOUNT with required field in BAPI. But when i execute the BAPI its giving DUMP with following message.
"A RAISE statement in the program "SAPLMEXF" raised the exception condition "NOT_FOUND".       
Since the exception was not intercepted by a superior program in the hierarchy, processing was terminated."
Might of because i am passing worng parameters.
PLease help to sove this problem.
Thanks is advance.
Piyush

Hi Eswar,
I am passing the following information in PRITEM.
PREQ_ITEM   0010                                      
PUR_GROUP   602                                     
SHORT_TEXT  TEST                                    
PLANT       WERK                                    
MATL_GROUP  DUMMY                                   
QUANTITY    10.000                        
UNIT        EA                                      
DEL_DATCAT_EX  D                                        
DELIV_DATE    01/08/2006                           
PREQ_PRICE    20.000000000   
ACCTASSCAT    K 
and folling data in PRACCOUNT
GL_ACCOUNT     99426                                 
COSTCENTER     690                                   
GR_RCPT        TEST                                  
UNLOAD_PT      JIM CAREY 376-3036                    
But its howing the dump when i execute the BAPI.
ShrtText                                      
"Exception condition "NOT_FOUND" raised.    "
Please help me to solve this problem and klet me know where i am passing wrong parameter.
Thanks
Piyush

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 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

  • 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

  • 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.

  • Mandatory fields for creation of FB60(vendor invoice),and FK01(cost center)

    Hi all,
    can u plz send me the mandatory fields(along with discription) for creation of FB60(vendor invoice),and FK01(cost center).
    thank u,
    Srinivas Reddy.

    The FK01 is the transaction used to create a Vendor.
    The mandatory fields are:
    a. NAME1: For Name
    b. SORT1: For CUIT number.
    c. SORT2: For alternative CUIT number.
    d. CITY1: For city.
    e. STCD1: Tax Number.
    f. Others depending the case.
    For FB60 (Vendor invoice) the mandatory fields are:
    a. ACCNT: Number of Vendor Account.
    b. BLDAT: Date.
    c. XBLNR: Reference Number.
    d. WRBTR: Invoice Amount.
    e. HKONT: G/L Account Number.
    f. WRBTR: Invoice Amount. The same as d but in the item.
    g.MWSKZ: Tax Type. Depending the case.
    h. KOSTL: Cost Center. Depending the case but is highly probable that the field were mandatory.
    i. Others. Depending the case.
    I have given to you the most probably fields that are mandatory for those transactions.
    Your Sincerely
    Leonardo Lopez
    FI Consultant

  • 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

Maybe you are looking for