Del Date not populating using bapi_po_create1

Hi,
I am using Bapi_po_create1 and am having a problem with delivery dates. The Po creates fine but the delivery date will not populate.
here is the code i use to populate the Bapi
wa_po_item_schedules1-po_item = line_c.
    wa_po_item_schedules1-delivery_date = del_date.
    wa_po_item_schedules1-quantity = scr100-qty.
    wa_po_item_schedules1-del_datcat_ext = 'D'.
    APPEND wa_po_item_schedules1 TO it_po_item_schedules1.
    wa_po_item_schedulesx-po_item = 'X'.
    wa_po_item_schedulesx-delivery_date = 'X'.
    wa_po_item_schedulesx-quantity = 'X'.
    wa_po_item_schedulesx-del_datcat_ext = 'X'.
    APPEND wa_po_item_schedulesx TO it_po_item_schedulesx.
Any ideas?
Kieran.

You are passing 'Category of delivery date' as 'D'. Could you check Category of delivery date in TPRG table ? Also check in which format you are passing the schedule date.

Similar Messages

  • Data not populating after DS enhancement

    HI pros,
    i have made Data source enhancement.
    i wrote the code in include program.
    when '0FI_GL_40'.
      CHECK NOT c_t_data[] IS INITIAL.
      LOOP AT c_t_data ASSIGNING <fs_data5>.
      SELECT SINGLE matnr FROM bseg INTO <fs_data5>-ZZMATNR
                             where BUKRS eq <fs_data5>-BUKRS and
                                   BELNR eq <fs_data5>-BELNR and
                                   GJAHR eq <fs_data5>-GJAHR and
                                   BUZEI eq <fs_data5>-BUZEI.
    endloop.
    but the data not populating into the report, the Multi provider is real time
    krish..

    Hi,
    Syntax
    ASSIGN mem_area TO <fs> casting_spec range_spec.
    Effect
    This statement assigns the memory area specified using mem_area to the field symbol <fs>. You can assign a data object or a memory area calculated from the address of a data object. After the assignment, the field symbol refers to the assigned memory area and can be used in operand positions. When used in a statement, it behaves like a dereferenced data reference, meaning that the statement works with the content of the memory area.
    The data type with which the assgigned memory area is treated, depends on the specifications in casting_spec. You can either execute an explicit casting or the field symbol takes on the data type of the data object specified in the assignment. A field symbol to which a memory area is assigned, has this data type after the assignment and behaves like a data object of this type.
    The assigned memory area mem_area must be at least as long as the data type specified in casting_spec and must have the same alignment. If the data type determined in casting_spec is deep, the deep components with their type and position must appear in the assigned memory area exactly like this.
    Use the specifications in range_spec to restrict the memory area that can be assigned to the field symbol.
    You have to assign it back to internal table to modify the content.
    Check in debug mode if you have still doubt.
    regards,
    Raju

  • Data not populating in database

    Hi All
    I am trying to insert data into a custom table but unable to do so...
    Steps followed
    1. Created a custom table
    2. Created an EO based on the table
    3. Created a VO associated with the EO.
    4. Created AM and associated the VO with it.
    5. Created page and associated it with the AM.
    Controller Code
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
        OAApplicationModule am = pageContext.getApplicationModule(webBean);
        am.invokeMethod("initEmployee");
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        OAApplicationModule am = pageContext.getApplicationModule(webBean);
        if("Next".equals(pageContext.getParameter("event")))
           pageContext.setForwardURL("OA.jsp?page=/xx0801/oracle/apps/per/selfservice/val_assignment/webui/PhonePG", null, (byte)0, null, null, true, "N", (byte)99);
    if("Save".equals(pageContext.getParameter("event")))
      am.invokeMethod("createEmployee");
      }AMImpl Code
    public employeeAMImpl()
        public void initEmployee()
          OAViewObject vo = getEmployeeVO1();
            if(!vo.isPreparedForExecution())
               {vo.executeQuery();
            Row row=vo.createRow();
                vo.insertRow(row);
            row.setNewRowState(Row.STATUS_INITIALIZED);
        public void createEmployee()
        getTransaction().commit();
    ...A new row does get created in the table but the data columns are empty only the creation date, created by, last_updated_by etc are getting populated.
    Thanks

A: Data not populating in database

I have put the debug statement as follows:
public void createEmployee()
    EmployeeVORowImpl emp = (EmployeeVORowImpl)getEmployeeVO1().getCurrentRow();
   String name = emp.getEmployeeNumber().toString();  
   System.out.println("Emp Num: " + name);
    getTransaction().commit();
    }The employee number got printed in the messages. However the row still doesnot have any data except the created by, creation date etc
Edited by: Subhasish on Jan 12, 2011 3:38 AM

I have put the debug statement as follows:
public void createEmployee()
    EmployeeVORowImpl emp = (EmployeeVORowImpl)getEmployeeVO1().getCurrentRow();
   String name = emp.getEmployeeNumber().toString();  
   System.out.println("Emp Num: " + name);
    getTransaction().commit();
    }The employee number got printed in the messages. However the row still doesnot have any data except the created by, creation date etc
Edited by: Subhasish on Jan 12, 2011 3:38 AM

  • Info-Object Master Data is not populated using Attribute View

    Hi Colleagues,
    I have one info-Object 'Resource', compounded with client, resource type and scenario.
    I want to fill its master data using an attribute view.  In Master data tab, i have mentioned the package and attibute view (SAP HANA MODEL).
    Assigned all the attributes to respective fields in attribute view.
    I can see data using the 'Data Preview' in my attribute view.
    Two issues --
    1. Maintain master data option is disabled in the context menu of 'Resource' Info-Object.
    2. Also the data available in attribute view is not populating in master data of info-Object ( I tried seeing by creating a report).
    Please suggest what is wrong here.
    Thanks in advance.
    Regards,
    Rohit

    Hi,
    When you are loading data from DSO to IO, seems like some filtering is happening. Just check the active table of DSO and make sure that you have all the 59 records available.
    Another important thing is check the primary key of your master data i.e. if there is any compounding attribute if not then records from DSO might be getting overwritten in the master data. i.e. only 6 unique records.
    Regards,
    Durgesh.

  • Service PO for Multiple Acct Assig is not created using BAPI_PO_CREATE1

    Hi,
    Im unable to create the Service po with multiple acct assiignment using BAPI_PO_CREATE1
    Header Data
          w_poheader-comp_code = w_src-bukrs.  "Company Code
          w_poheader-doc_type = w_src-bsart.   "Document type
         w_poheader-delete_ind = w_src-vrtkz. "Deletion Indicator
          CLEAR: lv_date.
          CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
            EXPORTING
              date_external            = w_src-aedat
            IMPORTING
              date_internal            = lv_date
            EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
          w_poheader-creat_date = lv_date.    "Creation Date
          w_poheader-created_by = sy-uname.    "Creator Name
          w_poheader-vendor = w_src-lifnr.     "Vendor
          w_poheader-pmnttrms = w_src-zterm.   "Payment Terms
          w_poheader-purch_org = w_src-ekorg.  "Purchase Organization
          w_poheader-pur_group = w_src-ekgrp.  "Purchase Group
          w_poheader-ref_1    = w_src-ihrez.   "OLD PO
          w_poheaderx-comp_code = 'X'.  "Company Code
          w_poheaderx-doc_type = 'X'.   "Document type
         w_poheaderx-delete_ind = 'X'.      "Deletion Indicator
          w_poheaderx-creat_date = 'X'.    "Creation Date
          w_poheaderx-created_by = 'X'.
          w_poheaderx-vendor = 'X'.
          w_poheaderx-pmnttrms = 'X'.   "Payment Terms
          w_poheaderx-purch_org = 'X'.  "Purchase Organization
          w_poheaderx-pur_group = 'X'.  "Purchase Group
          w_poheaderx-ref_1 = 'X'.
    Item Data
          w_poitem-po_item = w_src-ebelp.
          IF NOT w_src-elikz IS INITIAL.
            w_poitem-delete_ind = w_src-elikz.
          ENDIF.
          IF NOT w_src-txz01 IS INITIAL.
            w_poitem-short_text = w_src-txz01.
          ENDIF.
          IF NOT w_src-werks IS INITIAL.
            w_poitem-plant = w_src-werks.
          ENDIF.
    Material group
          IF NOT w_src-matkl IS INITIAL.
            w_poitem-matl_group = w_src-matkl.
          ENDIF.
    Open or Partial Qty
          IF w_src-opqty IS  NOT INITIAL.
            w_poitem-quantity = w_src-opqty.
          ELSEIF NOT w_src-paqty IS INITIAL.
            w_poitem-quantity = w_src-paqty.
          ENDIF.
          IF NOT w_src-meins IS INITIAL.
            w_poitem-po_unit = w_src-meins. "Base Unit of Measure
          ENDIF.
          IF NOT w_src-netpr IS INITIAL.
            w_poitem-net_price = w_src-netpr.  "Net Price
          ENDIF.
          IF NOT w_src-mwskz IS INITIAL.
            w_poitem-tax_code = w_src-mwskz.
          ENDIF.
          IF NOT w_src-pstyp IS INITIAL.
            w_poitem-item_cat = w_src-pstyp.
          ENDIF.
          IF NOT w_src-knttp IS INITIAL.
            w_poitem-acctasscat = w_src-knttp.
          ENDIF.
          w_src-vrtkz = '2'.    "Added
          IF NOT w_src-vrtkz IS INITIAL.
            w_poitem-distrib = w_src-vrtkz.
          ENDIF.
    Package No
          IF w_src-srv_line_no EQ '2'.
            w_poitem-pckg_no = 0000000001. "Assign dummy package no "w_src-packno.  "Package no
          ELSEIF w_src-srv_line_no EQ '3'.
            w_poitem-pckg_no = 0000000004. "Assign dummy package no "w_src-packno.  "Package no
          ENDIF.
          IF w_poitem-delete_ind IS INITIAL AND
             w_poitem-short_text IS INITIAL AND
             w_poitem-plant IS INITIAL AND
             w_poitem-matl_group IS INITIAL AND
             w_poitem-quantity IS INITIAL AND
             w_poitem-po_unit IS INITIAL AND
             w_poitem-net_price IS INITIAL AND
             w_poitem-tax_code IS INITIAL.
            CLEAR lv_item.
          ELSE.
            APPEND w_poitem TO i_poitem.
            CLEAR: w_poitem.
            lv_item = 'X'.
          ENDIF.
          w_poitemx-po_item = w_src-ebelp.
          w_poitemx-delete_ind = 'X'.
          w_poitemx-short_text = 'X'.
          w_poitemx-plant = 'X'.
          w_poitemx-matl_group = 'X'.
          w_poitemx-quantity = 'X'.
          w_poitemx-po_unit = 'X'.
          w_poitemx-net_price = 'X'.
          w_poitemx-tax_code = 'X'.
          w_poitemx-item_cat = 'X'.
          w_poitemx-acctasscat = 'X'.
          w_poitemx-distrib = 'X'.
          w_poitemx-pckg_no = 'X'.
          IF lv_item = 'X'.
            APPEND w_poitemx TO i_poitemx.
            CLEAR: w_poitemx,
                   lv_item.
          ENDIF.
    PO Deliery Address
          w_poaddrdelivery-po_item = w_src-ebelp.
          IF NOT w_src-adrn2 IS INITIAL.
            w_poaddrdelivery-addr_no = w_src-adrn2.
            APPEND w_poaddrdelivery TO i_poaddrdelivery.
            CLEAR w_poaddrdelivery.
          ENDIF.
    POschedule
          w_poschedule-po_item = w_src-ebelp.
       w_poschedule-SCHED_LINE = w_src-
          CLEAR: lv_date.
          CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
            EXPORTING
              date_external            = w_src-eindt
            IMPORTING
              date_internal            = lv_date
            EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
          IF NOT lv_date IS INITIAL.
            w_poschedule-del_datcat_ext = 'D'. "Delivery Date in Day Format
            w_poschedule-delivery_date = lv_date.
            w_poschedule-quantity = w_src-menge.
            APPEND w_poschedule TO i_poschedule.
            CLEAR w_poschedule.
            lv_schd = 'X'.
          ENDIF.
          w_poschedulex-po_item = w_src-ebelp.
       w_poschedule-SCHED_LINE = 'X'.
          w_poschedulex-del_datcat_ext = 'X'.
          w_poschedulex-delivery_date = 'X'.
          w_poschedulex-quantity = 'X'.
          IF lv_schd = 'X'.
            APPEND w_poschedulex TO i_poschedulex.
            CLEAR : w_poschedulex,
                    lv_schd.
          ENDIF.
    PO Account Assignment
          w_poaccount-po_item = w_src-ebelp.
          w_poaccount-serial_no = w_src-zekkn.
    Distribution Indicator is 1
          IF w_src-vrtkz EQ '1'.
            w_poaccount-distr_perc = w_src-vproz.
            IF NOT w_src-menge IS INITIAL.
              CLEAR lv_menge.
              lv_menge = w_src-menge.
            ENDIF.
            lv_acct_qty = lv_menge * w_src-vproz / 100.
    Get Round value of Quanity
            frac = FRAC( lv_acct_qty ).
            IF frac EQ 0.
              lv_acct_qty = FLOOR( lv_acct_qty ).
            ELSE.
              lv_acct_qty = CEIL( lv_acct_qty ).
            ENDIF.
            w_poaccount-quantity = lv_acct_qty.
          ELSEIF w_src-vrtkz IS INITIAL.
            w_poaccount-quantity = w_src-menge.
          ENDIF.
      w_poaccount-quantity = w_src-menge.    "added
          w_poaccount-gl_account = w_src-saknr.
          w_poaccount-costcenter = w_src-kostl.
          w_poaccount-asset_no = w_src-anln1.
          w_poaccount-wbs_element = w_src-wbs.
          w_poaccount-network = w_src-nplnr.
          w_poaccount-tax_code = w_src-mwskz.
          w_poaccount-activity = w_src-vornr.
          APPEND w_poaccount TO i_poaccount.
          CLEAR w_poaccount.
          w_poaccountx-po_item = w_src-ebelp.
          w_poaccountx-serial_no = w_src-zekkn.
          IF w_src-vrtkz EQ '1'.
            w_poaccountx-distr_perc =  'X'.
          ENDIF.
          w_poaccountx-quantity = 'X'.
          w_poaccountx-gl_account = 'X'.
          w_poaccountx-costcenter = 'X'.
          w_poaccountx-wbs_element = 'X'.
          w_poaccountx-network = 'X'.
          w_poaccountx-tax_code = 'X'.
          w_poaccountx-activity = 'X'.
          w_poaccountx-cmmt_item = 'X'.
          APPEND w_poaccountx TO i_poaccountx.
          CLEAR w_poaccountx.
    Extension for ZZSub
          IF NOT w_src-zzsub IS INITIAL.
            w_extensionin-structure = 'BAPI_TE_MEPOACCOUNTING'.
            w_extensionin-valuepart1+0(5) = w_src-ebelp.
            w_extensionin-valuepart1+5(2) = '01'.
            w_extensionin-valuepart1+28(5) = w_src-zzsub.
            APPEND w_extensionin TO i_extensionin.
            CLEAR w_extensionin.
            w_extensionin-structure = 'BAPI_TE_MEPOACCOUNTINGX'.
            w_extensionin-valuepart1+0(5) = w_src-ebelp.
            w_extensionin-valuepart1+5(2) = '01'.
            w_extensionin-valuepart1+11(1) = 'X'.
            APPEND w_extensionin TO i_extensionin.
            CLEAR w_extensionin.
          ENDIF.
    Extension to add Expense Type only
          IF NOT  w_src-zzexptype IS INITIAL.
            w_extensionin-structure = 'BAPI_TE_MEPOHEADER'.
            w_extensionin-valuepart1+10(4) = w_src-zzexptype.
            APPEND w_extensionin TO i_extensionin.
            CLEAR w_extensionin.
            w_extensionin-structure = 'BAPI_TE_MEPOHEADERX'.
            w_extensionin-valuepart1+10(4) = 'X'.
            APPEND w_extensionin TO i_extensionin.
            CLEAR w_extensionin.
          ENDIF.
          EXPORT i_extensionin[] TO MEMORY ID 'SUB'.
    PO Services( One Line Iem)
          IF w_src-srv_line_no EQ '2'.
            w_poservices-pckg_no = 0000000001.  "w_src-packno. "(assign package no as a dummy number)
            w_poservices-line_no = 0000000001.  "w_src-srv_line_no.    "Line item
            w_poservices-outl_ind = 'X'.
            w_poservices-subpckg_no = 0000000003.  "w_src-sub_packno. "(Dummy No.) "Sub package no
         w_poservices-quantity = w_src-srqty.  "Service Quantity
         w_poservices-base_uom = w_src-srmeins.  "Service Basic unit of Measure
         w_poservices-price_unit = '1'.
            w_poservices-from_line = '1'.
         w_poservices-gr_price  = w_src-brtwr.  "GR Price
         w_poservices-short_text = w_src-sh_text1.    "Service Short Text
            APPEND w_poservices TO i_poservices.
            CLEAR w_poservices.
    PO Services(Second Line Item )
            w_poservices-pckg_no = 0000000003.  "w_src-sub_packno. "(Dummy No.) "Sub package no
            w_poservices-line_no = 0000000002.
            w_poservices-ext_line = w_src-extrow.    "External line
            w_poservices-quantity = w_src-srqty.  "Service Quantity
            w_poservices-base_uom = w_src-srmeins.  "Service Basic unit of Measure
            w_poservices-price_unit = '1'.
            w_poservices-gr_price  = w_src-brtwr.  "GR Price
            w_poservices-short_text = w_src-sh_text1.    "Service Short Text
            APPEND w_poservices TO i_poservices.
            CLEAR w_poservices.
    PO Service Access values
            w_posrvacc-pckg_no = 0000000003.  "w_src-sub_packno.  "Sub package no
            w_posrvacc-line_no = 0000000002.  "w_src-srv_line_no. "Line item
            w_posrvacc-serno_line = w_src-zekkn.                "'01'.
            IF w_src-vproz IS INITIAL.
              w_posrvacc-percentage = '100.0'.
            ENDIF.
            w_posrvacc-serial_no = '01'.
            w_posrvacc-quantity = w_src-srqty.  "Service Quantity
            APPEND w_posrvacc TO i_posrvacc.
            CLEAR w_posrvacc.
          ELSEIF w_src-srv_line_no EQ '3'.
    PO Services
            if w_src-srv_line_no EQ '2'.
            w_poservices-pckg_no = 0000000004.  "(assign package no as a dummy number)
            w_poservices-line_no = 0000000001.  "Line item
            w_poservices-outl_ind = 'X'.
            w_poservices-subpckg_no = 0000000005.  "(Dummy No.) "Sub package no
            w_poservices-from_line = '1'.
            APPEND w_poservices TO i_poservices.
            CLEAR w_poservices.
            w_poservices-pckg_no = 0000000005.  "w_src-sub_packno. "(Dummy No.) "Sub package no
            w_poservices-line_no = 0000000002.
            w_poservices-ext_line = w_src-extrow.    "External line
            w_poservices-quantity = w_src-srqty.  "Service Quantity
            w_poservices-base_uom = w_src-srmeins.  "Service Basic unit of Measure
            w_poservices-price_unit = '1'.
            w_poservices-gr_price  = w_src-brtwr.  "GR Price
            w_poservices-short_text = w_src-sh_text1.    "Service Short Text
            APPEND w_poservices TO i_poservices.
            CLEAR w_poservices.
            endif.
            if  w_src-srv_line_no EQ '3'.
            w_poservices-pckg_no = 0000000005.  "w_src-sub_packno. "(Dummy No.) "Sub package no
            w_poservices-line_no = 0000000003.
            w_poservices-ext_line = w_src-extrow.    "External line
            w_poservices-quantity = w_src-srqty.  "Service Quantity
            w_poservices-base_uom = w_src-srmeins.  "Service Basic unit of Measure
            w_poservices-price_unit = '1'.
            w_poservices-gr_price  = w_src-brtwr.  "GR Price
            w_poservices-short_text = w_src-sh_text1.    "Service Short Text
            APPEND w_poservices TO i_poservices.
            CLEAR w_poservices.
            endif.
    PO Service Access values
           if  w_src-srv_line_no EQ '2'.
            w_posrvacc-pckg_no = 0000000005.  "w_src-sub_packno.  "Sub package no
            w_posrvacc-line_no = 0000000002.  "w_src-srv_line_no. "Line item
            w_posrvacc-serno_line = '01'.
            w_posrvacc-percentage = '100.0'.
            w_posrvacc-serial_no = '01'.    "w_src-zekkn.
            w_posrvacc-quantity = w_src-srqty.  "Service Quantity
            APPEND w_posrvacc TO i_posrvacc.
            CLEAR w_posrvacc.
            endif.
            if  w_src-srv_line_no EQ '3'.
            w_posrvacc-pckg_no = 0000000005.  "w_src-sub_packno.  "Sub package no
            w_posrvacc-line_no = 0000000003.  "w_src-srv_line_no. "Line item
            w_posrvacc-serno_line = '01'.
            w_posrvacc-percentage = '100.0'.
            w_posrvacc-serial_no = '02'.  "w_src-zekkn.  "'01'.
            w_posrvacc-quantity = w_src-srqty.  "Service Quantity
            APPEND w_posrvacc TO i_posrvacc.
            CLEAR w_posrvacc.
            endif.
          ENDIF.
        ENDIF.
    ***Create a NEW PO
    Call BAPI
          CALL FUNCTION 'BAPI_PO_CREATE1'
            EXPORTING
              poheader          = w_poheader
              poheaderx         = w_poheaderx
              TESTRUN           = ' '
            IMPORTING
              exppurchaseorder  = gv_ebeln
            TABLES
              return            = i_return
              poitem            = i_poitem[]
              poitemx           = i_poitemx[]
              poaddrdelivery    = i_poaddrdelivery[]
              poschedule        = i_poschedule[]
              poschedulex       = i_poschedulex[]
              poaccount         = i_poaccount[]
              poaccountx        = i_poaccountx[]
              poservices        = i_poservices[]
              posrvaccessvalues = i_posrvacc[]
              extensionin       = i_extensionin[].
    Commit the Transaction
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
    Regards,
    Deepthi.

    it is solved

  • Stock Item Release Date not populated in Webtools

    I am looking to alert Online purchases of products that are shown in webtools ( i.e. Active = 'Y') that are not immediately available at a date in the future.
    It is not possible to use the Valid From Date because this controls the initial visibility of the item in webtools.
    There is a UDF inserted by the Plugin ( I think ) Call ed Release date, however populating this field does not cause the 'ReleaseDate' field in PartsMaster Table to be updated.
    Assuming this can be achieved can someone advise briefly as to how this data can be populated on the relevant aspx page(s)
    If there is a better way of achieving the same thing - suggestions welcome. The customer wants to control this data from B1 rather then in WT.
    Thanks

    Hello Bryce,
    That's interesting what exactly do you mean by batch job? I presume some scheduled stored procedure with a update clause. Up until now I had thought that synch plugin was the only solution and hadn't tried writing my own yet but given the two SQL servers have to be able to  communicate with each other why or exactly when would a batch job not be practical for this sort of thing. Is this only really appropriate for uni-directional updates ( i.e. B1 to WT )?
    Or am I missing something here?

  • Return order BUS2102 Workflow container data not populated

    Hi All,
    Please requesting you to provide your advise on the below issue.
    I have created a custom workflow with business object BUS2102
    In the Workflowtemplate (E.g. WS90000XXX)
    i have included the triggering event for BUS2102 with EVENT "CREATED" and
    added a container element SDReturnCN of type BUS2102
    Once the Return Order is created the Workflow is getting triggered successfully
    but data is not populated into the container SDReturnCN.
    Do i need to write and EXIT to populate container UNLIKE as in Credit memo bussiness object :BUS2094
    if yes please let me know which part i am missing.
    Thanks & Regards,
    Veeru.

    Hello,
    "but data is not populated into the container SDReturnCN."
    Check the bindings. Where is the value coming from?
    regards
    Rick Bakker
    hanabi technology

  • Data not populating in my idoc

    Hi guru,
    i am writting these below code .
    please look my code.here date i am moving from : move  W_datum1  to  int_edidd-sdata.
    so in debugging mode i am getting date value in int_edidd-sdata.
    but why the value is not populating in my segment of idoc.can u tell me where is the probleam in my code???
    If XVBDKR-VKORG  = 'EDM1'
    *CONTROL_RECORD_OUT-STDMES = 'INVOIC'
    AND DOBJECT-KSCHL = 'ZEDI'.
    if INT_EDIDD-SEGNAM = 'E1EDK02'.
    LOOP AT INT_EDIDD WHERE SEGNAM = 'E1EDK02'.
                E1EDK02 = INT_EDIDD-SDATA.
                IF E1EDK02-QUALF = '009'.
                W_datum2 = E1EDK02-datum.
                ELSEIF E1EDK02-QUALF = '012'.
                  W_datum1 = E1EDK02-datum.
                ENDIF.
              ENDLOOP.
    endif.
    IF W_datum1 GT W_datum2.
              W_datum1 = W_datum2.
        move  W_datum1  to  int_edidd-sdata.
    MODIFY int_edidd INDEX hilfe_tabix.
              EXIT.
             ENDIF.
           ENDIF.

    hi,
    my current code is below...
    please help
    If XVBDKR-VKORG  = 'EDM1' and
    CONTROL_RECORD_OUT-MESTYP = 'INVOIC'
    AND DOBJECT-KSCHL = 'ZEDI'.
    if INT_EDIDD-SEGNAM = 'E1EDK02'.
    MOVE int_edidd-sdata TO e1edk02.
    loop at INT_EDIDD where SEGNAM = 'E1EDK02'.
                E1EDK02 = INT_EDIDD-SDATA.
                IF E1EDK02-QUALF = '009'.
                W_datum2 = E1EDK02-datum.
                ELSEIF E1EDK02-QUALF = '012'.
                  W_datum1 = E1EDK02-datum.
                ENDIF.
              ENDLOOP.
    endif.
    IF W_datum1 GT W_datum2.
              W_datum1 = W_datum2.
    W_E1EDK02-DATUM = W_datum1.
    int_edidd-segnam = 'E1EDK02'.
    move  W_E1EDK02-datum  to  int_edidd-sdata.
    APPEND int_edidd.
        MODIFY int_edidd INDEX hilfe_tabix
       lv_flag = 'X'.
              CLEAR: W_datum1,W_datum2.
              EXIT.
             ENDIF.
           ENDIF.

  • Discoverer 4.1.48.08 - Data not populating

    Hi All,
    I have created a package with few functions, and global variables. I am using one of the function from the package to initialize the values to the global variables, I
    have registered the same function in discoverer. I have created a view in which one or more of the where clause is using the values returned by the other functions of the package, the values returned by the functions depends on the parameter for which i am passing through the desktop edition for which i want the report.
    Now the concern is that, i am able to see the output of the report for which i am passing the value to the parameter, but in one of the column, the value is not populating, it shows null, then if i press the refresh button again, the value is populating to the column, this is happening for the first time when i log-in and run the report.
    What could be the reason, why the value is not populating to the column for the first time, is there any solution?
    I want to get rid of pressing the refresh button again.
    Note: My view consists of multiple sql qrys using union operator, and each one of the sql qry brings the value to the column using the package functions.
    Thanks & Regards,
    Vinod S Poal

    Hi
    The problem i sthat the function in the custom folder evaluated by the Oracle fisrt and after that are evaluated the functions which sets the global variables from the parameters.
    So if you open the workbook nothing selected but the global variables has set and the next time you got the result with the previos parameters.
    If you change the parameters it wouldn't change the result set only if you refresh it again without changing the parameters.
    This is not a good solution for using parameters in custom folders. As I know there is no good solution for this problem yet.
    Ott Karesz
    http://www.trendo-kft.hu

  • Configuartion data is not populated using BAPI_SALESORDER_CREATEFROMDAT2

    Hi All,
    I am using BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order and to add the characteristics for my material in the configuration.
    my code for configuration to BaPI
        w_order_cfgs_ref-posex = '000010'.
        w_order_cfgs_ref-config_id = '1'.
        w_order_cfgs_ref-root_id = '00000001'.
        w_order_cfgs_ref-complete = 'T'.
        w_order_cfgs_ref-consistent = 'T'.
        w_order_cfgs_ref-sce = '1'.
        w_order_cfgs_ref-kbname = w_sdsales_sap-matnr.
        w_order_cfgs_ref-kbversion = '1'.
        append w_order_cfgs_ref to i_order_cfgs_ref.
    INSTANCE
        w_order_cfgs_inst-config_id = '1'.
        w_order_cfgs_inst-inst_id =  '00000001' .
        w_order_cfgs_inst-obj_type = 'MARA'.
        w_order_cfgs_inst-class_type = '300'.
        w_order_cfgs_inst-complete = 'T'.
        w_order_cfgs_inst-consistent = 'T'.
       w_order_cfgs_inst-OBJ_TYPE = .
        w_order_cfgs_inst-obj_key = w_sdsales_sap-matnr.
        append w_order_cfgs_inst to i_order_cfgs_inst.
        w_order_cfgs_part_of-config_id = '1'.
        w_order_cfgs_part_of-inst_id = '00000001' ..
        w_order_cfgs_part_of-obj_type = 'MARA'.
        w_order_cfgs_part_of-class_type = '300' .
        w_order_cfgs_part_of-obj_key = w_sdsales_sap-matnr .
        append w_order_cfgs_part_of to i_order_cfgs_part_of.
    *characteristics value
        w_order_cfgs_value-config_id = '2'.
        w_order_cfgs_value-inst_id = '00000001'.
        w_order_cfgs_value-charc = 'VC_MODEL'(025).
        w_order_cfgs_value-value = w_sdsales_sap-model.
        w_order_cfgs_value-valcode = '1'.
        append w_order_cfgs_value to i_order_cfgs_value.
    It is creating sales order but configuration data is not getting populated in the sales order item.
    Please advise me
    Thanks in adv
    sangeetha

    hi see this
    SAP Note number  774346

  • Withholding Tax not populated using BAPI

    Hello
    We are using BAPI to post invoices instead of FB60 but noticed a difference in the withholding tax data.
    Using FB60 when we provide a N1, the tax code shows up as starand the withholding tax exempt is populated along with the  withholding tax code from the vendor master.
    When we try to do the same using the BAPI providing it with N1, it does not populate the withholding tax exempt and withholding tax code fields
    We are using classing withholding tax.
    why the BAPI is behaving differently than FB60 and not picking up the standard configuration
    This is priority as we are in Production and invoices which dont have these withholding  tax information are not getting picked up for payment.
    Thanks

    Solved myself...using the ACCOUNTPAYABLE-W_TAX_CODE field to populate the tax code which is stored on the Vendor Master

  • Chain and store data not populating properly in BPARTNER

    Hi all,
    There is a field 0bpartner2 in the data source name 0BP_RELATIONS_ATTR. This field is also there in DSO1 which fetches the data from the mentioned datasource. Then using routines this field 0bpartner2 splits into two-->chain and store which are getting populated in the next level of DSO, DSO2 which finally goes into 0bpartner infoobject.
    But for two particular bp nos the values of chain and store are not getting populated.
    Checked in RSA3, the data is OK, but in the PSA level the data is not there.
    This is happening only for this two particular bp nos.
    Kindly help.

    Hi,
    at info package data selection don't have selection please check the below options.
    1. go to ECC -> enter the t code- RSA5 -> select the data source -> go to change mode -> select the check boxes possibility.
    2. if not there come to BI system select the data source go to change mode -> select selection menu -> browse and choose the X- selection possible.
    now it available selections at info package - while seeing the RSA3 data give the selection at info package
    Thanks,
    Phani.

  • Routing Long text not populated using LSMW

    I need help with the ROUTING LONG TEXT using LSMW. I'm using the standard LSMW direct input program /SAPDMC/SAP_LSMW_IMP . I'm confused with NAME field while loading the data. I have tried to create the routing long text manually after successful creation i opened the Longtext at header screen and opened GOTO--> HEADER there i have seen TEXT NAME is constructed based on CLIENT || N || GROUP || GROUPCOUNTER || INTERNAL_COUNTER (CLIENT||N||PLNTY||PLNNR||PLNAL||ZAEHL - field names)  I used the same logic to construct the test data for another routings which were created and doesn't have the long text. I have run the lsmw program and executed successfully but when i open the routing in CA03 i dont see the long text populated.
    Test data used looks like this:
    OBJECT   NAME TDID SPRAS TEXTFORM TEXTLINE
    ROUTING N500000890100000001 PLKO E * THIS IS A TEST1
    ROUTING N500000890100000001 PLKO E * THIS IS A TEST2
    ROUTING N500000890100000001 PLKO E * THIS IS LINE3
    ROUTING N500000910100000001 PLKO E * LONGTEXT1
    ROUTING N500000910100000001 PLKO E * LONGTEXT2
    My question here is do i need to construct the NAME as i have mentioned above or do i need to just send the Routing Group number into the file for the NAME field. Help me understand what do i need to populate into NAME field.
    Please help with the mistake i have done.
    Pretty much appriectiated for your replies.

    You asked the same question in two different forums multiple times:
    Standard LSMW to load Routing Long text
    Re: LSMW : Long text not visible after the import of data
    Please use same one thread for one question.
    I gave you most of the needed information assuming you know how to do LSMW in the first thread itself.
    You need to have the following fields in your source structure in addition to other fields like long text
    MANDT
    PLNTY
    PLNNR
    PLNAL
    ZAEHL
    In the step Maintain Field Mapping and Conversion Rules  assign the source field MANDT to the variable NAME and then again place the cursor on the variable NAME and assign variable PLNTY, (now you have two source field assigned to same variable) similarly assign all the remaining 3 source fields PLNNR, PLNAL, ZAEHL. (now you have 5 source field assigned to same variable).
    Now select the variable NAME by placing the cursor click on Rule (Insert Rule) and select the radio button Concatenation .
    Make sure that in  your input file you have leading zeros for PLNNR PLNAL and ZAEHL etc. like below
    50000089, 01, 00000001
    Also, you don't need maintain the value of OBJECT, TDID, SPRAS, TEXTFORM as source fields. You can directly maintain them as constants in Maintain Field Mapping and Conversion Rules by click on the push button Rule .

  • Data not populated when run from a different machine

    I have a stored procedure which populates a table
    The stored procedure when it is run on my machine using SQL Plus populates data correctly in a table.
    I select using SQL PLUS and it shows that the data is there
    But when I run the SAME procedure ( SAME schema, SAME parameters, same everything ) from a
    different machine using SQL PLUS , it shows that "PL/SQL procedure completed successfully", BUT does not populate
    the table.
    SAme thing is happening for all other procedures too.
    Why is this happening
    Please help
    Ashwin

    I checked using this
    SELECT * FROM V$PARAMETER WHERE LOWER(NAME) ='nls_language'
    AND I get same results on both machines
    NUM NAME TYPE
    VALUE
    ISDEFAULT ISSES ISSYS_MOD ISMODIFIED ISADJ DESCRIPTION
    UPDATE_COMMENT
    96 nls_language 2
    AMERICAN
    TRUE TRUE FALSE FALSE FALSE NLS language name
    Thanks
    Ashwin N.

  • Baseline Date not chaning using BADI FAGL_SET_SEGMENT

    If someone has worked with this badi FAGL_SET_SEGMENT, can you please help.
    I'm trying to change the baseline date for the vendor invoice created using FB60.  I implemented the above BADI and changed the value of Baseline Date and Cash discount days based on the business logic. But the change is not reflecting in the document.
    Please help.
    Thank you.

    I understand the proposed solution but I do not think this should be a custom coding requirement.  The underlying assumption of the invoice payment term is that goods / services have been delivered.  The transfer of title should be a configurable trigger for the vendor payment baseline date.  Many consumer goods are shipped FOB to the customer destination with a 3-4 week shipping timeline.  Normal payment terms run 30-45 days.  We want our baseline date to start when the title transfers.  I can understand the GR document does not take the place of a proof of delivery but it is much closer to the the point where we actually transfer title then when we normally receive the invoice (2 days after vendor shipment).  Of course I have been through the argument that the invoice document date should be manipulated but I do not buy into it because it envokes a form of dispute management on a standard flow.  Initially I went down the path of GR based IV which follows the same logic as above for the release of ultimate payment.  I am confused as to why the standard solution does not provide an equivalent configuration for baseline date computation.  Can anyone explain why this is the case or whether I am just missing something obvious?

  • Maybe you are looking for

    • How to get application name from a receive location?

      Hi all, I am trying to do a custom error application, and I want to notify system admin users that "the receive port XXXX has stopped in application YYYYYY". Right now I do know which receive location that is being suspended. But I am not being able

    • System is looking in the wrong place for modules.[SOLVED]

      I did a pretty big system update last night that ended up breaking a pretty big portion of everything. No usb, network interfaces, trackpad, etc. Checking logs the biggest issue is clearly this: modprobe: FATAL: Could not load /lib/modules/2.6.26-ARC

    • Mac Mini Reboot Hang

      I'm writing this post because I am experiencing an intermittent hang on boot on my Late 2009 MacMini. The specs are: Processor: 2.25 GHz Memory: 2 GB Graphics: NVIDIA GeForce 9400 256 MB Software: OS X 10.8.5 (12F45) More times than not, when I reboo

    • JAI image resize...

      Hi there... I'm working with JMF to capture images from an IP Camera. And this is kinda done. My problem now, it that, before I should work with the frames I get, I need to resize the images to certain dimensions, and this is indeed a big problem. I

    • Exam 1Z0-007

      I have appeared "Exam 1Z0-007 Introduction to Oracle9i: SQL" on 2008. After that I was unable to appear other exams related to Oracle certification. Now if I appear "Oracle Database 10g: Administration I 1Z0-042", then will I be able to get Oracle Ce