Changing data in 'hidden' fields through BSP

Hi all,
We are using custom copy of hap_document BSP and in there i am trying to change values in the appraisal document using application->doc. I am able to change the values for the fields that are displayed in the layout in the application->doc-t_body_cell_notes, but not able to change the values for hidden fields(that have 'H' in application->doc-t_body_cells-cell_note_availability).
Is it impossible to change data for hidden fields?
Please let me know if anyone of you had ever done something like this earlier.
Thanks,
manasa

Thanks Raja.
In the HAP_DOCUMENT there is a cell for employee comments. Now i am hiding the cell in the BSP and when user clicks on a dropdown i am changing the value in the cell say from ABC to XYZ programatically. The document is being updated with the XYZ value when the cell is either in change/display mode but not in hidden mode. in hidden mode, When i change the value to XYZ and save the cell gets empty and doesnt have the previous value ABC also.
I am changing the value in the cell using below code:
   READ TABLE application->doc-t_body_cell_notes INTO s_cell_notes
     WITH KEY column_iid = '0001' row_iid = '0002'.
   IF sy-subrc = 0.
     s_cell_notes-tdline = 'XYZ'.
   ENDIF.
   MODIFY application->doc-t_body_cell_notes
      INDEX sy-tabix  FROM s_cell_notes
      TRANSPORTING tdline.
   ENDIF.
ENDIF.
if you have any questions please let me know. I am assmuing that you have worked on the BSP HAP_DOCUMENT.
Thanks again,
manasa

Similar Messages

  • Changing data types of  fields in structures

    Hello,
       Currently we are working for upgrade to ECC 6.0 .
       In some transactions we are using BAPI_MATERIAL_SAVEDATA to create material.
      We have some additional fields in MARA and MARC table , which we fill using BAPI_TE_MARA and BAPI_TE_MARC structures.
        In these structures we have different data types for fields earlier in 4.6C
    Now this function module is only working if we change  data types of  fields in these structures only to char type. It is going for dump , if we maintain any other data type.
      Could any body tell me why should we change for char data type ?
    Regards,
      SATYA

    Hi,
    Check enhancement category (Extras --> Enhancement Category) for structures before enhancement. For example, for BAPI_TE_MARA structure, enhancement category is given as character type or numeric type. That means you can add the fields of data type only C and N. No other data types are allowed. If you select as not classified then you can add any data type. This option plays important role while enhancement.
    Regards,
    Prasanth

  • How do I insert the current date to hidden field?

    I have a form for updating personal information.  There is a field in the table called "dateupdated" that I would like to have on the form as a hiddent field that will automatically get the latest date (now).
    Any idea's how I can set the hiddden field to current date?
    Thanks,  Dennis

    You don't need a hidden field to do that. Depending on the database you're using, you can either use a TIMESTAMP column (in MySQL) that is automatically updated, or you can use a SQL function to insert the current date.
    For example, in PHP, you can use NOW() like this in a SQL query:
    $insertSQL = sprintf("INSERT INTO date_test (created, message) VALUES (NOW(), %s)",
                           GetSQLValueString($_POST['message'], "text"));

  • Job Publication doesnt get changed data in Job Posting through workflow.

    Job Publication is not picking up the changed data in the Job Posting/Requisition through workflow.
    When I am changing the data in Job Posting and release it manually the changed data gets reflected in Job Publication but if I am releasing the Job Posting trough WF(automatically) then the Publication doesnt pick up the data.The workflows are working fine in the system still the problem exists.
    Thanks in advance for the reply.

    1-Log in portal with user id and pwd.
    2-Create a requisition initially.
    3-Create and release the Job posting(manually)
    4-Create and release the Job Publication(manually).
    5.Try editing the previous Job Posting and save it bu dont release the Job Posting manually.Now come to the personal page,when we again enter the same Job Posting ,the status of the Job Posting is set to "released" automatically by a Workflow.
    6.Now if we proceed for the Job Publication and try Displaying it,the edited changes in the Job POsting is not displayed.
    But if we have "released" the job posting manually then the changes are reflected in the Publication.
    The user wants to use the Workflow scenario and also wants the edited changes to be taken up by the Publication.
    Hope the following description helps out !
    thanks in advance.

  • Fbl1n drilldown to details - want to change data in a field that is display

    When we use FBL1n and then we drill down to a specific transaction, we can use the menu to switch from Display to Change mode.  We are then only able to change certain fields.  We would like to activate our Pmt Meth. supl field so that we can change the data here.  Right now, that particular field is "display" only.  Is there a place in config to do this?  I looked through the Vendor Line Item config but I'm not seeing where you can activate certain fields for the "change" mode.
    Suggestions?
    Cindy

    Hi Friend,
    Go to following path.
    IMG > Financial Accounting (New) > Financial Accounting Global Settings (New) > Document > Rules for Changing Documents > Document Change Rules, Line Item
    In this option, go to New entry
    Enter the Field Name BSEG-UZAWE
    Give the Account Type K
    and Tick Possibility of changing field
    and Save it
    I hope this will solve your problem
    Regards,
    Jigar

  • Changing data captured via ME52N through BADI - ME_REQ_POSTED not working!

    Hi All,
    I am trying to change the 'Release Date' value everytime some data is changed on a purchase requisition via transaction ME52N.  I am using BADI 'ME_REQ_POSTED' via my own implementation of interface method 'IF_EX_ME_REQ_POSTED~POSTED'.
    Everything works and I can access all the data that I need except the fact that the standard variables with item data (i.e. 'IM_EBAN') cannot be changed and so I am forced to rather change table EBAN directly by using a 'MODIFY' statement after processing the data within the BAdi method.
    However when I check table EBAN via se16 I find that the field that I want to change (i.e. EBAN-FRGDT) does not change at all even though the transaction states that the document has been saved successfully and my BADI implementation has been executed in full.
    Therefore how can I ensure that the field is updated via this BADI or via a direct update within the BAdi implementation?
    Thanks.

    Hi,
    I have solved this one.
    Thanks.

  • How to change data of a field automatically when sys date reaches a particu

    Hi,
      I have 2 fields in my database BOOKING_DATE and BOOKING_FLAG. What i want is that the moment SYSTEM date becomes more than BOOKING_DATE(for an already existing record) , the field BOOKING_FLAG should change its value to 'F' for that particular record.
    This actually should be happening in the background I guess. I dont know if its possible or not.
    THANKS

    Use this logic and create a progra. and then run this program in the background according to your need.
    data: BEGIN OF itab1 OCCURS 0,
          booking_date type sy-datum,
          booking_flag type c,
      END OF itab1.
    itab1-booking_date = '20110810'.
    itab1-booking_flag = ''.
    APPEND itab1.
    clear: itab1.
      itab1-booking_date = '20110811'.
    itab1-booking_flag = ''.
    APPEND itab1.
    clear: itab1.
      itab1-booking_date = '20110812'.
    itab1-booking_flag = ''.
    APPEND itab1.
    clear: itab1.
    LOOP AT  itab1.
    if sy-datum > itab1-booking_date.
      itab1-booking_flag = 'F'.
      ENDIF.
      MODIFY ITAB1.
      CLEAR ITAB1.
    ENDLOOP.

  • Uploading mass data and z-fields through CRMXIF_IBASE_SAVE

    Hi,
    We are using the function module CRMXIF_IBASE_SAVE to migrate legacy data.
    We have enhanced the installed base and component object using EEWB.
    Can some1 pls advice how can we populate these z-fields (created using EEWB) from the flat files through the FM CRMXIF_IBASE_SAVE; since we are not able to locate a particular structure for this purpose.
    In case there is no structure available; what is the best way to upload these in order to maintain the performance (the time taken to upload). The number of records being uploaded is significantly large (in high lacs).
    Warm regards,
    DP.

    No response hence deleting!

  • Passing/retrieving hidden fields from Its template(IAC)  to BSP page

    Hi i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...is there any way we can retrieve the data....is there any equivalent of request.getattribute() method which we use in jsp to fetch the hidden fields....

    <i>i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...</i>
    from ITS template how are you calling/passing parameter to BSP
    thru a form submit? or are you just openning the BSP thru a url link, in either case
    you could pass the data as a form field (post) or in the url of the BSP (GET)
    for example if the form field name in ITS template is myformfiled and you are submitting that to the BSP page then in the corresponding bsp page declare a page attribute withe same name (myformfiled) and mark the auto check box.
    now the value passed from ITS template will be available within BSP in the ABAP variable myformfiled which you can use the way you want.
    Hope this is clear
    Raja

  • Changing date format from yyyy/mm/dd to mm/dd/yyyy

    I use the following statment:
    MAX(case when A.[NGT_KYC_QUES_PROPERTY]='ResolvedDate' then CAST(SUBSTRING([NGT_KYC_QUES_ANSWER],5,2) + '-' + SUBSTRING([NGT_KYC_QUES_ANSWER],7,2) + '-' + SUBSTRING([NGT_KYC_QUES_ANSWER],1,4) AS DATE) ELSE '' END)AS ResolvedDate,
    to change date in text field (20140303T144253.253 GMT) to the following format:
    2014/03/03
    I would like to put it in the following format 03/03/2014 mm/dd/yyyy.
    is it possible to do this all in one statement?

    Actually you code does not convert that string to a string of "yyyy/mm/dd", it converts the value to a DATE. Your display must be changing it to that format.  Do not confuse the display format with the storage format.
    PS.  You do not need to do the substrings.
    CONVERT(varchar(10), CONVERT(date, LEFT([NGT_KYC_QUES_ANSWER],8), 112), 101)

  • Change data capture from DRM to Target system

    Hi All,
    I have a situation where client wants Hyperion DRM to be single source of truth and pass Hierarchy information from DRM to subscribing target systems. There are 3 target systems and the database is MS SQL server.
    Now in the export profile ,I am using database export where I have mapped the DRM node/properties to target table's columns. For the initial load it is a new record in the database and the data flows as it is a 1:1 mapping, however if few of the property value changes and I wan to update only the corresponding columns what will the architecture for push the change data in to target.
    Can we achieve this without have any staging tables and capture the change data ?
    Do need to use ODI ?
    Does DRM has any work around without putting extra effort hrs by building CDC tables ?
    I will really appreciate your suggestions and comments on this......

    Thanks for the quick reply. However I was trying to resolve the Change data capture in Hierarcy through as" Database Table" but it seems when we choose the DEVICE option as database in the target tab of export it can only export or insert new records into the tables but cannot update and existing record.
    PLease correct me if my understnding is wrong ?????

  • I can not map field after changing data source location

    Hi
    I have a small problem that I got a report file and database from my customer, after that I setup database, open the file and change data source to my setting. but some filed can not map. The field mapping widonw does not display all field in the table. Of course I have checked the missing fields are existing in the table.
    OS:Windows7
    DB:Oracle11
    CR:XI Release 2
    Does anyone have an idea?

    hi,
    In Map Fields window, there is an option "Match Type".
    Please Unchek that option, so that you will be able to see all the fields from that table.
    Also, while mapping please verify the datatypes of source and target fields.
    Regards,
    Vamsee

  • How to reflect a new field in Bank data while making payment through F-53?

    Hello Experts,
    How can i reflect a new field (payment reference) in bank data while making payment through F-53?
    I have tried to do it by Field status group(OBC4) but the same is replicating in vendor invoice but not in vendor payment.
    I tried it at both level,fsg anf posting key,But no use.
    Is there any other process to make available and required field in BANK DATA of vendor payment?
    Please suggest .
    Regards,
    Sumeya offrin

    Hello Sumeya,
    Please consider note 145864 which explains what you have to do to
    make this field visible in your selection criteria:
    "In Transaction FB00 (Financial Accounting Editing Options -> Open items
    activate the flag 'Payment reference as selection criterion'.
    This is valid for incoming payment; please test if the same procedure
    is valid for outgoing payment as well.
    I  check the  issue, and unfortunately these function seems to not be supported for vendor open items.
    When you try to select the 'Payment Reference' in Additional selections
    the following messages is arised:
    'No account specified, items selected via document no. or reference'
    That means,when you do not specify an account in F-53 you can only
    via Reference and/or document. This is not a bug but system design.
    For additional reference you can check the note 451105.
    The note made clear that the specification of an account is required for vendors during the selection via payment
    reference.
    Kind Regards,
    Fernando Evangelista

  • How do I update a date field through CMP

    I wonder how to update a date field through CMP.
    For example, I can't update an employee table with following statement.
    employee.setHire_date('2002-03-20');
    Thanks,

    Thats correct......
    Try using the following code....
    String strDate ="2002-03-20";
    String date_fmt = "yyyy-MM-dd";
    java.text.SimpleDateFormat sdf=new java.text.SimpleDateFormat(date_fmt);
    java.util.Date hireDate =null;
    hireDate =(Date) sdf.parse(strDate);
    employee.setHire_date(hireDate);
    Hope this helps
    Cheers
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to set Password change through BSP Application

    Hello All
    Before dropping my question i will explain you what was the Real scenario, i am using WAD 3.50 Version and server is BW 3.0B.we are not using portal, and Enduser will view the reports in the browser through the WAD execute Http link.
    Question.
    whenever the enduser uses Http link of web template in the browser, he will connect through VPN and they can able view the reports. the question is That Some system Enduser won't have SAPGUI in their system so they wants to change the password because they won't know even if it is expire. is it possble to set password change system through BSP Application in the WEB Templates
    Please Help me how to set Change Password in the browser for the WAD Application.

    right now when the user calls the BW report url , he is prompted for authentication via pop up right?
    to enable password change option in the log on screen use system logon for BEX service in sicf.
    go to transaction SICF and navigate to sap/bw/bex
    double click on node Bex.
    in the resulting window, go to error pages tab and under that in log on errors tab choose "System log on radiobutton" save and now try calling a webtemplte.
    Regards
    Raja

Maybe you are looking for