Error field is not getting populated into corresponding str. in Zrfc

hi,
In case of error in PO creation i am not getting all the data i nto correponding structure..
*data it_head type standard table of bapimepoheader.
  DATA ls_head TYPE bapimepoheader.
  DATA it_headx TYPE STANDARD TABLE OF bapimepoheaderx.
  DATA ls_headx TYPE bapimepoheaderx.
  data : it_temp_ekpo type zpo_item_60 occurs 0 with header line.
  DATA it_item TYPE STANDARD TABLE OF bapimepoitem.
  DATA ls_item TYPE bapimepoitem.
  DATA it_itemx TYPE STANDARD TABLE OF bapimepoitemx.
  DATA ls_itemx TYPE bapimepoitemx.
  DATA it_sch TYPE STANDARD TABLE OF bapimeposchedule  .
  DATA ls_sch TYPE bapimeposchedule.
  DATA it_schx TYPE STANDARD TABLE OF bapimeposchedulx.
  DATA ls_schx TYPE bapimeposchedulx.
  DATA it_poact TYPE STANDARD TABLE OF bapimepoaccount.
  DATA ls_poact TYPE bapimepoaccount.
  DATA it_poactx TYPE STANDARD TABLE OF bapimepoaccountx.
  DATA ls_poactx TYPE bapimepoaccountx.
  DATA it_cond TYPE STANDARD TABLE OF bapimepocond.
  DATA ls_cond TYPE bapimepocond.
  DATA it_adrc TYPE STANDARD TABLE OF bapimepoaddrdelivery.
  DATA st_adrc TYPE bapimepoaddrdelivery.
  DATA it_condx TYPE STANDARD TABLE OF bapimepocondx.
  DATA ls_condx TYPE bapimepocondx.
  DATA it_popart TYPE STANDARD TABLE OF bapiekkop.
  DATA ls_popart TYPE bapiekkop.
  data : ret2 type bapiret2 occurs 0 with header line.
  DATA ls_ekko TYPE zpo_data_60.
  DATA st_ekko TYPE zpo_data_60.
  DATA ls_ekpo TYPE zpo_item_60.
  DATA st_ekpo TYPE zpo_item_60.
  DATA:     ls_adrc TYPE zpo_adrc_60,
          ls_ekkn TYPE zpo_ekkn_60,
         ls_eket TYPE zpo_eket_60,
          ls_ekbe TYPE zpo_ekbe_60,
          w_purchaseorder type BAPIMEPOHEADER-PO_NUMBER.
  LOOP AT lt_ekpo INTO st_ekpo.
    ls_ekpo = st_ekpo.
    AT NEW ebeln.
      READ TABLE lt_ekko WITH KEY ebeln = ls_ekpo-ebeln.
      IF sy-subrc = 0.
        ls_head-comp_code = lt_ekko-bukrs.
        ls_head-doc_type = lt_ekko-bsart.
        ls_head-vendor = lt_ekko-lifnr.
        ls_head-purch_org = lt_ekko-ekorg.
        ls_head-pur_group = lt_ekko-ekgrp.
        ls_head-pmnttrms = lt_ekko-zterm.
        ls_head-exch_rate = lt_ekko-wkurs.
      ls_head-incoterms1 = lt_ekko-inco1.
     ls_head-incoterms2 = lt_ekko-inco2.
        ls_head-currency = lt_ekko-waers.
        ls_head-PO_NUMBER = lt_ekko-ebeln.
*append ls_head to it_head.
*Parameter: POHEADERX
        ls_headx-comp_code = 'X' .
        ls_headx-doc_type = 'X' .
        ls_headx-vendor = 'X' .
        ls_headx-purch_org = 'X'.
        ls_headx-pur_group = 'X' .
        ls_headx-pmnttrms = 'X'.
        ls_headx-currency = 'X'.
        ls_headx-exch_rate = 'X'.
      ls_headx-incoterms1 = 'X'.
      ls_headx-incoterms2 = 'X'.
        ls_headx-currency = 'X'.
        ls_headx-PO_NUMBER = 'X'.
*append ls_headx to it_headx.
      ENDIF.
    ENDAT.
    ls_item-po_unit = ls_ekpo-meins.
    ls_item-po_item  = ls_ekpo-ebelp.
    ls_item-material = ls_ekpo-matnr.
    ls_item-price_unit = ls_ekpo-peinh.
    ls_item-orderpr_un = ls_ekpo-bprme.
    ls_item-net_price = ls_ekpo-netpr.
    ls_item-matl_group = ls_ekpo-matkl.
   ls_item-short_text = ls_ekpo-txz01.
    ls_item-plant = ls_ekpo-werks.
    ls_item-stge_loc = ls_ekpo-lgort.
    ls_item-quantity = ls_ekpo-menge.
    ls_item-acctasscat = ls_ekpo-knttp.
    ls_item-gr_basediv  = ls_ekpo-webre.
    ls_item-vend_mat  = ls_ekpo-idnlf.
    ls_item-no_more_gr = ls_ekpo-elikz.
    ls_item-final_inv  = ls_ekpo-erekz.
    ls_item-gr_ind   = ls_ekpo-wepos.
    ls_item-gr_non_val = ls_ekpo-weunb.
    ls_item-conv_num1   = ls_ekpo-bpumz.
    ls_item-conv_den1   = ls_ekpo-bpumn.
    ls_item-ir_ind      = ls_ekpo-repos.
    ls_item-unlimited_dlv = ls_ekpo-uebtk.
    ls_item-reminder1 = ls_ekpo-mahn1.
    ls_item-reminder2  = ls_ekpo-mahn2.
    ls_item-reminder3   = ls_ekpo-mahn3.
    ls_item-vend_mat  = ls_ekpo-idnlf.
    ls_item-no_more_gr = ls_ekpo-elikz.
    ls_item-final_inv = ls_ekpo-erekz.
    ls_item-gr_ind  = ls_ekpo-wepos.
    append ls_ekpo to it_temp_ekpo.
*Parameter: POITEMX
    ls_itemx-po_unit = 'X'.
    ls_itemx-po_item  = ls_ekpo-ebelp.
    ls_itemx-material = 'X'.
    ls_itemx-price_unit = 'X'.
    ls_itemx-orderpr_un = 'X'.
    ls_itemx-net_price = 'X'.
    ls_itemx-matl_group = 'X'.
   ls_itemx-short_text = 'X'.
    ls_itemx-plant = 'X'.
    ls_itemx-stge_loc = 'X'.
    ls_itemx-quantity = 'X'.
    ls_itemx-acctasscat = 'X'.
    ls_itemx-gr_basediv  = 'X'.
    ls_itemx-vend_mat  = 'X'.
    ls_itemx-no_more_gr = 'X'.
    ls_itemx-final_inv  = 'X'.
    ls_itemx-gr_ind   = 'X'.
    ls_itemx-gr_non_val = 'X'.
    ls_itemx-conv_num1   = 'X'.
    ls_itemx-conv_den1   = 'X'.
    ls_itemx-ir_ind      = 'X'.
    ls_itemx-unlimited_dlv = 'X'.
    ls_itemx-reminder1 = 'X'.
    ls_itemx-reminder2  = 'X'.
    ls_itemx-reminder3   = 'X'.
    ls_itemx-vend_mat  = 'X'.
    ls_itemx-no_more_gr = 'X'.
    ls_itemx-final_inv = 'X'.
    ls_itemx-gr_ind  = 'X'.
    APPEND ls_itemx TO it_itemx.
    APPEND ls_item TO it_item.
    READ TABLE lt_eket INTO ls_eket WITH KEY ebeln = ls_ekpo-ebeln
                                             ebelp = ls_ekpo-ebelp.
    IF sy-subrc = 0.
*Parameter: POSCHEDULE
      ls_sch-po_item = ls_ekpo-ebelp.
      ls_sch-sched_line = LS_EKET-ETENR.
      ls_sch-delivery_date = ls_eket-eindt.
      ls_sch-quantity = ls_ekpo-menge .
      APPEND ls_sch TO it_sch.
    ENDIF.
*Parameter: POSCHEDULEX
    ls_schx-po_item = ls_ekpo-ebelp.
    ls_schx-sched_line = LS_EKET-ETENR.
    ls_schx-po_itemx = 'X' .
    ls_schx-sched_linex = 'X'.
    ls_schx-delivery_date = 'X'.
    ls_schx-quantity = 'X' .
    APPEND ls_schx TO it_schx.
read table lt_ekkn into ls_ekkn with key ebeln = ls_ekpo-ebeln
                                         ebelp = ls_ekpo-ebelp.
*Parameter: POACCOUNT
IF SY-SUBRC = 0.
    ls_poact-po_item = ls_ekpo-ebelp.
    ls_poact-serial_no = sy-tabix.
    ls_poact-quantity = ls_ekpo-menge.
    ls_poact-gl_account = ls_ekkn-sakto.
    ls_poact-costcenter = ls_ekkn-KOSTL.
   ls_poact-co_area = '1000'.
    ls_poact-tax_code = ls_ekkn-mwskz.
    APPEND ls_poact TO it_poact.
ENDIF.
*Parameter: POACCOUNTX
    ls_poactx-po_item = 'X' .
    ls_poactx-serial_no = sy-tabix .
    ls_poactx-quantity = 'X' .
    ls_poactx-gl_account = 'X' .
    ls_poactx-costcenter = 'X' .
   ls_poactx-co_area = 'X' .
    ls_poactx-tax_code = 'X' .
    APPEND ls_poactx TO it_poactx.
*Parameter: POCOND
    ls_cond-itm_number = ls_ekpo-ebelp.
    ls_cond-cond_st_no = '001' .
    ls_cond-cond_type = 'PB00' .
    ls_cond-cond_value = '79.900000000' .
    ls_cond-currency = ls_ekko-waers.
    ls_cond-currency_iso = 'USD'.
    ls_cond-cond_unit = 'KG' .
    ls_cond-cond_p_unt = '1' .
    ls_cond-change_id = 'U' .
    APPEND ls_cond TO it_cond.
*Parameter: POCONDX
    ls_condx-itm_number = ls_ekpo-ebelp.
    ls_condx-cond_st_no = '000' .
    ls_condx-itm_numberx = 'X' .
    ls_condx-cond_type = 'X' .
    ls_condx-cond_value = 'X' .
    ls_condx-currency = 'X' .
    ls_condx-change_id = 'X' .
    APPEND ls_condx TO it_condx.
*Parameter: POPARTNER,
   ls_popart-partnerdesc = 'OA' .
   ls_popart-langu = 'EN' .
   ls_popart-buspartno = '0000001100' .
   ls_popart-partnerdesc = 'GS' .
   ls_popart-langu = 'EN' .
   ls_popart-buspartno = '0000001200' .
   ls_popart-partnerdesc = 'IP' .
   ls_popart-langu = 'EN' .
   ls_popart-buspartno = '0000001000'.
   APPEND ls_popart TO it_popart.
Address data
    READ TABLE lt_adrc  INTO ls_adrc WITH KEY addrnumber = ls_ekko-adrnr.
    IF sy-subrc = 0.
      st_adrc-addr_no = ls_adrc-addrnumber.
      st_adrc-name = ls_adrc-name1.
      st_adrc-street = ls_adrc-street.
      st_adrc-district = ls_adrc-city2.
      st_adrc-postl_cod1 = ls_adrc-post_code1.
      st_adrc-city = ls_adrc-city1.
      st_adrc-country = ls_adrc-country.
      st_adrc-region = ls_adrc-region.
      APPEND st_adrc TO it_adrc.
    ENDIF.
    AT END OF ebeln.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
         poheader                     =  ls_head
         poheaderx                    = ls_headx
  POADDRVENDOR                 =
  TESTRUN                      =
  MEMORY_UNCOMPLETE            =
  MEMORY_COMPLETE              =
  POEXPIMPHEADER               =
  POEXPIMPHEADERX              =
  VERSIONS                     =
  NO_MESSAGING                 =
  NO_MESSAGE_REQ               =
  NO_AUTHORITY                 =
  NO_PRICE_FROM_PO             =
IMPORTING
   EXPPURCHASEORDER              = w_purchaseorder
  EXPHEADER                    =
  EXPPOEXPIMPHEADER            =
       TABLES
         return                       = ret2
         poitem                       = it_item
         poitemx                      = it_itemx
         poaddrdelivery               = it_adrc
         poschedule                   = it_sch
         poschedulex                  = it_schx
         poaccount                    = it_poact
  POACCOUNTPROFITSEGMENT       =
         poaccountx                   = it_poactx
  POCONDHEADER                 =
  POCONDHEADERX                =
         pocond                       = it_cond
         pocondx                      = it_condx
  POLIMITS                     =
  POCONTRACTLIMITS             =
  POSERVICES                   =
  POSRVACCESSVALUES            =
  POSERVICESTEXT               =
  EXTENSIONIN                  =
  EXTENSIONOUT                 =
  POEXPIMPITEM                 =
  POEXPIMPITEMX                =
  POTEXTHEADER                 =
  POTEXTITEM                   =
  ALLVERSIONS                  =
        popartner                    = it_popart
  POCOMPONENTS                 =
  POCOMPONENTSX                =
  POSHIPPING                   =
  POSHIPPINGX                  =
  POSHIPPINGEXP                =
if w_purchaseorder is not initial.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       LOOP AT ret2 WHERE type = 'S'.
            lt_success_po-ebeln =   ret2-message_v2.
            lt_success_po-type = ret2-type.
            lt_success_po-message = ret2-message.
            append lt_success_po.
            clear : lt_success_po.
          ENDLOOP.
else.
append lt_ekko to lt_ekko_error.
append it_temp_ekpo to lt_ekpo_error.
append ls_eket to lt_eket_error.
append ls_adrc to lt_adrc_error.
append ls_ekkn to lt_ekkn_error.
*loop at ret2 where type = 'E'.
**move-corresponding lt_ekko to lt_error_po.
**move-corresponding ls_ekpo to lt_error_po.
**move ret2-type to lt_error_po-type.
**move ret2-message to lt_error_po-message.
*append
**lt_error_po.
**clear :
**lt_error_po.
endloop.
  endif.
  CLEAR : ls_ekko,
              st_ekko,
              ls_ekpo,
              st_ekpo,
              ls_ekkn,
              ls_ekbe,
              ls_eket.
    ENDAT.
  ENDLOOP.
ENDFUNCTION.
Message was edited by:
        ruban R

You must get all the messages into
RET2
table.
You need to fill your ZRFC's RETURN table with the data from RET2 after the FM 'BAPI_PO_CREATE1' call. Because your BAPI is calling mulitple times and henceforth your RET2 is being refreshed and contains the last executed BAPI's return message.
So,
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
EXCEPITON
LOOP AT RET2.
  MOVE-CORRESPONDING RET2 TO IT_RETRUN.   " << This is the table which you need to pass back to ZRFC
  APPEND IT_RETURN.
ENDLOOP.
Regards,
Naimesh Patel

Similar Messages

  • Assignment field is not getting populated in KSB1 for posting key 50

    Hi All,
    We are uploading entries thru excel in SAP.
    For posting key 50 assignment field is not getting populated in KSB1.
    But for posting key 40 it is getting populated correctly.
    All setting (FSG, posting key details) are same for both the keys.
    No substitution defined in SAP.
    There is no issue for FBL3N for both the posting keys, only issue with KSB1.
    Any idea what could be the reason for this?
    Thank you.
    Akash

    KSB1 is CCtr report..
    if it is revenue normally it will be treated as statistical posting in CCtr accounting- for the cost element when it is defined as revenue element.. - check Cost elements - whether it is Cost and cost reducing or revenue element--
    possibility this can be one of the reason.
    check and confirm

  • User defined fields does not get added into database

    Hello Experts
                              User defined fields does not get added into database , when i click add button it
    shows data added sucessfully , but when i check data base no entry is made , only entry is made for
    B1 fields , like DocEntry ,DocNum etc.., no entry is made for U_fields..
    I have check every thing databound is also set to true
    Actually first few 6 data was added properly but now its not geeting added for user fields
    I have used 2 document row  child table for 2 matrix and for remaining Document table
    What might be the problem
    reply soon
    plz suggest

    Hello sir
    I have checked Default form , in that entry is made into database
    but running the form in screen painter in preview mode or through coding it does not get added for user field
    this id my binding code
    LoadFromXML("updateopd.srf")
                oForm = SBO_Application.Forms.Item("updopd")
                oForm.DataBrowser.BrowseBy = "txtpatid"
                'Adding combo in Obervation
                oItem = oForm.Items.Item("txtpatid")
                oEdit2 = oItem.Specific()
                oEdit2.DataBind.SetBound(True, "@UPDATE", "U_PID")
                oItem = oForm.Items.Item("txtmnane")
                oEdit3 = oItem.Specific()
                oEdit3.DataBind.SetBound(True, "@UPDATE", "U_FName")
                oItem = oForm.Items.Item("txtlname")
                oEdit3 = oItem.Specific()
                oEdit3.DataBind.SetBound(True, "@UPDATE", "U_LName")
    Plz suggest

  • Currency Field is not getting populated in 0FI_AR_3 Data source

    Hi Friends,
    I have unchecked the currency  fields DMBE2 , DMBE3 and curresponding currency type fields HWAE2
    and HWAE3 in the data source 0FI_AR_3 and activated the DS.
    when i am checkin the data using extract checker rsa3 , the fields DMBE2 and DMBE3 are filled with the amount but the corresponding currency types are not getting populated in HWAE2
    and HWAE3 fields.the currency field are maintened in R/3 side.
    Please suggest.
    Thanks

    I was checking this issue, and all the enhancements with fields need to
    have a customer-exit to be populated.
    If those fields are not delivered by SAP and are not in the original
    datasource(RSA5) from Business content, this is related to an enhancement.
    We can only see these fields in the datasource enhanced through RSA6.
    To have the proper values assigned to those field, you should write an
    User Exit program. This program must be created to fill the enhanced
    fields as they are not filled in the same way as the SAP delivered
    fields.More details about this process you can check note 576886.
    576886-Change to user-defined fields not extracted.
    This SAO Note is an example for some datasources regarding what should be
    done.
    Thanks,
    Walter Oliveira.

  • SGTXT field is not getting populated in 315 document

    While placing stock in storage location through MIGO (movement 315) with reference to movenet 313 document, TEXT (SGTXT) field which is entered in 313 document is not getting populated from referred document.

    Hi,
    This is Standard SAP functionality.The Text does not get automatically populated from the referred document. You will have to use enhancement for the same. Use BADI - MB_MIGO_ITEM_BAdI

  • On Change of Status filed as Rejected, Reason Field does not get populated

    Hi,
    I have issue while setting the Status field on UI.
    I have created WF which gives the user an option to ACCEPT OR REJECT the work item assigned to the user.
    But if the Status is REJECTED, there is another field 'REASON ',that has to be populated based on the status as 'REJECTED'.
    The WF shows the status as IN PROCESS for the Step REASON once the Status is REJECTED.
    The WF is getting stuck for long time and the status of the Step REASON  is not getting changed to Completed.
    Regards,
    Tarmeem.

    Hi,
    Are you using the std. Task TS20000139 to populate the comments?
    Is it a Dialog Task, Is it populated correctly once the Rejection button occurred. Check the binding of that Task
    Regards,
    Surjith

  • Segment fields do not get populated from second IDoc onwards.

    This is a xml file to idoc mapping scenario.
    Source XML Structure.                                                                               
    <MT_message type> ( Occurs 1 )                                                     
         <session header> ( Occurs 1)                                                                               
    <session header/>
          < Header >   ( Occurs 1 to unbounded )
                < Document Header > ( Occurs 1 )
                      Currency
                      <Line Item> (occurs 1 ....unbounded)
                      <Line Item/>
                      <Line Item> (occurs 1 ....unbounded)
                       <Line Item/>
                < Document Header/>
          < Header/>
          < Header >   ( Occurs 1 to unbounded)
                < Document Header > ( Occurs 1 )
                      Currency
                      <Line Item> (occurs 1 ....unbounded)
                      <Line Item/>
                      <Line Item> (occurs 1 ....unbounded)
                       <Line Item/>
                < Document Header/>
          < Header/ >
    < MT_messagetype/>
    Each Header tag creates an IDoc of the basic type acc_documnet01.
    This IDoc has a segment E1BPACCR09 which is repeated for every ocurrence of line item in the header.
    Lineitems -
    > E1BPACCR09.
    The currency field in this segment comes from the currency field in the documnet header tag of the source xml structure.All other fields are mapped from Line items tag of XML source structure.
    When i test the mapping,with the exact source structure as above,
    2 IDocs are output, (for two header tags)
    First IDoc -: For two line items in XML source , 2 E1BPACCR09 are created in IDoc and the currncey field is mapped correctly.
    Second IDoc-: For two line items in XML source, 2 E1BPACCR09 are created in IDoc but the currncey field is not mapped at all neither does the currency fieldname appear with null value in the output IDoc.
    Can someone help me with this issue?
    Himani
    Edited by: Himani Pandey on Jul 10, 2008 5:10 PM

    Hey
    You need to use copyValue standard function,to repeat the source side to occur as many times as receiver side.else it will populate only the first occurence not after that
    Thanx
    Aamir

  • Work area field value not getting populated in table control grid.

    Hi all,
    I am currently facing an issue where I have declared a variable and have fetched the workarea field name in it. To be exact, the variable contains the workarea name whose value I am finally populating to the table control. Now although the workarea name when manually copied and pasted in field name in debugging mode exhibits the value of the it, Im unable to fetch the same value in the variable as I have only the work area name in it. I need the value of the workarea-field to be in the variable.Please provide your valuable suggestions for this issue...
    Regards,
    Edited by: Vishwanath Sreedharen on Jan 2, 2012 3:25 PM

    Hi Nabheet,
    Please consider the below example...
    DATA: l_var(30) TYPE C.
    CONCATENATE 'wa' '-' I_FIELD2-NAME INTO l_var.
    The i_field2-name contains the name of a custom table field CP_CUSTOM_GRP. So now the l_var contains wa_cp_custom_grp.
    Now consider the wa_cp_custom_grp has a value 'BA'.
    Now my issue is the l_var contains wa_cp_custom_grp but not its value(too obvious)... Would like to know whether is there a way through which the value of this wa_cp_custom_grp  'BA' could be populated to the variable l_var...

  • Field in ALV not getting populated

    Hi all,
               I need some help. I am displaying an ALV with fields.
        GROUP     G/L ACCOUNT     Local currency       USD     Period
           100              10                       5                       5           12
           100               11                      6                       4            12
      now i have added an extra field TXT20 in the as last field of structure
        GROUP     G/L ACCOUNT     Local currency       USD     Period      TXT
           100              10                       5                       5           12          aa
           100               11                      6                       4            12         ab
    TXT should come as 3rd coloumn in the output.
    EXAMPLE:
         GROUP     G/L ACCOUNT       TXT      Local currency  USD     Period     
           100              10                      aa                  5              5           12         
           100               11                     ab                   6             4            12        
    I have changed the coloumn positions in the field catalog accordingly and I have not written or changed any select queries from earlier output.
    now my problem is PERIOD field is not getting populated in the ALv,the data is visible in the IT_FINAL which I am passing to Reuse_alv_grid_display. the field catalog is also getting build properly.
    so plz suggest some changes so that I can move ahead.

    Hi
      I don't know what's the reason and now I have no environment to test it, but you can try other way:
      1. define your fieldcate one by one as the sequence of your output like
          GROUP         G/L ACCOUNT          TXT           Local currency         USD          Period
          In this situation, you needn't use component -- position of fieldcate structure. Pay attention to
          fieldname in upper case.
       2. If only doing step1 has no effect, then adjust your structure of internal table. Sequence your
           component of IT_FINAL as the output field like step1.
       If still no effect, please let me know.

  • Workday field not getting populated in BAPI_ENTRYSHEET_CREATE

    Hi MM gurus,
    I am trying to upload service entry sheets using bapi's , i checked the note 420334 and its working fine now.But, i want to populate  the workday field also in the service entry sheets, but this field is not getting populated even if i enter this field in the test data directory.
    Can anyone give me the reason for this?

    Hi
    Are you trying to populate the workdays field using BAPI in SE37 transaction??
    If you are executing the BAPI in SE37 then the data would not get updated in database.
    You need to run the BAPI FM & another BAPI "BAPI_TRANSACTION_COMMIT" in sequence in SE37 to post the data in database.
    I hope this helps.
    Thanx
    Prasad

  • Fom field not getting populated

    Hi,
    I have a field in the form role(multi select field). The value of another field in the form 'abc' is depedent on role selection. I have a rule with a switch and case statements for this. In the rule i am using
    <Rule>
    <switch>
    <ref>role</ref>
    <case>
    </case>
    </switch>
    </Rue>
    I tested the rule and it's working good.
    Now i am calling the rule in the field 'abc':
    <Field name='abc>
    <block trace'true'>
    <Expansion>
    <rule name='xxx'/>
    </Expansion>
    </block>
    </Field>
    The prolem here is that, even after i select the role, this field is not getting populated. It is empty.
    Not sure what i am missing. Please help.
    Thanks,

    step1) when you are getting value in the field on which "abc" is dependent , how are you getting that value?you are getting this value in derivation or expansion???
    step2: write the code logic for field "abc" in Derivation instaed of expansion. That should help.
    Please let me know if you are still facing the problem.
    Warm Regards,
    G

  • Values not getting populated in the o/p

    Hi,
    I have a requirement,where in which I have to add MRP Controller(marc-dispo) and production scheduler(marc-fevor) fields in the selection screen and the same should be added in the o/p.These fields are not getting populated in the o/p,even if I give some values for these fields in the selection-screen.What would be the reason for this?
    Regards,
    Hema

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Default Value in a DFF is not getting populated in Self Service Page

    I had an issue in Self Service Page.
    In the SS page there is hidden mandatory field in DFF segment,which should get populated with a default select statement.
    But this field is not getting populated with the default values.
    But this is working fine in Forms , i.e the default value is populated in forms.
    Why the default value is not populated in Self Service Pages?
    For Eg: If there is a DFF "SAMPLE_DFF" which has some context with segment
    Context Code : GB_CODE
    Segment : "Enter the Group"
    and this segment is made required and defaulted with a select stmt (select stmt returns 'XXXXX')
    In forms if am not entering any value, then its defaulted to 'XXXXX'.
    But in Self Service this is not happening.
    Can anybody help me out...

    Actually, I have narrowed down the problem. It is not quite the same.
    DFF is Receivables, Address Information (Release 12). We have 2 attributes defined and we want the default value of the 2nd to be dependent on what the user selects in the 1st.
    So the default value of the 2nd is defined as a SQL Statement, select :$FLEX$.INDUSTRY_CODE from dual (where INDUSTRY_CODE is the value set name from the 1st).
    We know the syntax is correct because if we actually hardcode a default value in the 1st attribute (select 'BLAH' from dual), then we do see that the default value for the 2nd attribute fills in with BLAH as well. However, we do not want that. We want the user to choose a value for the 1st attribute from the LOV, and then have the 2nd attribute default to that same value. This is the part that does not seem to work in OAF, but definitely used to work in Forms.
    Any thoughts?
    Thanks much!

  • Initialization parameters not getting populated correctly during DBCA

    This problem is observed on Oracle 10.2.0.1 Linux x86 and RedHat Enterprise Linux 4 ES Update 5.
    I tried to use DBCA template file to create an Oracle database (see below for the template file content). The DB creation was successful, but the initialization parameters did not get populated into /oracle/u01/app/oracle/admin/ora10g/pfile/init.ora the way I would expect.
    ora10g.dbt template - file content
    ========================
    <DatabaseTemplate name="ora10g" description="" version="10.2.0.0.0">
    <CommonAttributes>
    <option name="ISEARCH" value="false"/>
    <option name="OMS" value="false"/>
    <option name="JSERVER" value="true"/>
    <option name="SPATIAL" value="false"/>
    <option name="ODM" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="IMEDIA" value="false"/>
    <option name="XDB_PROTOCOLS" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="ORACLE_TEXT" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="SAMPLE_SCHEMA" value="false"/>
    <option name="CWMLITE" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="EM_REPOSITORY" value="true">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="HTMLDB" value="false"/>
    </CommonAttributes>
    <Variables/>
    <CustomScripts Execute="false"/>
    <InitParamAttributes>
    <InitParams>
    <initParam name="audit_file_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/adump"/>
    <initParam name="background_dump_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/bdump"/>
    <initParam name="compatible" value="10.2.0.1.0"/>
    <initParam name="control_files" value="(&#8220;/u01/oradata/{DB_UNIQUE_NAME}/control01.ctl&#8220;, &#8220;/u02/oradata/{DB_UNIQUE_NAME}/control02.ctl&#8220;, &#8220;/u03/oradata/{DB_UNIQUE_NAME}/control03.ctl&#8220;)"/>
    <initParam name="core_dump_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/cdump"/>
    <initParam name="cursor_sharing" value="EXACT"/>
    <initParam name="db_block_size" value="16384"/>
    <initParam name="db_cache_size" value="1" unit="GB"/>
    <initParam name="db_domain" value=""/>
    <initParam name="db_file_multiblock_read_count" value="16"/>
    <initParam name="db_name" value="ora10g"/>
    <initParam name="job_queue_processes" value="10"/>
    <initParam name="large_pool_size" value="0" unit="MB"/>
    <initParam name="java_pool_size" value="0" unit="MB"/>
    <initParam name="log_buffer" value="64000000"/>
    <initParam name="open_cursors" value="300"/>
    <initParam name="pga_aggregate_target" value="1" unit="GB"/>
    <initParam name="processes" value="300"/>
    <initParam name="recyclebin" value="off"/>
    <initParam name="remote_login_passwordfile" value="EXCLUSIVE"/>
    <initParam name="sessions" value="335"/>
    <initParam name="sga_target" value="1600" unit="MB"/>
    <initParam name="shared_pool_size" value="128" unit="MB"/>
    <initParam name="sort_area_size" value="4194304"/>
    <initParam name="transactions" value="610"/>
    <initParam name="undo_management" value="AUTO"/>
    <initParam name="undo_retention" value="10800"/>
    <initParam name="undo_tablespace" value="UNDOTBS1"/>
    <initParam name="user_dump_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/udump"/>
    </InitParams>
    <MiscParams>
    <databaseType>MULTIPURPOSE</databaseType>
    <maxUserConn>20</maxUserConn>
    <percentageMemTOSGA>80</percentageMemTOSGA>
    <customSGA>false</customSGA>
    <characterSet>WE8ISO8859P1</characterSet>
    <nationalCharacterSet>AL16UTF16</nationalCharacterSet>
    <archiveLogMode>false</archiveLogMode>
    <initParamFileName>{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/pfile/init.ora</initParamFileName>
    </MiscParams>
    <SPfile useSPFile="false">{ORACLE_HOME}/dbs/spfile{SID}.ora</SPfile>
    </InitParamAttributes>
    <StorageAttributes>
    <ControlfileAttributes id="Controlfile">
    <maxDatafiles>100</maxDatafiles>
    <maxLogfiles>16</maxLogfiles>
    <maxLogMembers>3</maxLogMembers>
    <maxLogHistory>1</maxLogHistory>
    <maxInstances>8</maxInstances>
    <image name="control01.ctl" filepath="/u01/oradata/{DB_UNIQUE_NAME}/"/>
    <image name="control02.ctl" filepath="/u02/oradata/{DB_UNIQUE_NAME}/"/>
    <image name="control03.ctl" filepath="/u03/oradata/{DB_UNIQUE_NAME}/"/>
    </ControlfileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf">
    <tablespace>SYSAUX</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">500</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">10240</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/system01.dbf">
    <tablespace>SYSTEM</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">500</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">10240</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/temp01.dbf">
    <tablespace>TEMP</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">100</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">640</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf">
    <tablespace>UNDOTBS1</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">100</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">5120</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <TablespaceAttributes id="SYSAUX">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>4096</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="SYSTEM">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>-1</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>false</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/system01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="TEMP">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>true</temporary>
    <defaultTemp>true</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>2</allocation>
    <uniAllocSize unit="KB">1024</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>0</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>0</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>false</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/temp01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="UNDOTBS1">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>true</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">512</initSize>
    <increment unit="KB">512</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>8</minExtends>
    <maxExtends>4096</maxExtends>
    <minExtendsSize unit="KB">512</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <RedoLogGroupAttributes id="1">
    <reuse>false</reuse>
    <fileSize unit="KB">1048576</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="redo01.log" filepath="/u01/oradata/{DB_UNIQUE_NAME}/"/>
    </RedoLogGroupAttributes>
    <RedoLogGroupAttributes id="2">
    <reuse>false</reuse>
    <fileSize unit="KB">1048576</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="redo02.log" filepath="/u02/oradata/{DB_UNIQUE_NAME}/"/>
    </RedoLogGroupAttributes>
    <RedoLogGroupAttributes id="3">
    <reuse>false</reuse>
    <fileSize unit="KB">1048576</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="redo03.log" filepath="/u03/oradata/{DB_UNIQUE_NAME}/"/>
    </RedoLogGroupAttributes>
    </StorageAttributes>
    </DatabaseTemplate>
    Right after DB creation using DBCA, I would expect to see the following initialization paramaters populated in /oracle/u01/app/oracle/admin/ora10g/pfile/init.ora file that match the values I specified in the template file, but it appears that some initialization parameters are either not populated or incorrectly populated.
    db_cache_size=1g
    (this parameter entry is missing, not getting popultated at all)
    sga_target=1600m
    (sga_target populated with 1211105280)
    pga_aggregate_target=1g
    (pga_aggregate_target populated with 403701760)
    shared_pool_size=128m
    (this parameter entry is missing, not getting popultated at all)
    large_pool_size=0
    (this parameter entry is missing, not getting popultated at all)
    java_pool_size=0
    (this parameter entry is missing, not getting popultated at all)
    log_buffer=64000000
    (this parameter is correctly populated)
    transactions=610
    (this parameter is correctly populated)
    recyclebin=OFF
    (this parameter entry is missing, not getting popultated at all)
    cursor_sharing=EXACT
    (this parameter is correctly populated)
    Does anyone know why some initialization parameters did not get populated or incorrectly populated into init.ora?
    Thanks in advance.
    Ken

    Likely dbca currently uses the spfile to store the parameters, as you should do too.
    Apart from that the pfile Oracle uses is located in $ORACLE_HOME/dbs/init<sid>.ora
    It is possible this file is soft-linked to the file you mention.
    If it isn't the file you mention is not being used at all.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • OVS value not getting populated in field

    Hi Experts,
    Kindly suggest me a solution for the below given issue.
    I have added three custom fileds to an already existing WD Coponent.
    And also added OVS help as an input help method to these fields.
    If I right click on the WD application and TEST, the application opens in browser and I am able to select the value from OVS list.
    If I run the application by copying the URL and paste it in the browser, or clicking on Portal link, if we select the value from OVS list that value is not getting populated in the field.
    Below is the logic I have written.
    method ON_OVS_PAYMENT .
    TYPES:   BEGIN OF ty_payment,
                 payment TYPE char4,
                 desc    TYPE char30,
               END OF ty_payment.
    * declare data structures for the fields to be displayed and
    * for the table columns of the selection list, if necessary
      types:
        begin of lty_stru_input,
    *   add fields for the display of your search input here
          payment type char4,
    *      desc    type string,
        end of lty_stru_input.
      types:
        begin of lty_stru_list,
    *   add fields for the selection list here
          payment type char4,
          desc    type char30,
        end of lty_stru_list.
      data: ls_search_input  type lty_stru_input,
            lt_select_list   type standard table of lty_stru_list,
            ls_text          type wdr_name_value,
            lt_label_texts   type wdr_name_value_list,
            lt_column_texts  type wdr_name_value_list,
            lv_window_title  type string,
            lv_group_header  type string,
            lv_payment       type string,
            lt_payment       TYPE TABLE OF ty_payment,
            ls_payment       TYPE ty_payment,
            lv_short         TYPE string,
            lv_table_header  type string.
      field-symbols: <ls_query_params> type lty_stru_input,
                     <ls_selection>    type lty_stru_list.
      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
    *   in this phase you have the possibility to define the texts,
    *   if you do not want to use the defaults (DDIC-texts)
          ls_text-name = `PAYMENT`.  "must match a field name of search
          ls_text-value = `Terms of payment`. "wd_assist->get_text( `001` ).
          insert ls_text into table lt_label_texts.
          ls_text-name = `PAYMENT`.  "must match a field in list structure
          ls_text-value = `Terms of Payment`. "wd_assist->get_text( `002` ).
          insert ls_text into table lt_column_texts.
          ls_text-name = `DESC`.  "must match a field in list structure
          ls_text-value = `Description`. "wd_assist->get_text( `002` ).
          insert ls_text into table lt_column_texts.
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title = lv_window_title
                    table_header = lv_table_header
                    col_count    = 2
                    row_count    = 20 ).
        when if_wd_ovs=>co_phase_1.
          ovs_callback_object->context_element->get_static_attributes(
              importing static_attributes = ls_search_input ).
    *     pass the values to the OVS component
          ovs_callback_object->set_input_structure(
              input = ls_search_input ).
        when if_wd_ovs=>co_phase_2.
          if ovs_callback_object->query_parameters is not bound.
    ******** TODO exception handling
          endif.
          assign ovs_callback_object->query_parameters->*
                                  to <ls_query_params>.
          if not <ls_query_params> is assigned.
    ******** TODO exception handling
          endif.
    *     call business logic for a table of possible values
    *     lt_select_list = ???
          lv_short = <ls_query_params>-payment.
          CALL FUNCTION 'ZSIILESD001' DESTINATION 'LOGICALE22'
          EXPORTING
          i_payment             = lv_short
          TABLES
          ET_PAYMENT            = lt_payment.
        lt_select_list[] = lt_payment[].
          ovs_callback_object->set_output_table( output = lt_select_list ).
        when if_wd_ovs=>co_phase_3.
    *   apply result
          if ovs_callback_object->selection is not bound.
    ******** TODO exception handling
          endif.
          assign ovs_callback_object->selection->* to <ls_selection>.
          if <ls_selection> is assigned.
            ovs_callback_object->context_element->set_attribute(
                                   name  = `PAYMENT`
                                   value = <ls_selection>-payment ).
          endif.
      endcase.
    endmethod.

    Hi Pradeep,
    I don't think it really make any difference to the application run if we run from SE80 or run via application url.
    Try to set the external break point in OVS PHASE3 for your user. Check if the break point is reached and data is set after selection from OVS.
    Regards,
    Rama

Maybe you are looking for

  • Adobe ExportPDF ERROR: "An error occurred while trying to access the service"

    I have been attempting, for two days, to get Adobe ExportPDF to convert a PDF file (appx 32mb, orignially created in Word, but with handwritten notations throughout) to Word (either .docx or .doc, or even RTF). The app spends about 5-10 minutes proce

  • SRM 7.02 NWBC for HTML

    Hello All, When we are using nwbc_launch url in SRM 7.02, always pointing to the role selection page (Just like below). We don't want this page to be displayed. We want to logon to SRM directly. How to disable this below page. The look and feel logon

  • Slow Motion Tween

    Hey Buddies, is there any ways to create a slow motion tween within a limited keyframe?

  • Satellite L500-126: Win7 upgrade -can I re-activateit after new installation?

    I successfully upgraded Windows 7 from my OEM Vista yesterday. What if in the future, I need to reinstall the whole system? Can I re-activate Win 7 after the new installation? PS. My OEM Vista is 64 bit version and my win 7 is the ultimate 64 bit upg

  • Upgrade from EP6.0SP2 to Netweaver 04

    Hi, Currently we have EP6.0Sp2 Patch3 installed and running. Recently we have got Netweaver 04. Kindly let me know what is the procedure for upgrading from EP6.0SP2 to Netwearver 04. DO we need to build a new system? or can old system be upgraded. Th