Sales data not getting populated for Material master by LSMW.

Hi,
  When I am trying to create material manual for sales view material is getting created and the table MVKE(Sales Data for Material) is getting populated with the sales data. But when i Am trying with LSMW METHOD
Object          :     0020  
Method          :     0000               
Program Name    :     RMDATIND           
Program Type    :     D(Direct Input)
    materials are geeting created but the sales data is not getting populated in the table MVKE(Sales Data for Material) and LSMW program also not showing any error.
Can any one tell me what is teh problem here.
Thanks,
Naren.

Hi,
along with VKORG, VTWEG in <b>BMM00</b> are you mapping the below one's also.
BMM00-XEIV1 = 'X'. "sales 1 view
BMM00-XEIV2 = 'X'. "sales 2 view
this will enable the sales(1/2) view.
Check it once..
Regards
vijay

Similar Messages

  • Batch Management Indicator not getting set for material master

    Hi,
    In one of the material we need to mark the Batch Management Indicator in Material MAster. We had removed all the stocks from the material. But still we are getting error, Stock exists for the material in Plant XXX and Sloc YYY.
    I checked in MARD table and MMBE that for this maaterial there are no stock for said Sloca and Plant.
    One thing which I noticed in the Material Master and MARDH table that there exists some stock in Previous persiod for the said Sloc and Plant.
    Need to know is this error is due to stock shown in previous period. Why system is checking the previous period stock.
    How can we resolve our issue and check this Indicator.
    Please let me know as earliest as possible.
    Thanks
    SG

    Hi,
    Refer OSS Note 30656 - Change base unit of measure/batch mngt requirement
    Following are the details of this note;
    Symptom
    When maintaining a material master record, you change the base unit of measure or the batch management requirement indicator or the valuation category. The system then tells you that this change is not possible since stocks still exist. However, no stocks are shown for the material in the stock overview.
    Reason and Prerequisites
    The message that stocks still exist refers not only to stocks in the current period, but also to stocks in the previous period.
    The reason for checking previous period stocks is that postings can also be made to the previous period when entering goods movements. This would result in inconsistencies if the base unit of measure had meanwhile been changed.
    Solution
    Please check whether stocks still exist for the previous period by displaying, for example, the plant stock view or storage location stock view of the material. You do this by selecting "Extras -> Previous period -> Prev. pd SLoc. stock or Prev. pd plant stock".
    If previous period stocks exist, you can make a withdrawal posting as follows:
          1. Post the same amount to current period stock (for example, using movement type 561) so that previous period stock and current period stock are identical.
          2. Make a withdrawal posting in the previous period for the stock together with posting date (for example, using movement type 562).
    You can now try again to change the base unit of measure or the batch management requirement indicator.
    Since the posting of the previous period values to zero is identical with posting to the stocks of the current period, you should reverse the above stock postings (i.e. the stock from the previous period should be booked in again) to make sure that the stock values from the previous and the current periods correspond to the state before the change. Please note, however, that the postings are then carried out using the changed master data from the current period (e.g. account determination, etc.)
    Regards,

  • Addition of a Field in EKKO/Data not getting populated for that field

    Hi All,
    I have added a Z Field in EKKO Table through the Append Structure "CI_EKPODB".
    There are around 2000 records in EKKO and for all the records that Z field is Blank.
    But, when I write a Select Query in Program to Fetch the Records where that Z Field is BLANK, I get only 50 Records.
    The same happens when I Execute SE16 for EKKO by giving condition Z Field = INITIAL. I get only 50 records in the output.
    Please help me understand why I dont get all the Records where that Z Field is INITIAL?
    Is any customization required or is this a Technical Issue?
    Please help.
    Thanks in Advance.

    hi rohan,
    if you are adding a field in a table  by append structure then make that field as ZZ instead of Z to differentiate it from normal fields.
    now when you have created the field in a append structure then if have not checked the initial flag.thats why u are getting this data inconsistency.
    this is because earlier 2000 entries are prestent in the table , now when you add another field in the table then that field will not have value for those 2000 records.
    now when you create the fiels select the init flag field,if you select this then new flag field will  NOT NULL,so initial values will be filled for that field for existing 2000 records.
    Note : NULL and INITIAL are different things, NULL means not defined and initial means which is having its initial value.
    check that init flag and u will get those 2000 records, you are getting inconsistent data now becuse value for that field is null ie not defined.
    hopr this will solve ur post and u wil get the concept of append structure.
    Thanks and regards,
    Tanmaya

  • In VA01  In Schedule line Delivery date not getting populated

    Hello,
    We have developed enhancement for VA01 tcode.
    Depending upon the quatity entered for a material it should show one more item as free good.
    If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
    But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
    Can any one please suggest what i need to do in order to display delivery date for free good.
    Thanks in advance.
    Regards.

    Thanks for your response.
    Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
    Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again.

  • Data not getting populated in Payslip in ESS Portal

    Hi All
    I am tryig to display Payslip in Portal. Have done all the necessary configuration in Benefits and payments->Salary statement->HRFOR/ EDTIN features.
    Correct Payslip form is visible but data is not getting populated in the payslip.
    Have tested the Payslip in PC00_M40_CEDT transaction with the variant i have set for HRFOR/EDTIN features and Payslip data is displayed correctly.
    Have checked for PZ11_PDF transaction but i get a message saying it cannot be accessed through Easy access.
    Can anyone pls let me know what might be the reason for data not getting populated in Payslip in Portal?
    what is role of PZ11_PDF transaction in Payslip display in Portal?
    Regards
    Asha

    Hello,
    Do one thing for executing the PZ11_PDF trsaction please follow following steps.
    1. Once you log in SAP system with same User - Id which you r using on Portal .
    Once log in PUT "/N" in the command box . Then put the trasaction "PZ11_PDF" and execute it will
    Call the salary statement .
    Or
    Once you log in SAP system put the trasction "/nsbwp" then give the trasaction "PZ11_PDF" it will
    call the salary statement ..
    give inputs once you done
    .....The issue with  Authorisations please check it ...
         Add this object in ESS role "S_SERVICE' ...
        and this object in ESS role "P_PERNR" ---infotype 0008
    Edited by: Vivek D Jadhav on Jun 15, 2009 11:49 AM

  • Data not getting populated in ESS Payslip in portal

    Hi All
    I am tryig to display Payslip in Portal. Have done all the necessary configuration in Benefits and payments->Salary statement->HRFOR/ EDTIN features.
    Correct Payslip form is visible but data is not getting populated in the payslip.
    Have tested the Payslip in PC00_M40_CEDT transaction with the variant i have set for HRFOR/EDTIN features and Payslip data is displayed correctly.
    Have checked for PZ11_PDF transaction but i get a message saying it cannot be accessed through Easy access.
    Can anyone pls let me know what might be the reason for data not getting populated in Payslip in Portal?
    what is role of PZ11_PDF transaction in Payslip display in Portal?
    Regards
    Asha

    Asha,
    Maintain Feature EDPDF which determines the SMARTFORM being used to make the payslip available for employees. This is more of a HR related issue and I believe if you post this in the ESS or HR Forum you would be able to resolve this issue.
    Good Luck!
    Sandeep Tudumu

  • Accounting data not yet maintained for material 2010 R-1130-40

    Hi Guys
    I was trying to post a goods issue, but having a error that says -
    accounting data not yet maintained for material 2010 R-1130-40
    I then tried MM02 to maintain the accounting view, but also having an error that says -
    accounting 1 not active for the organizational level.
    Any ideas please as to what to do.
    Chears
    Kofiyahya

    Extend the Accounting view with Tcode :MM50
    Go to MM50 , select Maintenance status as "B" and enter Material number and click on execute (F8), then select the Material line item and click on Maintain Materials tab.
    Regards,
    Ramesh

  • Actual GI Date not getting populated

    Hi
    My issue is that after the change in Fiscal Year, now in some of the STO Deliveries the Actual GI Date is not getting populated in Delivery Document, however the PGI is complete.
    Any suggestion where should I look, and what may be reason / solution.
    Regards
    AA

    AA,
    What Lakshmipati has said is correct the Actual GI date does not get populated we enter it manually, only in the case if you are doing a delivery for 26th march then you can enter in Actual GI date field 26.03.2008. (at that point the Actual GI date will be empty, and you can enter the required date) This date is being taken by the material document which will be generated after performing PGI.
    If you are raising the Order or STO today and you are pursuing with delivery today itself then the system willl take today's date.
    Regards
    Sathya

  • Upload sales text for material master using LSMW direct input method

    Hello Experts,
    I was trying to upload sales text for a material master using LSMW direct input method.
    I followed the following steps for the same
    Tab dlimited Text file format
    MATNR           LONGTEXT                                                     LINE       
    MATERIAL1    LONGTEXT FOR MATERIAL MATERIAL1       1
    Step1 -> Maintain object attributes
    Object -> 0001
    Method-> 0001
    Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
    Program type -> D
    Step2 -> Maintain Source Structure
    Source structure -> LONG_TEXT            Source structure for long text
    Step 3-> Maintain souce file
    Source Fields
    ZLONG_TEXT             Source structure for long text
                           MATNR                         C(018)    MATNR
                           LTEXT                          C(132)    LTEXT
    Step 4-> Maintain structure relationship
    Structure Relations
    /SAPDMC/LTXTH Long Texts: Header                                           <<<< ZLONG_TEXT Source structure for long text
                  Select Target Structure /SAPDMC/LTXTH .
    /SAPDMC/LTXTL Long Texts: Row                                              <<<< ZLONG_TEXT Source structure for long text
                 Select Target Structure /SAPDMC/LTXTL .
    Step 5-> Maintain Field mapping and conversion rules
    Here i have assigned constan rules to couple of them like
    /SAPDMC/LTXTH                  Long Texts: Header
    Fields
       OBJECT                Texts: Application Object
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-OBJECT = 'MVKE'.
       NAME                  Name
                                    Source:  ZLONG_TEXT-MATNR (MATNR)
                                    Rule :   Transfer (MOVE)
                                    Code:    /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
       ID                         Text ID
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-ID = '0001'.
       SPRAS                 Language Key
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-SPRAS = 'E'.
    /SAPDMC/LTXTL                  Long Texts: Row
      Fields
        TEXTFORMAT     Tag column
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTL-TEXTFORMAT = '/'.
        TEXTLINE             Text Line
                                    Source:  ZLONG_TEXT-LTEXT (LTEXT)
                                    Rule :   Transfer (MOVE)
                                    Code:    /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
    Step6 -> Specify file
    Legacy Data          On the PC (Frontend)
                 Data                           D:\Sales_Longtext.txt
    Step7 -> Assign File
    ZLONG_TEXT Source structure for long text
                  Data D:\Sales_Longtext.txt
    Step8 -> Read data
    Output result
    Source Structure             Read      Written        Not Written
    ZLONG_TEXT              1                1              0
    Transactions Read:            1
    Records Read:                   1
    Transactions Written:         1
    Records Written:                 1
    Step 8 -> Display read data
    Field Name                    Field Text Field Value
    MATNR                          MATNR      MATERIA1
    LTEXT                            LTEXT      SALES TEXT FOR Material MATERIAL1
    Step 9 -> Convert data
    File Read:          ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
    File Written:       ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Transactions Read:                 1
    Records Read:                        1
    Transactions Written:              1
    Records Written:                     2
    Step 10 -> Display converted data
    1 /SAPDMC/LTXTH                   1MVKE      MATERIAL1                                                                   0001E
    2 /SAPDMC/LTXTL                   2/ SALES TEXT FOR Material MATERIAL1
    Step 11 -> Start direct input program
    Output result for the same
    Legacy System Migration Workbench
    Project:                              ZNRD_PRJ1       ORH
    Subproject:                        ZNRD_SUBPRJ2    Upload long text
    Object:                               ZNRD_LTEXT      Long text tru direct input
    File :                                   ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Long Texts in Total:                                1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:                 0
    Now when i check the material master sales view -> sales text it is empty.
    Please help me with the same.
    Regards,
    Ranjith N

    Hello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
    I followed the following steps for the same
    Tab dlimited Text file format
    MATNR             LONGTEXT                                              LINE
    MATERIAL1     LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
    Step1 -> Maintain object attributes
    Object -> 0001
    Method-> 0001
    Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
    Program type -> D
    Step2 -> Maintain Source Structure
    Source structure -> LONG_TEXT Source structure for long text
    Step 3-> Maintain souce file Source Fields
    ZLONG_TEXT Source structure for long text
    MATNR C(018) MATNR
    LTEXT C(132) LTEXT
    Step 4-> Maintain structure relationship
    Structure Relations 
    /SAPDMC/LTXTH Long Texts:  Header <<<< ZLONG_TEXT Source structure for long text
    Select Target Structure
    /SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
    Select Target Structure /SAPDMC/LTXTL .
    Step 5-> Maintain Field mapping and conversion rules
    Here i have assigned constan rules to couple of them like
    /SAPDMC/LTXTH Long Texts: Header
    Fields
    OBJECT            Texts: Application Object
                             Rule : Constant
                              Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
    NAME               Name
                             Source: ZLONG_TEXT-MATNR (MATNR)
                             Rule : Transfer (MOVE)
                             Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
    ID                     Text ID
                             Rule : Constant
                             Code: /SAPDMC/LTXTH-ID = '0001'.
    SPRAS             Language Key
                             Rule : Constant
                            Code: /SAPDMC/LTXTH-SPRAS = 'E'.
    /SAPDMC/LTXTL Long Texts: Row
    Fields
    TEXTFORMAT  Tag column 
                             Rule : Constant
                             Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
    TEXTLINE          Text Line
                             Source: ZLONG_TEXT-LTEXT (LTEXT)
                             Rule : Transfer (MOVE)
                             Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
    Step6 -> Specify file Legacy
    Data On the PC (Frontend)
                 Data D:\Sales_Longtext.txt
    Step7 -> Assign File ZLONG_TEXT
    Source structure for long text
              Data D:\Sales_Longtext.txt
    Step8 -> Read data
    Output result
    Source Structure            Read                Written                Not Written
    ZLONG_TEXT                  1                       1                            0
    Transactions Read          1
    Records Read:                1
    Transactions Written:      1
    Records Written:             1
    Step 8 -> Display read data
    Field Name             Field Text                      Field Value
    MATNR                    MATNR                         MATERIA1
    LTEXT                     LTEXT                            SALES TEXT FOR Material MATERIAL1
    Step 9 -> Convert data
    File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
    File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Transactions Read:    1
    Records Read:           1
    Transactions Written: 1
    Records Written:         2
    tep 10 -> Display converted data
    1 /SAPDMC/LTXTH     1    MVKE        MATERIAL1 0001   E
    2 /SAPDMC/LTXTL     2/   SALES TEXT FOR Material       MATERIAL1
    Step 11 -> Start direct input program
    Output result for the same
    Legacy System Migration Workbench Project:
    ZNRD_PRJ1  ORH
    Subproject:   ZNRD_SUBPRJ2     Upload long text
    Object:          ZNRD_LTEXT          Long text tru direct input
    File :              ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Long Texts in Total:                                1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:                0
    Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
    Regards,
    Ranjith N

  • Data not getting populated in output form

    hi all,
    i have to create a layout set with two pages, and fill the first page with ekko data and second page with ekpo data. i have designed the layout set. but the values are not getting populated in my form and logo is also not displaying.....
    can anyone help me.
    regards
    mano

    Hi,
    1.Delete the Logo Command from the Textelement.And re include from Include ->Graphics->Stored document server>Select logo>execute.
    2.Have you written the Driver program for the Layout.
    IF yes,Have you assign the Form and Driver program in NACE.
    3.If yes,Then Debug the Driver and Script ,check those values are coming or not.
    Regards,
    Shiva.

  • Baseline date not getting populated from SRM invoices posted to ECC 6.0

    Hi,
    We are currently in ECC 6.0. The SRM system is in 4.0. We have this particular problem that the baseline date is not getting populated from the Invoices posted from the SRM. The baseline date is blank and the document is saved.
    Did anyone face the same problem??? Can you please refer SAP note 541934 and expand........
    Thanks
    Aravind
    Edited by: Aitipamula Aravind on Aug 10, 2009 5:13 AM

    Hello,
    Yes, you could check the attached note 541934 and regard the implementation of the field ZFBDT in the invoicing document.
    Note 541934 provides a solution how to achieve the MM-customizing for payment baseline dates getting effective for invoices with SRM-origin. This note needs to be applied at your ERP-MM-side in the former plug-in-layer. As described in the note, this is a modification. It's recommended to apply in non-productive system first.
    Hope the above infor.are helps for you!
    Best Regards,
    Gladys xing

  • Team view data not getting refers for some user

    Hi,
    We are facing an issue in team view app for mss,  manager's are seeing details of employees not belonging to their Org Unit/ data not getting refreshed. This seems to be the Cache related issue where the data of perviously logged in user is displayed to the current user till browser cache are cleared manually.
    User don't have permission to clear browser cache. Is there any work around.The issue is coming only for some users.I have enable the 'ABAP HTTP Security session Enabled' property of the system used.
    Regards
    Pallavi

    Hi Karthik,
    in the first view I execute the BAPI and in the second view I show the results. In the second view I also submit the modified data via another BAPI.
    As I execute and display result of same BAPI in two different views I have bound the same model node to both of these views. Let me give you some sample code for understanding what have I done.
    In the first BAPI's search action handler I have written:
              Zsr_Packnr_Validate_Components_Input input = new Zsr_Packnr_Validate_Components_Input();
              wdContext.nodeZsr_Packnr_Validate_Components_Input().bind(input);
              input.addT_Version(new Zsr_Packnr_Field_Values());
              input.addT_Zsr_Genbr(new Zsr_Packnr_Field_Values());
    input.setZsr_Gmc(globalMaterialCode);
              input.setZsr_Mrc(mrc);
              input.setZsr_Ctry(country);
              input.setZsr_Dc(distributionChannel);
              input.setZsr_Div(commercialSegment);
    wdContext.nodeOutput_Validate().invalidate(); //as u suggested
              wdContext.currentZsr_Packnr_Validate_Components_InputElement().modelObject().execute();
              wdContext.nodeOutput_Validate().invalidate();
    In the second BAPI I just display the output node from the same Model context node (its mapped to the second view too).
    But as I said whenever I update some values in the result set and submit it the data gets submitted properly. But when I press the search button again, the previous set of data gets populated, not the just updated data.
    If anybody has some idea on why the second time search BAPI execution still shows the previous set of result it will be a great help to me.
    Thanks for all your help.
    Shubhadip

  • Sales deal not getting populated in Sales order.

    Hi,
    A new custom Agreement type is created for VISTEX agreement in our company. This has condition records table with primary keys as application, condition type, Sales orgs, materia, agreement and valididty date.
    When I create a sales order for same Sales orgs, Sold to and material - it is not pulling sales deal in communication structure.What could be the reason for this. I debugged standard SAP and found that order  is not finding access sequence. Access sequence does not get any data in agreement field  which is VBAP-KNUMA_AG or KONP-KNUMA_AG. Fields is access sequence are VKORG MATNR and KNUMA_AG (table t682z).
    Can anyone please help me to know if something missing in configuartion? Ot it is because order does not have enough data to find agreement or DO I need to manualy ipopulate value of agreement in field KONP-KNUMA_AG in any of sales order user exit.
    Thanks
    Swat
    Edited by: Swati Swati on Mar 5, 2012 10:34 PM

    Let me put more information on my question. We already have an agreement type ZBAB for which a sales order is populating sales deal. But that has condtion tables with fields VKORG KUNAG (sold to) and KONDM Material Pricing Gr). When I create an order , it finds condition record number (within standard SAP logic), using above three fields ( which is VKORG KUNAG and  KONDM) from condition table A700. A700 is conditon table creted for ZBAB.
    But for this new agreement type which has condition table A777  has fields as VKORG MATNR and KNUMA_AG, it is not working.
    I suspect that it is because for the first one, we can get all field values like VKORG KUNAG and KONDM in sales order. But for 2nd one we have KNUMA_AG maintained in access sequence for which we dont have data in sales order.. so we dont have condition record number to get corresponditing agreement. But I dont know where to link this in sales order config or user exit.

  • Item data not getting populated correctly

    Hi All,
    I am using the following code to fill item data while creating order using BAPI_BUSPROCESSND_CREATEMULTI.
    loop.
    *----Fill the Item details
    lv_number = lv_number + 10.
    lv_schdno = lv_cshdno + 1.
      ls_item-handle            = '0000000001'.
      ls_item-header_handle     = '0000000001'.
      ls_item-ordered_prod      = lv_ordered_prod.  "material
      ls_item-number_int        = lv_number.
      INSERT ls_item INTO TABLE lt_item.
    *----Fill the Scheduline Details
      ls_scheduleline-item_handle      = '0000000001'.
      ls_scheduleline-handle           = '0000000001'.
      ls_scheduleline-quantity         = lv_quan.
      ls_scheduleline-schedlin_no      = lv_schdno.
      INSERT ls_scheduleline INTO TABLE lt_scheduleline.
    endloop.
    Order is getting created fine but it has only the last item. Previous line items are not getting added to the order. Do I need to pass any other parameters ot the item or scheduleline table?
    Please help me.
    Thanks in Advance!
    Sonali.

    Hi Marisa,
    Thank you for the reply!
    I have incremented the ls_item-handle and ls_item-header_handle fields. Now it is taking the first line item only and ignoring the rest of them.
    Should I increment the ls_input-fields-ref_handle value also?
    Thanks,
    Sonali.

  • Data not getting in table in master detail block form

    Hi
    I am using oracle forms 10g
    I have three block namely control_block, Header_block and detail_block and three button in three block. Find button in control_block,Detail button in Header_block and save button in Detail_block.
    Now i will enter PO_number in the Control block and enter find button and the po details is fetched and it will show the po details in the Header_block and in the header_block i have one field named as Expeditor and here the user will assing Expeditor to that po_number and Click the Save button in the Detail_Block.
    this is my code
    DECLARE
    ln_count NUMBER;
    CURSOR c_expeditor
    IS
    SELECT po_number
    FROM xxogec_poexp_expeditor_stg
    WHERE po_number = :header_block.po_number;
    BEGIN
         IF :DETAIL_BLOCK.po_number IS NULL
    THEN
    FOR c_exp_rec IN c_expeditor
    LOOP
    IF c_expeditor%NOTFOUND
    THEN
    INSERT INTO xxogec_poexp_expeditor_stg
    (po_header_id,
    po_number, creation_date,
    po_expeditor_name
    VALUES (:header_block.po_header_id,
    :header_block.po_number, SYSDATE,
    :header_block.expeditor
    ELSE
    UPDATE xxogec_poexp_expeditor_stg
    SET po_expeditor_name = :header_block.expeditor
    WHERE po_number = :header_block.po_number;
    END IF;
    END LOOP;
    STANDARD.COMMIT;
    End if;
    End;
    Now when i press save button the data is not getting inserted.
    Can any please correct me where my code went wrong.
    Thanks & regards
    Srikkanth.M

    FOR c_exp_rec IN c_expeditor
    LOOP
      IF c_expeditor%NOTFOUND
      THENYou'll never get to the IF statemement, because there is nothing to loop if there is nothing to be found.

Maybe you are looking for