How to modify a value...

Hello guys,
I am currently modifying a BDC program where in I want to change a value from one screen to another. Please see my code below. for example, I typed in the value 100 in screen 110 but I want to change it to 0 in screen 285. Is there a way to this? So when I run my BDC program and it calls transaction ABAA and I put in the value 100 on the first screen which is 110 and when I press enter the value 100 would be instead 0. As you can see I have tried to clear the variables that I think affects the values. Help would really be appreciated.
PEFORM GENERATE_BDC_ABAA.
FORM GENERATE_BDC_ABAA.
  DATA: I_ANBTR LIKE ANEP-ANBTR.
  DATA: C_ANBTR(16), C_ANBTR2(16), C_DMBTR(16).
  DATA: V_MODE(1).
  CLEAR IT_REC.
  LOOP AT IT_REC.
    DI_LOOP = DI_LOOP + 1.
    REFRESH BDCDATA.
    PERFORM GENERATE_BDC_DATA_ABAA.
    V_MODE = 'E'.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
    CALL TRANSACTION 'ABAA' USING BDCDATA MODE V_MODE
      MESSAGES INTO IT_BDCMSGCOLL.
    IF SY-SUBRC EQ 0.
      ADD 1 TO SUC_CTR.
      PERFORM INSERT_SUCCESS_MSG.
    ELSE.
      READ TABLE IT_BDCMSGCOLL INDEX DI_LOOP.
      MOVE IT_BDCMSGCOLL TO WA_BDCMSGCOLL.
      ADD 1 TO ERR_CTR.
      PERFORM INSERT_ERROR_MSG.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " GENERATE_BDC_ABAA
PEFORM GENERATE_BDC_DATA_ABAA.
FORM GENERATE_BDC_DATA_ABAA.
  DATA: I_ANBTR LIKE ANEP-ANBTR.
  DATA: C_ANBTR(16), C_ANBTR2(16), C_DMBTR(16).
*AVH
  data: no_val like anep-anbtr.
  data: no_val2 like it_rec-dmbtr.
  move space to no_val2.
  move space to no_val.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
  move space to no_val.
  PERFORM BDC_DYNPRO USING 'SAPMA01B' '0100'.
  PERFORM BDC_FIELD  USING:
      'BDC_OKCODE' '/00',
      'ANBZ-BUKRS' 'GLOB',
      'ANBZ-ANLN1' IT_REC-ANLN1,
      'ANBZ-ANLN2' IT_REC-ANLN2,
      'ANEK-BLDAT' IT_REC-BLDAT,
      'ANEK-BUDAT' IT_REC-BUDAT,
      'ANBZ-PERID' IT_REC-PERID,
      'ANBZ-BWASL' IT_REC-BWASL.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anbz-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
  move space to no_val.
  PERFORM BDC_DYNPRO USING 'SAPMA01B' '0110'.
  PERFORM BDC_FIELD  USING:
      'BDC_OKCODE' '/00',
      'ANBZ-DMBTR' IT_REC-DMBTR,
      'ANBZ-BZDAT' IT_REC-BUDAT,
      'ANEK-SGTXT' IT_REC-SGTXT.
*AVH
  "I_ANBTR = '0'.       "IT_REC-DMBTR * -1.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
  move space to no_val.
  perform bdc_dynpro      using 'SAPMA01B' '0285'.          " '0600'.
*AVH
  move space to no_val.
  perform bdc_field       using 'BDC_CURSOR'
                                'NO_VAL'.     "'ANEP-ANBTR'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=AUSF'.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
  move space to no_val.
  PERFORM BDC_DYNPRO USING 'SAPMA01B' '0285'.               " '0600'.
*AVH
  move space to no_val.
  PERFORM BDC_FIELD  USING:
      'BDC_CURSOR' 'NO_VAL',   "'ANEP-ANBTR',
      'BDC_OKCODE' '=AUSF'.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
  move space to no_val.
  PERFORM BDC_DYNPRO USING 'SAPMA01B' '0110'.
  PERFORM BDC_FIELD  USING:
      'BDC_OKCODE' '=UPDA',
      'ANBZ-DMBTR' IT_REC-DMBTR,
      'ANBZ-BZDAT' IT_REC-BUDAT,
      'ANEK-SGTXT' IT_REC-SGTXT.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
  move space to no_val.
  PERFORM BDC_DYNPRO USING 'SAPMA01B' '0285'.               " '0600'.
  PERFORM BDC_FIELD  USING:
      'BDC_CURSOR' 'NO_VAL',    "'ANEP-ANBTR',
      'BDC_OKCODE' '=AUSF'.
*AVH
  i_anbtr = anep-anbtr.
  clear i_anbtr.
  clear it_rec-dmbtr.
  clear anep-anbtr.
  move: space to anep-anbtr.
  move space to it_rec-dmbtr.
  move space to no_val.
  PERFORM BDC_DYNPRO USING 'SAPMA01B' '0285'.               " '0600'.
  PERFORM BDC_FIELD  USING:
      'BDC_CURSOR' 'NO_VAL',    "'ANEP-ANBTR',
      'BDC_OKCODE' '=AUSF'.
  PERFORM BDC_DYNPRO USING 'SAPMA01B' '0110'.
  PERFORM BDC_FIELD  USING:
      'BDC_OKCODE' '=UPDA'.
ENDFORM.                    " GENERATE_BDC_DATA_ABAA

Hi Viraylab,
    Each time before you go into each screen and input these values you need to modify the same.
For eg: in this following code
PERFORM BDC_FIELD USING:
'BDC_OKCODE' '/00',
'ANBZ-DMBTR' IT_REC-DMBTR,
'ANBZ-BZDAT' IT_REC-BUDAT,
'ANEK-SGTXT' IT_REC-SGTXT.
say you need to have a value 110 for IT_REC-DMBTR then you need to assign this value before this above mentioned statement as follows:
clear: IT_REC-DMBTR.
move '0' to IT_REC-DMBTR.
PERFORM BDC_FIELD USING:
'BDC_OKCODE' '/00',
'ANBZ-DMBTR' IT_REC-DMBTR,
'ANBZ-BZDAT' IT_REC-BUDAT,
'ANEK-SGTXT' IT_REC-SGTXT.
Cheers
JK
PS: Award points if this helps you.

Similar Messages

  • How to modify default value of Login Shell attribute via script

    Hi all,
    I'm configuring the "UNIX Attributes" tab here in Active Directory Users and Computers. I've noticed that on the Login Shell option it has a default value: /bin/sh. So I had manually changed it to: /bin/bash.  I just change this value one
    bu one manually.  Now, I want to change this value for all users via script. Could you please help me to receive this goal?
    Thank you in advance.

    Use Get-AdUser / Set-AdObject
    Get-AdUser -Filter * | Set-AdObject -Replace @{unixhomedirectory='/bin/sh','bin/bash'} -WhatIf
    ¯\_(ツ)_/¯

  • ME_REQ_OI_EXT, how to modify eban value

    hi guys,
    i understood that im_eban here is importing parameter , hence, not subjected to be changed. but still i need to change eban data during creation of PR  from CJ20N , can anybody advice on how i can change this badi
    Message was edited by:
            ester johannes

    Hi,
        the documentation for BAPI_REQUSITION_DELETE says it is used for closing purchase requisitions.
    BAPI_REQUISITION_DELETE
    Text
    Delete/close purchase requisition
    Functionality
    This method enables you to delete and/or close purchase requisitions.
    Notes
    The following authorization objects are checked with activity 02 (Change):
    M_BANF_BSA Document type in requisition
    M_BANF_EKG Purchasing group in requisition
    M_BANF_EKO Purchasing organization in requisition
    M_BANF_WRK Plant in requisition
    All requisition items for which the deletion indicator and/or the "closed" indicator is to be set are passed on in the table RequisitionItemsToDe. Since this method changes the purchase requisition, change documents are created when you save.
    Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
    Parameters
    NUMBER
    REQUISITION_ITEMS_TO_DELETE
    RETURN
    <b>*Reward points</b>
    Regards
    null

  • How do I to modify context value DATABASE.SID on existing web ADI sheet?

    Does anybody know how to modify the connection context value (DATABASE.SID) on an existing web ADI sheet?
    My original sheet was created against e.g. TESTBASE.TST1, but now I want the same sheet to work on PRD (PRDBASE.PRD).
    In the old client version there was a hidden sheet where you could change this, but in web ADI there is no hidden sheet, and changing context values directly is not allowed.

    Does anybody know how to modify the connection context value (DATABASE.SID) on an existing web ADI sheet?
    My original sheet was created against e.g. TESTBASE.TST1, but now I want the same sheet to work on PRD (PRDBASE.PRD).
    In the old client version there was a hidden sheet where you could change this, but in web ADI there is no hidden sheet, and changing context values directly is not allowed.

  • How to upload a CRM sales order to R/3 after modifying some values in CRM

    Hi All
    How to upload a CRM sales order to R/3 after modifying  some values in CRM ?
    In other words
      You have a Sales Order in CRM. While sending this Sales Order to R/3, we would like to modify certain values in the Order before it is replicated to R/3 . How do u do that?
    Thanks
    Jaman
    Message was edited by: Sap_Crm_Guy
    Message was edited by: Sap_Crm_Guy

    Hi Jaman,
    Try to have a look at the function group CRM_ORDER_API. In there you will find several useful functions. CRM_MAINTAIN_ORDER can most probably do what you want to do, but it is not simple to figure out how to use it as it is not very well documented.
    There is a BADI called ORDER_SAVE with three methods that you can implement. This BADI allows you to manipulate the order before it is saved and before it is replicated to R/3.
    Very best regards,
    Anders Mørk

  • FB70: How t o modify the value of BSEG-XREF before posting?

    Hi ABAP Gurus,
    Good day!
    I would like to know the correct way to modify the value of BSEG-XREF1 in FB70 (Prior to posting of document).
    Currently, I have tried using substitution. First, I copied RGGBS000 into ZRGGBS000 AND added form u300, which will modify BSEG-XREF1.  Second, I have added a step to an already existing substitution (COGS), which was set-up in transaction OBBH.  I have assigned u300 to BSEG-XREF1 (Refernce Key 1).
    The said step didn;t seem to work.  I was able to post a document and then I displayed the document.  Unfortuantely, BSEG-XREF1 hasn't been modified. So,  I tried debugging the form U300.  It doesn't stop inside that form, which means the logic that i put there was useless. By the way, the the formname that Im using can be found in two internal tables: (1) exits, and (2) etab.
    Kindly advise on what to do.   Thank you very much!
    <b>Best Regards.
    Brando</b>

    Check this sample code which i've used to substitute the field BSEG-ZUONR
    Also ensure that the callup point in <b>OBBH</b> is 2
    Don't forget to attach ur <b>ZRGGBS000</b> to the application area <b>GBLS</b> in the tcode <b>GCX2</b>
    FORM get_exit_titles TABLES etab.
      DATA: BEGIN OF exits OCCURS 50,
              name(5)   TYPE c,
              param     LIKE c_exit_param_none,
              title(60) TYPE c,
            END OF exits.
      exits-name  = 'U102'.
      exits-param = c_exit_param_field.
      exits-title = text-101.           " Ship-to-Party to Assignment field
      APPEND exits.
      REFRESH etab.
      LOOP AT exits.
        etab = exits.
        APPEND etab.
      ENDLOOP.
    ENDFORM.                    "GET_EXIT_TITLES
    FORM u102 USING zuonr TYPE bseg-zuonr.
      bseg-zuonr = <value>.
    ENDFORM.

  • How to get parameter value from report in event of value-request?

    Hi everyone,
    The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
    many thanks!
    Jack

    You probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
    Jonathan
    report zlocal_jc_sdn_f4_value_read.
    parameters:
      p_field(10)           type c obligatory,  "field with F4
      p_desc(40)            type c lower case.
    at selection-screen output.
      perform lock_p_desc_field.
    at selection-screen on value-request for p_field.
      perform f4_field.
    *&      Form  f4_field
    form f4_field.
    *" Quick demo custom pick list...
      data:
        l_desc             like p_desc,
        l_dyname           like d020s-prog,
        l_dynumb           like d020s-dnum,
        ls_dynpfields      like dynpread,
        lt_dynpfields      like dynpread occurs 10.
      l_dynumb = sy-dynnr.
      l_dyname = sy-repid.
    *" Read screen value of P_FIELD
      ls_dynpfields-fieldname  = 'P_FIELD'.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_READ'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 1.
      check sy-subrc is initial.
    *" See what user typed in P_FIELD:
      read table lt_dynpfields into ls_dynpfields
        with key fieldname = 'P_FIELD'.
    *" normally you would then build your own search list
    *" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
    *" but this is just a demo of writing back to the screen...
    *" so just put the value from p_field into P_DESC plus some text...
      concatenate 'This is a description for' ls_dynpfields-fieldvalue
        into l_desc separated by space.
    *" Pop a variable value back into screen
      clear: ls_dynpfields.
      ls_dynpfields-fieldname  = 'P_DESC'.
      ls_dynpfields-fieldvalue = l_desc.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 0.
    endform.                                                    "f4_field
    *&      Form  lock_p_desc_field
    form lock_p_desc_field.
    *" Make P_DESC into a display field
      loop at screen.
        if screen-name = 'P_DESC'.
          screen-input = '0'.
          modify screen.
          exit.
        endif.
      endloop.
    endform.                    "lock_p_desc_field

  • How to change default value in a table using ALTER TABLE

    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • To modify field value in a transparent table

    how would i modify the value of a field in a transparent table? my data is from internal table. while im looping in the internal table the data goes to the first record of the table not on the right record.
    what wrong with  my code?
    loop at i_tble.
      wa_tble = i_tble.
      select single angnr
      into i_angnr
      from ekko
      where ebeln eq wa_tble-ebeln.
      ekko-angnr = wa_tble-angnr.
      modify ekko.
    endloop.

    Hi,
    I am sorry but I didn't understand the purpose of this code. You are reading in a field value of ANGNR from EKKO and you want to update the same record again with the same value? Why?
    <b>Secondly, you should never update any SAP table directly like that</b>.
    Now for the reason why your update is updating the first record always.
    Your 'modify ekko' should be modified as
    MODIFY ekko TRANSPORTING angnr WHERE ebeln = wa_tble-ebeln.
    Please reward and close the post if answered.
    Regards,
    Srinivas

  • How to get the value entered in input enabled field of a list output?

    Hi all,
    I am developing a program to display  list with two input enabled fields . After users enetered the values into these fields I need to do some calculations based on these values and modify the value of another field in the list.
    But i couldn't have an idea how to read the values after users enter into these fields.
    Please help me on solving this problem?  If possible please provide the sample code.
    Thanks,
    Aravind.

    You can enable disable screen fields in at selection screen output event.
    And by using loop at screen.
    And for changing the values you can do in initialization event.
    I Hope you are doing these in Reports.

  • How to modify the field lengh of file upload

    Hi All,
       I am facing a problem with u201Cuploadu201D filed length in BSP application.
    When we upload the file in BSP page, the path displayed should be the full path (i.e. from where the file is being upload the file)
    Now this field is appearing 20 char length
    Now I want to increase the length of the upload field (Input field) to be 100 char so that the path is visible.
    In the current application the file upload is being done through a structure (attributes)
    In this structure the fields are like this
    PAGE_NAME
    ID
    FOR
    TAGS
    ROW_INDEX
    COLUMN_INDEX
    OTR_NAME
    REQUIRED_NAME
    MAXLENGTH
    SIZE
    TABLE_NAME
    ON_SELECT
    VALUE
    DISABLED
    ONCLICK
    TEXT
    TYPE
    Using this method:
    CALL METHOD cl_htmlb_fileupload=>factory
              EXPORTING
                Id      = ls_form_save-id
              RECEIVING
                Element = lv_fileup.
            bee_table->add ( level = 2 element = lv_fileup ).
    This cl_htmlb_fileupload is named as class interface.
    Which has the CLG_HTMLB_FILEUPLOAD (it is a class) it is defined in attributes.
    In this class it has the attribute u201CSIZEu201D by default string 20.
    Now I need to change this attribute length from 20 to 100
    For this I copied the standard class CL_HTMLB_FILEUPLOAD into ZCL_HTMLB_FILEUPLOAD.
    This ZCL_HTMLB_FILEUPLOAD contains all attributes of the standard class CL_HTMLB_FILEUPLOAD
    Including the one class (CLG_HTMLB_FILEUPLOAD), this is defined as an attribute (ABOVE MENTIONED?)
    This class is appearing in non editable mode, so   I have copied this class into zclass (ZCLG_HTMLB_FILEUPLOAD).but still I am not able to edit the attribute called u201Csizeu201D
    And also I am not bale to add the zclass in place of the ZCLG_HTMLB_FILEUPLOAD
    Kindly tell me how to modify the length of the field u201Csize u201Cand also how to add the zclass in the attributes of one class (syntax)
    Thanks in advance
    Rambabu.A

    Hi,
    Class CLG_HTMLB_FILEUPLOAD is a class automatically generated when a BSP Element is created. You should not change/create such a class, unless by creating your own BSP Element.
    As per your requirement, you can use the SIZE parameter of method factory:
    ls_form_save-size = '100'.
    CALL METHOD cl_htmlb_fileupload=>factory
    EXPORTING
    Id = ls_form_save-id
    Size = ls_form_save-size
    RECEIVING
    Element = lv_fileup.
    Regards,
    Tanguy

  • How to modify a pod in dashboard component?

    Hi
    I am new to flex and programming in general. So please do forgive me if I do not express my query clearly or with the right info.
    I am trying to build an application to show case photographs and one of the components I am using is the Dashboard built by WASI and can be seen here. It has several pods but I would like to have one of the pods load up with my own default position, width and height yet still retain the characteristics of minimizing, maximizing & drag and drop. Other than through the pods.xml file, I do not know how to modify (or which other file I should modify for that matter) so that when the application loads, it always starts with the particular pod at my desired height (top to bottom), width (about 1/4 of screen real estate) and position (left side of the screen)
    Below is the pods.xml file and attached is the project zip file.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    Used to specify the pod content in the dashboard sample app.
    To keep the implementation straightforward, all of the data is
    stored in this file rather than a database or separate XML files.
    -->
    <views>
        <!--
            <view> - Represents a tab.
                id - Must be unique so state can be saved properly.
                label - The label of the tab.
                <pod>
                    id - Must be unique per view so state can be saved properly.
                    type - Type of pod content. Valid values are chart, pieChart, form and list. "chart" and "pieChart" each have drill downs to one level.
                           "chart" is a fixed drill down to 30 days in a month.
                           "pieChart" is a fixed drill down to four geographical regions.
                    title - The title of the pod.
                    dataSource - The xml to load for the pod.
                    selectedViewIndex - Sets the default content view for pod content with a view stack.
                    valueField - For chart pods, the field from the xml data to use for displaying the value. This field should be numeric.
                    categoryField - For chart pods, the field from the xml data to use for displaying the category.
                    dataTipUnitLabel - Rollover label used for displaying the units.
                                       Label is delimited by "*" and places the first value before the unit and the second value after the unit. Ex: $50M.
                    dataTipLabelField - Rollover label field used for PieCharts.
                    labels - For form pods, used to label the fields.
                    dataFields - For form pods, used to assign the data fields to the form fields.
                                 The second field should always be a date expressed in milliseconds since the epoch.
        -->
        <view
            id="view0"
            label="Sales">
            <pod
                id="pod00"
                type="chart"
                title="Yearly Revenue"
                dataSource="data/revenue.xml"
                selectedViewIndex="1"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod06"
                type="pieChart"
                title="Revenue by Region"
                dataSource="data/revenue_by_region.xml"
                valueField="value"
                categoryField="region"
                dataTipUnitLabel="$*M"
                dataTipLabelField="region"/>
            <pod
                id="pod01"
                type="chart"
                title="Yearly Profit"
                dataSource="data/profit.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod02"
                type="form"
                title="To Do"
                dataSource="data/tasks.xml"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod03"
                type="list"
                title="Company News"
                dataSource="data/news.xml" />
            <pod
                id="pod04"
                type="form"
                title="Sales Pipeline"
                dataSource="data/pipeline.xml"
                selectedViewIndex="1"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod05"
                type="chart"
                title="Projected Revenue"
                dataSource="data/projected_revenue.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
        </view>
    Thank you very much for any help you may provide.
    Best regards
    Vanery

    hi,
    u may upload a file from the desktop in ur webdynpro .. thn u can save it in database and can download accordingly..
    1.create a node 'FILEUPLOAD' with 2 attributes
    a) FILECONTENT type XSTRING
    b) FILENAME type STRING
    2. Create a fileuplaod uielement
    a) bind the data property with attribute 'FILECONTENT'
    b) bind the filename property with attribute 'FILENAME'
    3. Create a button 'UPLOAD'
    a) create the action method for this button and save the contents of file in database
    Data l_node type ref to if_wd_context_node.
    Data l_stru type wd_this->elements_cn_fileupload.
    l_node = wd_context->get_child_node( 'FILEUPLOAD' ).
    l_node->get_static_attributes( importing static_attributes = l_stru ).
    "save l_stru-fielcontent in database. Your file will be saved in the database in XSTRING format.
    Now when you want to display this file;
    1. Create a Node 'FILEDOWNLOAD' with 1 attribute
    a) FILE type XSTRING
    2. Create a filedownload uielement
    a) bind the data property with the attribute 'FILE'
    Fetch the file from database and set the File attribute of the filedownload uielemnt to display the file.
    regards,
    Amit

  • How to modify a part of task parameters via worklist (not all paramenters)?

    I am making a demo of showing the functions of human workflow / worklist using Oracle SOA Suite. The following process is not a real project. But I have some questions about how to modify parameters in worklist and jdeveloper. Please help me.
    I create a BPEL with human workflow. It has 2 human tasks.
    The first human task is a single approver type and the parameters contents can be modified via worklist. The user is oc4jadmin.
    If oc4jadmin rejects it, the process will go to the second human task.
    The second human task is a sequential lists of approvers type and the parameters contents can be modified via worklist. 3 users (the order is : jcooper -> jlondon-> tolstoy) can access it. The process is able to abrupt completion if anyone rejects it.
    After the process is invoked in BPEL control,
    1, oc4jadmin login worklist and modified the data, than reject it.
    2, jcooper can login worklist and changed the data, save it, and approve.
    3, jlondon login, view data, change data, and save it. However, if jlondon modified the
    My questions are as follow:
    1, If oc4jadmin rejects the task in worklist, how can I set the parameter cannot be modified and saved.
    2, schema:
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/BPEL_single_sequential"
         xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:vv="http://xmlns.oracle.com/BPEL_single_sequential">
         <element name="BPEL_single_sequentialProcessRequest">
              <complexType>
                   <sequence>
                        <element name="input" type="vv:complexType1" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="BPEL_single_sequentialProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="complexType1">
    <sequence>
    <element name="pid" type="string"/>
    <element name="ptitle" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </schema>
    In the worklist, the user can add another pid and leave the ptitle empty. In the schema, the ptitle (minOccurs=1) should appear at least once. How can I set that, if the user add another pid and must add at least one ptitle before saving it?
    3, One element likes gender=male/female. In the worklist form, the default graphic component is an input field. How can I set the component to a dropdown list and it highlight value.
    4, The default form is jsp file and it is beautiful. Could I make a jspx page and replace the jsp page? How to replace the jsp to jspx?
    5, If I use sequencial approver type for the human task, how can I set various page layout? For example, user 1 can view and modified all parameters. User 2 can view some part of the parameters and changes it. User 3 can view all paramters but can just modified some of them?
    Thanks a lot!
    Edited by: [email protected] on 2009-3-10 上午12:39
    Edited by: [email protected] on 2009-3-10 上午12:44
    Edited by: YE

    Hi,
    all what you asked about can be done through java script.

  • How to modify  the search results of the GUI for subscribing to calendars

    How to modify the search results of the GUI for subscribing to calendars
    Note:
    <OL>
    <LI>The following information applies only to iPlanet Calendar Server 5.0
    Patch 3.
    <LI>All of the cases for which the XSLT changes will work have not been
    verified.
    <LI>The following is only an example of an XSLT customization.
    </OL>
    The example below shows a sample customization of the
    search_for_calendars
    dialog. This customization will result in the Display Name being included as
    part of the search results in the GUI, which would normally show just the
    calendar ID. It will render the returned calendars in the following format:
    <P>
    Display Name - <I>description</I>
    <P>
    Normally, the format would be as follows:
    <P>
    Calendar-ID - <I>description</I>
    <P>
    </A>
    The example consists of the following two files:
    <P>
    <OL>
    <LI>search_for_calendars_common.xsl
    (the entire XSLT file)
    <P>
    <LI>diffctx.txt
    (the context sensitive diff patch file,
    which basically shows only the changes that need to be made)
    </OL>
    <P>
    <HR>
    </A><B>
    search_for_calendars_common.xsl</B>
    <?xml version="1.0" ?>
    <!DOCTYPE xsl:stylesheet (View Source for full doctype...)>
    - <!--
    set the output properties
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
    result-ns="http://www.w3.org/TR/REC-html40">
    -->
    - <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
    - <!-- set the output properties
    -->
    <xsl:output method="html" encoding="ISO-8859-1" />
    <xsl:include href="data/common.xsl" />
    <xsl:include href="data/i18n.xsl" />
    <xsl:include href="data/date_format.xsl" />
    <xsl:include href="data/dialog_tabs.xsl" />
    - <xsl:template match="/">
    <xsl:apply-templates select="calendar" />
    </xsl:template>
    - <xsl:template match="calendar">
    - <xsl:choose>
    - <xsl:when test="@top='true'">
    - <xsl:variable name="Frame1">
    <xsl:value-of select="frame[1]" />
    </xsl:variable>
    - <xsl:variable name="Frame2">
    <xsl:value-of select="frame[2]" />
    </xsl:variable>
    - <xsl:variable name="Frame3">
    <xsl:value-of select="frame[3]" />
    </xsl:variable>
    - <xsl:variable name="tab_value">
    <xsl:value-of select="@tab" />
    </xsl:variable>
    - <HTML>
    - <HEAD>
    <xsl:call-template name="contextJavascript" />
    <TITLE>Calendars Search: Calendar Express - iPlanet</TITLE>
    </HEAD>
    - <FRAMESET border="0" frameborder="0" rows="77,*,71">
    <FRAME name="tab" marginheight="0" marginwidth="0" scrolling="no"
    scrollbars="no" src="{$Frame1}" />
    <FRAME name="main" frameborder="0" src="{$Frame2}" />
    <FRAME name="button" marginheight="0" marginwidth="0" scrolling="no"
    scrollbars="no" frameborder="0" src="{$Frame3}" />
    </FRAMESET>
    </HTML>
    </xsl:when>
    - <xsl:when test="@view='searchProperties'">
    - <xsl:for-each select="group">
    - <xsl:if test="@name='searchProperties'">
    <xsl:call-template name="search_toolbar" />
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    - <xsl:when test="@view='main'">
    - <xsl:for-each select="group">
    - <xsl:if test="@name='main'">
    <xsl:call-template name="main" />
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    - <xsl:when test="@view='button'">
    - <xsl:for-each select="group">
    - <xsl:if test="@name='button'">
    <xsl:call-template name="button_root" />
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    - <xsl:otherwise>
    - <html>
    What's this view? (search_for_cals.xsl) -
    <xsl:value-of select="@view" />
    </html>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    - <xsl:template name="search_toolbar">
    - <HTML>
    <xsl:call-template name="emit_frame_head_tag" />
    - <BODY bgcolor="{$bgcolor_background}" background="imx/tdbg.gif"
    marginwidth="0" marginheight="0" onload="window.focus()">
    - <FORM>
    - <xsl:attribute name="action">
    <xsl:value-of select="./formdata@action" />
    </xsl:attribute>
    <xsl:attribute name="name">form</xsl:attribute>
    <xsl:attribute name="onSubmit">document.forms[0]['find'].click(); return false;
    </xsl:attribute>
    <xsl:apply-templates select="formdata" />
    - <CENTER>
    - <TABLE border="0" cellpadding="2" cellspacing="0" width="100%" height="100%">
    - <TR>
    - <TD align="center">
    - <TABLE border="0" cellpadding="3" cellspacing="1">
    - <TR>
    - <TD colspan="4">
    <FONT size="{$font_size_big_2}" face="{$font_name}">Find all calendars where
    the calendar</FONT>
    </TD>
    </TR>
    - <TR>
    - <TD valign="baseline">
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <SELECT name="which">
    <OPTION value="name;calid">name or ID</OPTION>
    <OPTION value="name">name</OPTION>
    <OPTION value="primaryOwner">primary owner</OPTION>
    <OPTION value="calid">ID</OPTION>
    </SELECT>
    </FONT>
    </TD>
    - <TD valign="baseline">
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <SELECT name="how">
    <OPTION value="0">contains</OPTION>
    <OPTION value="1">begins with</OPTION>
    </SELECT>
    </FONT>
    </TD>
    - <TD valign="baseline">
    <INPUT type="text" name="what" />
    </TD>
    - <TD valign="baseline">
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <INPUT type="button" name="find" value="Find">
    - <xsl:attribute name="onClick">
    <xsl:value-of select="./button[@name='find']" />
    </xsl:attribute>
    </INPUT>
    </FONT>
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </CENTER>
    </FORM>
    </BODY>
    </HTML>
    </xsl:template>
    - <xsl:template name="main">
    - <HTML>
    <xsl:call-template name="emit_frame_head_tag" />
    - <BODY bgcolor="{$bgcolor_background}" background="imx/tdbg.gif"
    marginwidth="0" marginheight="0">
    - <FORM name="form" method="post">
    - <xsl:attribute name="action">
    <xsl:value-of select="./formdata@action" />
    </xsl:attribute>
    <xsl:attribute name="name">form</xsl:attribute>
    <xsl:apply-templates select="formdata" />
    <INPUT type="hidden" name="how" value="0" />
    <INPUT type="hidden" name="which" value="name;calid" />
    <INPUT type="hidden" name="what" value=" />
    <INPUT type="hidden" name="selectedGroup" />
    - <xsl:if test="(./calsearchresults/nomatch)">
    - <!-- print no match found
    -->
    &#38;nbsp;
    &#38;nbsp;
    No Match Found
    </xsl:if>
    - <xsl:for-each select="./calsearchresults/searchresultcal">
    - <P>
    &#38;nbsp;
    &#38;nbsp;
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <FONT size="{$font_size_big}" face="{$font_name}">
    Owner:
    <xsl:value-of select="@owner" />
    <FONT size="{$font_size_big}" face="{$font_name}" color="{$bgcolor_wend_mid}">|
    </FONT>
    Calendar ID:
    <xsl:value-of select="@id" />
    <BR />
    </FONT>
    - <FONT size="{$font_size_big_2}" face="{$font_name}">
    - <xsl:choose>
    - <xsl:when test="@subscribed='false'">
    &#38;nbsp;
    &#38;nbsp;
    - <INPUT type="checkbox" name="calendar">
    - <xsl:attribute name="value">
    <xsl:value-of select="@name" />
    </xsl:attribute>
    </INPUT>
    &#38;nbsp;
    &#38;nbsp;
    - <A target="_blank">
    - <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand" />
    </xsl:attribute>
    <xsl:value-of select="@name" />
    </A>
    </xsl:when>
    - <xsl:otherwise>
    &#38;nbsp;
    &#38;nbsp;
    - <A target="_blank">
    - <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand" />
    </xsl:attribute>
    <xsl:value-of select="@name" />
    </A>
    &#38;nbsp;
    (Subscribed)
    </xsl:otherwise>
    </xsl:choose>
    - <xsl:if test="string-length(@description) > 0">
    &#38;nbsp;
    &#38;nbsp;
    - <FONT size="{$font_size_big}" face="{$font_name}">
    <xsl:value-of select="@description" />
    </FONT>
    </xsl:if>
    </FONT>
    </FONT>
    </P>
    </xsl:for-each>
    </FORM>
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    <P>
    <A HREF="#back">Back</A>
    <P>
    <HR>
    </A>
    <B>diffctx.txt</B>
    Index: search_for_calendars_common.xsl
    ===================================================================
    RCS file: /m/src/ns/server/msg/calendar/core/html/search_for_calendars_common.xsl,v
    retrieving revision 1.1.2.14
    diff -c -r1.1.2.14 search_for_calendars_common.xsl
    *** search_for_calendars_common.xsl 2000/12/12 23:10:43 1.1.2.14
    --- search_for_calendars_common.xsl 2001/03/15 23:55:19
    *** 182,188 ****
    &#38;nbsp; &#38;nbsp;
    <INPUT type="checkbox" name="calendar">
    <xsl:attribute name="value">
    ! <xsl:value-of select="@id"/>
    </xsl:attribute>
    </INPUT>
    &#38;nbsp; &#38;nbsp;
    --- 182,188 ----
    &#38;nbsp; &#38;nbsp;
    <INPUT type="checkbox" name="calendar">
    <xsl:attribute name="value">
    ! <xsl:value-of select="@name"/>
    </xsl:attribute>
    </INPUT>
    &#38;nbsp; &#38;nbsp;
    *** 190,196 ****
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@id"/>
    </A>
    </xsl:when>
    <xsl:otherwise>
    --- 190,196 ----
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@name"/>
    </A>
    </xsl:when>
    <xsl:otherwise>
    *** 199,205 ****
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@id"/>
    </A>
    &#38;nbsp;(Subscribed)
    </xsl:otherwise>
    --- 199,205 ----
    <xsl:attribute name="href">
    <xsl:value-of select="@viewCommand"/>
    </xsl:attribute>
    ! <xsl:value-of select="@name"/>
    </A>
    &#38;nbsp;(Subscribed)
    </xsl:otherwise>
    <P>
    <A HREF="#back">Back</A>

    Maybe on the Google API s page?

  • How to modify a standard badi

    Dear Freinds,
                  Could any one let me know how to modify the Badi HRHAP00_DOC_DEF_D1 . As i have tried to copy to a z one it is not allowing me to
    copy  why could any please let me know.
    regards
    syama.

    Why you want to copy badi when you can implement one.
    you can  modify "HRHAP00_DOC_DEF_D1 " 
    i.e you can change attributes  like: filter value, multiple use , filter dependence etc.
    and yes it allows you to make a Zcopy.
    go to se 18 enter HRHAP00_DOC_DEF_D1
    and select copy option it will allow you.
    reward points if helpful

Maybe you are looking for

  • ASA 5510 FireWall Problem

    Hi All After some advise and direction Our ASA firewall using ASA version 8.4 has recently started presenting us with a problem to one external website called http://partners.highnet.com/login/  ip address 62.233.82.181. Our firewall is letting every

  • Why cant I connect to game center server on Iphone 5

    hay all I am new here and new to Iphone as I have always had other brands. about 2 months ago I got Iphone5 and it has been awsome very user friendly I have some games running in gamecentre and since I plugged into computer 8 days ago to update and s

  • HT201317 my phone was stolen how do i get my photots from my iphone5?

    my iphone5 was stolen..how do i recover my photos? i went to icloud && its not giving me anything

  • Flex Dataservices Deployment Problem

    I´m using dataservices to connect to my database via php. This works  fine so far. The problems begin when I want to deploy the app, because I had to make  some changes to my model .fml file. Here is an excerpt: <annotation name="ServiceConfig"> <ite

  • WLC 5508 and 802.11n

    We are currently deploying multiple 3502 AP's and a WLC5508. Is it recommended to put the access points that are one the same site as the controller on H-REAP or put them on local mode. The WLC5508 has a max uplink of 8 Gb can that be a limitation wh