Modify JSON data after Approval

I've managed to write my own UI5 app based on the "Building SAP Fiori-like UIs with SAPUI5", and I want the Approve function to work now.
I have the following JSON data detail:
  "BusinessPartnerList": [
  "BPId": "0100000000",
  "Role": "01",
  "EmailAddress": "[email protected]",
  "PhoneNumber": "6789",
  "WebAddress": "http://www.sap.com",
  "CompanyName": "SAP",
  "LegalForm": "AG",
  "Country": "DE",
  "City": "Walldorf",
  "PostalCode": "69190",
  "Street": "Dietmar-Hopp-Allee",
  "Building": "15",
  "SalesOrders" : [
  "SalesOrderID": "0500000009",
  "Netto Amount": "3338.00",
  "Time Stamp": "2014.04.28. 9:00:00",
  "Gross Amount": "3972.22",
  "Status": "N",
  "CurrencyCode": "EUR",
  "Items": [
  "Position": "0000000010",
  "QuantityUnit" : "EA",
  "Tax": "181.64",
  "ProductName": "First Item Name",
  "ProductID": "HT-1000",
  "Quantity": "1",
  "DeliveryDate": "2014-05-05T07:00:00.0000000",
  "CurrencyCode": "EUR"
  "Position": "0000000020",
  "QuantityUnit" : "EA",
  "Tax": "596.60",
  "ProductName": "Second Item Name",
  "ProductID": "HT-1002",
  "Quantity": "2",
  "DeliveryDate": "2014-05-05T07:00:00.0000000",
  "CurrencyCode": "USD"
  "SalesOrderID": "0500000030",
  "Netto Amount": "22337.00",
  "Time Stamp": "2014.04.28. 9:00:00",
  "Gross Amount": "26581.03",
  "Status": "P",
  "CurrencyCode": "EUR"
  "SalesOrderID": "0500000039",
  "Netto Amount": "3338.00",
  "Time Stamp": "2014.04.28. 9:00:00",
  "Gross Amount": "3972.22",
  "CurrencyCode": "EUR",
  "Status": "N"
I can list the SalesOrders for the specific partner, and than list the items of the specific SalesOrder.
Now I'd like to Approve the order, and change it's status from "n" to "P" in the JSON file as well.
But I have no idea how to do it in the SalesOrderItem.controller.
I hope someone can help me

Since "BusinessPartnerList" and "SalesOrders"  are both arrays, i think you need some index in your path.
if you want to adress a specific business partner and sales order, you would need something like oJsonModel.setProperty("/BussinessPartnerList/0/SalesOrders/1/Status" , 'P' );

Similar Messages

  • STS u0096 Status buttons and locked data after approving

    Hello!
    I have some difficulties to customize STS and to lock data with the “Approve” status:
    With a bottom-up organization, a low level (User A) sends for approval to his superior (User B), then the superior approves. Then the data are normally locked for User A.
    But User A has always the possibility to click on the button “Open planning” and key-in/save data on the input form. And I don’t understand what is wrong.
    I hope my explanation is clear and sufficient.
    Thank you in advance for your help.
    Cécile

    Thank you for your answer.
    According the OSS note, my user has only the authorization R_STS_PT and it’s a bottom-up session. But I must use Header selections for the planning session? I have done some tests with this option and it wasn’t conclusive. At this moment I have no restriction/value in the option Define Header Chars for planning session.
    And I don’t understand the sdn topic link. There is no relation with my problem?

  • SP2013 Content Approval Process, restrict status change on updates after Approval

    Hi ,
    I had implemented the SharePoint content approval process for one internal requirement. Now, there is a need for modifying the content after Approval Status and by doing so SharePoint modifies the status as 'Pending' after edit. But, I have to retain the
    approval status.
    Please share any thoughts on how to achieve this ? 
    Thanks in advance.
    soundar

    Hi Soundar_SP,
    After you edit the list item, then the approve status will change to pnending. This is by design.
    There is no OOTB feature to achieve your requirement.
    As a workaround, you can create a custom Approve workflow with start Approval Progress action and set the workflow started when item created.
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Update Sales Order after approval procedure

    Hi,
    Anybody knows is there any way that we can enable updating of non-numeric field e.g. "item details" in the Sales Order's row after it's posted? Note that there is approval procedure involved, and Sales order posted with a status (approved).
    I realized that only UDF at the document level can be updated. How to enable editing of UDF at the row level?
    Thanks!
    sianghing

    No. Other than Sales Employee field, there is no option to update row level data after approval.
    Thanks
    Gordon

  • JSON.parse: unexpected non-whitespace character after JSON data

    I am having problem using cold fusion and jquery.ajax it will throw error
    JSON.parse: unexpected non-whitespace character after JSON data
    this is the response in firebug {"EMPCODE":"E-00001"}
    child.cfm
      <cfif IsDefined("empmycode")>
             <cfset  myarray= getempCode(#mycode#)>
             <cfoutput>#myarray#</cfoutput>
      </cfif>
    <cffunction name="getempCode">
           <cfargument name="empcode">
             <cfquery  name="empQuery" datasource="#datasource#">
                   Select empcode from employee where empcode = '#empcode#'
             </cfquery>
                <cfset mystruct = StructNew()>  
                <cfset mystruct.empcode=#empQuery.empcode#>
            <cfreturn   SerializeJSON(mystruct)>
      </cffunction>
    parent.cfm
    $.ajax({
        type: 'post',
            data: {empmycode:empcode}, 
        url: 'child.cfm',
        success:function(data){
        var myobjc = jQuery.parseJSON(data);
        console.log(myobj.empcode);
    Thank you in advance

    jemz wrote:
      <cfif IsDefined("empmycode")>
             <cfset  myarray= getempCode(#mycode#)>
             <cfoutput>#myarray#</cfoutput>
      </cfif>
      <cffunction name="getempCode">
           <cfargument name="empcode">
             <cfquery  name="empQuery" datasource="#datasource#">
                   Select empcode from employee where empcode = '#empcode#'
             </cfquery>
                <cfset mystruct = StructNew()>  
                <cfset mystruct.empcode=#empQuery.empcode#>
            <cfreturn   SerializeJSON(mystruct)>
      </cffunction>
    The above code is confusing. You test for the existence of empmycode, yet you actually use mycode instead. In addition, what you call an array isn't, and you fail to 'var' the method's local variables.
    You could modify the code, by scoping, as well as bearing in mind what Carl has said:
    <cfif IsDefined("form.empmycode")>
        <cfset  code= getempCode(form.empmycode)>
        <cfoutput>#code#</cfoutput>
    </cfif>
    <cffunction name="getempCode">
    <cfargument name="empcode">
    <cfset var mystruct = StructNew()>
    <!--- Alternative:  <cfqueryparam cfsqltype="cf_sql_varchar" value="'#arguments.empcode#"> --->
             <cfquery  name="empQuery" datasource="#datasource#">
                   Select empcode from employee where empcode = <cfqueryparam cfsqltype="cf_sql_integer" value="'#arguments.empcode#">
             </cfquery>
    <cfset mystruct.empcode=empQuery.empcode>
    <cfreturn   SerializeJSON(mystruct)>
    </cffunction>

  • Can not pass data after while loop

    Hello.
    I have created a VI for my experiment and am having problem passing data outside a while loop to save on an excel file. The VI needs to first move a probe radially, take data at 1mm increment, then move axially, take data radially at 1mm increment, then move to the next axial position and repeat. It would then export these data to an excel file. The VI is a little complicated but it's the only way I know how to make it for our experiment. I have tested it and all the motion works correctly, however I can not get it to pass the data after the last while loop on the far right of the VI where I have put the arrows (Please see the attached VI ). Is it because I'm using too many sequence, case, and while loops?  If so, what other ways can I use to make it export data to the excel file?
    Any help would be appreciated. 
    Thank you,
    Max
    Attachments:
    B.Dot.Probe.Exp.vi ‏66 KB

    Ummmm .... gee, I'm not even sure where to begin with this one. Your VI is well .... ummmm... You have straight wires! That's always nice to see. As for everything else. Well... Your fundamental problem is lack of understanding of dataflow programming. What you've created is a text program. It would look fantastic in C. In LabVIEW it makes my heart break. For a direct answer to your question: Data will not show up outside a while loop until the while loop has completed. This means your most likely problem is that the conditions to stop that specific loop are not being met. As for what the problem is, I don't even want to start debugging this code. Of course, one way to pass data outside of loops is with local variables, and hey, you seem to be having so much fun with those, what's one more?
    This may sound harsh, and perhaps be somewhat insulting, but the brutal truth is that what I would personally do is to throw it out and to start using a good architecture like a state machine. This kind of framework is easy to code, easy to modify, and easy to debug. All qualities that your code seems to lack.
    Message Edited by smercurio_fc on 08-17-2009 10:00 PM

  • How to stored data after clicking checkbox  save in database table

    TYPE-pools: slis.
    tables:mkpf,mseg,mard,COWB_COMP.
    TYPES: BEGIN OF tp_data,
          mblnr LIKE mseg-mblnr,
         matnr LIKE mseg-matnr,
         werks LIKE mard-werks,
         lgort LIKE mard-lgort,
         lgpbe LIKE mard-lgpbe,
         charg LIKE mseg-charg,
         bwart LIKE mseg-bwart,
         budat LIKE mkpf-budat,
         menge LIKE mseg-menge,
         meins LIKE mseg-meins,
         kostl LIKE mseg-kostl,
         aufnr LIKE mseg-aufnr,
         rsnum LIKE mseg-rsnum,
         endkz like COWB_COMP-endkz,
    END OF tp_data,
    tp_tbl_data TYPE STANDARD TABLE OF tp_data.
    *data: t_data like ztable occurs 0 with header line.
    Constants
    Data objects (variable declarations and definitions)
    Report data to be shown.
    DATA: it_data TYPE STANDARD TABLE OF tp_data.
    Heading of the report.
    DATA: t_heading TYPE slis_t_listheader.
    ========================== Selection Screen ==========================
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
                   smatnr FOR mseg-matnr MODIF ID m2,
                   swerks FOR mard-werks MODIF ID m3,
                   slgort FOR mard-lgort MODIF ID m4,
                   slgpbe FOR mard-lgpbe MODIF ID m5,
                   scharg FOR mseg-charg MODIF ID m6,
                   sbwart FOR mseg-bwart MODIF ID m7,
                   skostl FOR mseg-kostl MODIF ID m8,
                   saufnr FOR mseg-aufnr MODIF ID m9,
                   srsnum FOR mseg-rsnum MODIF ID m10.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
               pse RADIOBUTTON GROUP radi,
               bps RADIOBUTTON GROUP radi.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETER:layout TYPE i.
    SELECTION-SCREEN END OF BLOCK b3.
    =========================== Event Blocks =============================
    AT selection-SCREEN.
    start-OF-selection.
    PERFORM get_data USING it_data.
    END-OF-selection.
    PERFORM build_alv USING it_data t_heading.
    =========================== Subroutines ==============================
    *&      Form  get_data
          Gets the information to be shown in the report.
    FORM get_data USING t_data TYPE tp_tbl_data.
      SELECT msegmblnr msegmatnr mardwerks mardlgort mardlgpbe msegcharg msegbwart mkpfbudat
        msegmenge  msegmeins msegkostl msegaufnr mseg~rsnum
      INTO CORRESPONDING FIELDS OF TABLE t_data
      FROM mseg
      JOIN mard ON mardmatnr EQ msegmatnr
                   JOIN mkpf ON msegmblnr EQ mkpfmblnr
                   WHERE mseg~matnr IN smatnr.
    ENDFORM.                    " get_data
    *&      Form  build_alv
          Builds and display the ALV Grid.
    FORM build_alv USING t_data TYPE tp_tbl_data
          t_heading  TYPE slis_t_listheader.
    ALV required data objects.
      DATA: w_title   TYPE lvc_title,
            w_comm    TYPE slis_formname,
            w_status  TYPE slis_formname,
            x_layout  TYPE slis_layout_alv,
            t_event    TYPE slis_t_event,
            t_fieldcat TYPE slis_t_fieldcat_alv,
            t_sort     TYPE slis_t_sortinfo_alv.
      REFRESH t_fieldcat.
      REFRESH t_event.
      REFRESH t_sort.
      CLEAR x_layout.
      CLEAR w_title.
    Field Catalog
      PERFORM set_fieldcat2 USING:
            1 'MBLNR' 'MBLNR' 'MSEG' space space space space space space space space space space space space t_fieldcat ,
            2 'MATNR' 'MATNR' 'MSEG' space space space space space space space space space space space space  t_fieldcat ,
            3 'WERKS' 'WERKS' 'MARD' space space space space space space space space space space space space  t_fieldcat,
            4 'LGORT' 'LGORT' 'MARD' space space space space space space space space space space space space t_fieldcat ,
            5 'LGPBE' 'LGPBE' 'MARD' space space space space space space space space space space space space t_fieldcat ,
            6 'CHARG' 'CHARG' 'MSEG' space space space space space space space space space space space space t_fieldcat ,
            7 'BWART' 'BWART' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            8 'BUDAT' 'BUDAT' 'MKPF' space  space space space space space space space space space space space t_fieldcat,
            9 'MENGE' 'MENGE' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            10 'MEINS' 'MEINS' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            11 'KOSTL' 'KOSTL' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            12 'AUFNR' 'AUFNR' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            13 'RSNUM' 'RSNUM' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
        14 'ENDKZ' 'ENDKZ' 'COWB_COMP' space space 'select' 'Select this row' 'Sel' 'Select this row' space space space 'X' 'X' space t_fieldcat.
    Layout
      x_layout-zebra = 'X'.
    Top of page heading
      PERFORM set_top_page_heading USING t_heading t_event.
    Events
      PERFORM set_events USING t_event.
    GUI Status
      w_status = ''.
    User commands
      w_comm   = 'USER_COMMAND'.
    Order
    Example
    PERFORM set_order USING '<field>' 'IT_DATA' 'X' space space t_sort.
      PERFORM set_order USING 'MBLNR' 'IT_DATA' 'X' space 'X' t_sort.
    PERFORM set_order USING 'EBELN' 'IT_DATA' 'X' space 'X' t_sort.
    PERFORM set_order USING 'EBELP' 'IT_DATA' 'X' space space t_sort.
    Displays the ALV grid
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid
        it_fieldcat              = t_fieldcat
        is_layout                = x_layout
        it_sort                  = t_sort
        i_callback_pf_status_set = w_status
        i_callback_user_command  = w_comm
        i_save                   = 'X'
        it_events                = t_event
        i_grid_title             = w_title
      TABLES
        t_outtab                 = t_data
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " build_alv.
    *&      Form  set_top_page_heading
          Creates the report headings.
    FORM set_top_page_heading USING t_heading TYPE slis_t_listheader
          t_events  TYPE slis_t_event.
      DATA: x_heading TYPE slis_listheader,
            x_event   TYPE LINE OF slis_t_event.
    Report title
      CLEAR t_heading[].
      CLEAR x_heading.
      x_heading-typ = 'H'.
      x_heading-info = 'Reporte Prueba'(001).
      APPEND x_heading TO t_heading.
    Program name
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Program: '.
      x_heading-info = sy-repid.
      APPEND x_heading TO t_heading.
    User who is running the report
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'User: '.
      x_heading-info = sy-uname.
      APPEND x_heading TO t_heading.
    Date of execution
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Date: '.
      WRITE sy-datum TO x_heading-info.
      APPEND x_heading TO t_heading.
    Time of execution
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Time: '.
      WRITE sy-uzeit TO x_heading-info.
      APPEND x_heading TO t_heading.
    Top of page event
      x_event-name = slis_ev_top_of_page.
      x_event-FORM = 'TOP_OF_PAGE'.
      APPEND x_event TO t_events.
    ENDFORM.
    *&      Form  set_events
          Sets the events for ALV.
          The TOP_OF_PAGE event is alredy being registered in
          the set_top_page_heading subroutine.
    FORM set_events USING t_events TYPE slis_t_event.
      DATA: x_event   TYPE LINE OF slis_t_event.
    Example
    clear x_event.
    x_event-name = .
    x_event-form = .
    append x_event to t_event.
    ENDFORM.
    *&      Form  set_order
          Adds an entry to the order table.
    FORM set_order USING p_fieldname p_tabname p_up p_down p_subtot
          t_sort TYPE slis_t_sortinfo_alv.
      DATA: x_sort TYPE slis_sortinfo_alv.
      CLEAR x_sort.
      x_sort-fieldname = p_fieldname.
      x_sort-tabname   = p_tabname.
      x_sort-UP = p_up.
      x_sort-down = p_down.
      x_sort-subtot = p_subtot.
      APPEND x_sort TO t_sort.
    ENDFORM.                    "set_order
    *&      Form  set_fieldcat2
          Adds an entry to the field catalog.
    FORM set_fieldcat2 USING p_colpos p_fieldname p_ref_fieldname p_ref_tabname
          p_outputlen p_noout
          p_seltext_m p_seltext_l p_seltext_s p_reptext_ddic p_ddictxt
          p_hotspot p_showasicon p_checkbox p_edit
          p_dosum
          t_fieldcat TYPE slis_t_fieldcat_alv.
      DATA: wa_fieldcat TYPE slis_fieldcat_alv.
      CLEAR wa_fieldcat.
    General settings
      wa_fieldcat-fieldname = p_fieldname.
      wa_fieldcat-col_pos = p_colpos.
      wa_fieldcat-no_out = p_noout.
      wa_fieldcat-HOTSPOT = p_hotspot.
      wa_fieldcat-CHECKBOX = p_checkbox.
      wa_fieldcat-ICON = p_showasicon.
      wa_fieldcat-do_sum = p_dosum.
    Set reference fieldname, tablenam and rollname.
    If p_ref_tabname is not given, the ref_fieldname given is a data element.
    If p_ref_tabname is given, the ref_fieldname given is a field of a table. In case ref_fieldname is not given, it is copied from the fieldname.
      IF p_ref_tabname IS INITIAL.
        wa_fieldcat-rollname =   p_ref_fieldname.
      ELSE.
        wa_fieldcat-ref_tabname = p_ref_tabname.
        IF p_ref_fieldname EQ space.
          wa_fieldcat-ref_fieldname =   wa_fieldcat-fieldname.
        ELSE.
          wa_fieldcat-ref_fieldname =   p_ref_fieldname.
        ENDIF.
      ENDIF.
    Set output length.
      IF NOT p_outputlen IS INITIAL.
        wa_fieldcat-outputlen = p_outputlen.
      ENDIF.
    Set text headers.
      IF NOT p_seltext_m IS INITIAL.
        wa_fieldcat-seltext_m = p_seltext_m.
      ENDIF.
      IF NOT p_seltext_l IS INITIAL.
        wa_fieldcat-seltext_l = p_seltext_l.
      ENDIF.
      IF NOT p_seltext_s IS INITIAL.
        wa_fieldcat-seltext_s = p_seltext_s.
      ENDIF.
      IF NOT p_reptext_ddic IS INITIAL.
        wa_fieldcat-reptext_ddic = p_reptext_ddic.
      ENDIF.
      IF NOT p_ddictxt IS INITIAL.
        wa_fieldcat-ddictxt = p_ddictxt.
      ENDIF.
    Set as editable or not.
      IF p_edit IS NOT INITIAL.
        wa_fieldcat-INPUT     = 'X'.
        wa_fieldcat-EDIT     = 'X'.
      ENDIF.
      APPEND wa_fieldcat TO t_fieldcat.
    ENDFORM.                   "set_fieldcat2
    =========================== Subroutines called by ALV ================
    *&      Form  top_of_page
          Called on top_of_page ALV event.
          Prints the heading.
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        i_logo             = 'XXXXX'
        it_list_commentary = t_heading.
    ENDFORM.                    " alv_top_of_page
    *&      Form  user_command
          Called on user_command ALV event.
          Executes custom commands.
    FORM user_command USING r_ucomm     LIKE sy-ucomm
          rs_selfield TYPE slis_selfield.
    ENDFORM.                    "user_command
    this is my code, how to store data after clicking checkbox in databasetable,
    how to write that cide.
    plz send me code.

    hi!,
    use MODIFY to update data into the data base table.
    regards
    anjali

  • How to get the previous state of my data after issuing coomit method

    How to get the previous state of some date after issuing commit method in entity bean (It should not use any offline storage )

    >
    Is there any way to get the state apart from using
    offline storage ?As I said the caller keeps a copy in memory.
    Naturally if it is no longer in memory then that is a problem.
    >
    and also what do you mean by auditlog?
    You keep track of every change to the database by keeping the old data. There are three ways:
    1. Each table has a version number/delete flag for each record. A record is never updated nor deleted. Instead a new record is created with a new version number and with the new data.
    2. Each table has a duplicate table which has all of the same columns. When the first table is modified the old data is moved to the duplicate table.
    3. A single table is used which has columns for 'table', 'field', 'data' and 'activity' (update, delete). When a change is made in any table then this table is updated. This is generally of limited useability due to the difficulty in recovering the data.
    All of the above can have a user id, timestamp, and/or additional information which is relevant to the data being changed.
    Note that ALL of this is persisted storage.
    I am not sure what this really has to do with "offline storage" unless you are using that term to refer to backed up data which is not readily available.

  • MOdify with Date field giving error

    Hi,
    I have to modifuy an internal table using modify statement.
    After using the modify statement my date field in the internal table is replace by *.
    heres a sample code i have used to depict the scenario(with the test values:)
    DATA: BEGIN OF t_arcs_source OCCURS 0,
          premise(10) type c,
        key_date TYPE sy-datum,
      END OF t_arcs_source.
      DATA: wa_arcs_source LIKE LINE OF t_arcs_source.
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20080101'.
    APPEND t_arcs_source.
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20090101'.
    APPEND t_arcs_source.
      sort t_arcs_source by premise ascending key_date descending.
      clear t_arcs_source.
      loop at t_arcs_source into wa_arcs_source.
        at new premise.
           modify t_arcs_source from wa_arcs_source transporting key_date where premise = wa_arcs_source-premise.
        endat.
      endloop.
    please test the code and see the  error and help me out.
    Regards,
    Anand

    Hi.
    I have modify ur above given code and make it changed for ur need meanz according ur nedd and it is working accurately.
    check it and then tell me.
    DATA: BEGIN OF t_arcs_source OCCURS 0,
          premise(10) type c,
        key_date TYPE sy-datum,
      END OF t_arcs_source.
    " New code of loines i appended
      data: wa_t_arcs_source like t_arcs_source.
      data: t_arcs_source_1 LIKE STANDARD TABLE OF t_arcs_source WITH HEADER LINE.
      data: wa_t_arcs_source_1 like t_arcs_source.
    " End of new code of line
      DATA: wa_arcs_source LIKE LINE OF t_arcs_source. " I change this work area by wa_t_arcs_source
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20080101'.
    APPEND t_arcs_source.
    t_arcs_source-premise = '1001'.
    t_arcs_source-key_date = '20090101'.
    APPEND t_arcs_source.
      sort t_arcs_source by premise ascending key_date descending.
      clear t_arcs_source.
      loop at t_arcs_source into wa_t_arcs_source. " Used the new work area
        wa_t_arcs_source_1 = wa_t_arcs_source.
        append wa_t_arcs_source_1 to t_arcs_source_1.
        at new premise.
           modify t_arcs_source_1 from wa_t_arcs_source_1 transporting key_date where premise = wa_t_arcs_source-premise.
        endat.
      endloop.
    Just copy paste in editor and check it.
    Edited by: tahir naqqash on Feb 2, 2009 11:24 AM

  • Shopping Cart Item deletable after approval

    Hello all,
    I have an issue regarding Shopping Carts: When a Shopping Cart is approved, gives a Purchase Order which is sent to Vendor, Requester can still delete Item of Shopping Cart, which has effect to delete Item in Purchase Order. I opened a message for SAP but they tell me this is the standard behavior which is for me a non sense!
    I would like to know if you already met the fact that Shopping Cart Item being deletable after approval and if you corrected it, how?
    Thanks,
    Patrick
    PS: I am working on SRM 5.0

    Hi,
    Yes this is a standard behaviour.
    The business case is a user who made a mistake and do not have access to PO due to lack of authorization.
    He should be able to delete his SC which trigger a delete status at PO item level.
    Then , if system is well configured, an update output is triggered to communicate to the vendor taht the line item has been deleted.
    If you do not want this behaviour, just modify the roel authorization in PFCG transaction.
    Kind regards,
    Yann

  • Removing Task from UWL after approval

    HI Gurus
    I Need to Delete a task in the UWL after approval
    Scenario:
    I have developed the mss/pcr adobe forms inthe place of standard adobe forms i have configured the customized adobe forms which i have developed in Webdynpro for Java
    So in mss/pcr application we have two levels of approval
    First
    Intiator will enter the data and he will submit the form then it will goto the manager UWL
    Second
    Manager will click on the task(these task ids i have configured in SWFVISU) .And next one more form will be opened with the updated data and manager will approve it and he will click on the approve button then that form should not be in the UWL
    But I dont know what are the settings i need to do for that .
    Please help me in this .

    jvhncvbnc

  • After approval AR is not released

    Hi Friends,
    We have developed a workflow for approval of AR's.
    I am creating  appropriation request thro' IMA11 , and then I am sending it for approval now status FAPP for approval in progress now it came in my workflow inbox now I am approving the AR, after approval the status of AR should be released but it is not happening.
    What may be the reason?
    How can I check the workflow log errors of AR's, can I see it thro' IMA11or SWBP.
    Any pointers
    Thanks
    Ashu
    Edited by: ashutosh p on Dec 7, 2009 8:49 AM

    Hi Sreenivas ,
    Thanks for your reply.
    I want to know the reason why AR is not getting released after approval in workflow.
    Actually in IMA11 screen after creating AR's we are hitting the control data tab and after clicking on status the AR comes in my workflow inbox for futher action for approval.
    And status of AR should be chqanged once we approved in the workflow.
    How can I check the workflow log error of a particluar AR?
    Thanks
    Ashu

  • Delivery date and approval procedure

    Hello,
    My customer has the next problem. He generate a purchase order after approval procedure was ended. sometimes he wants to update the delivery date field in the row of the purchase order, but he can't do so because approval procedure restrict any changes in row level.
    what can be done to solve it.
    thank you all

    It is always very interesting how people seem to simply accept that the system can not perform basic functions.
    In our company, we are facing some critical issues because of this problem. E.g: a purchase order has been approved and teh supplier rings to inform us of supply delays. The procurement officer can not update the delivery date on the purchase order to document the updated delivery day.
    This is obviously causing some major drama at the warehouse as they rely on the delivery date of purchase orders to prepare the space required to receive goods.
    This is also impacting the work of the procurement manager who will possibly ring the supplier to inform him of delays when relasticly, the company has already been informed.
    The approval process in SAP Business One is lacking a basic function of "loop" or simply a system to identify non critical fields which can be updated once the document has been approved (like a date, some remarks etc.).
    SAP, it is time to work on a few basic ERP things.
    Vincent Motte

  • OWB Issue|| ORA-12838: cannot read/modify an object after modifying it in

    Hi
    I am not able to enter the data into the staging table .
    it is also not throwing any error ,only giving warnings.
    so as a next step i just took the intermediate result generation and try to run it
    but it is giving me an error in that
    ORA-12838: cannot read/modify an object after modifying it in parallel
    Can you please help me in tthis case.
    Thanks

    Hello,
    The error ORA-12838 occurs if you try to issue SELECT/DML immediately after completing parallel DML, within one transaction - it's not permitted.
    Start another transaction - issue Commit or Rollback first.

  • Registration date after posting parked document

    Hello experts,
    In AP we first park a document and after approval we post the parked document.
    Now, the accounting department wants to see the date of invoice registration for the posted documents.
    The entry date is first filled with the CPU date at the moment of invoice parking, but as soon as the parked document is posted, the entry date is overwritten with the CPU date of the posting moment.
    How can we retrieve the date the AP document is parked?
    Is there a table where we can find this information?
    Thanks in advance.
    Jurriaan

    Hi sonal
    i told u document date and posting date cannot be chnage after post the data, u only reverse the document & then u again post the document
    so please going this procedure, if u ask any consultant , every consultant told document date cananot be chnage after post the data, u can only reverse the document
    Regards
    Roobal

Maybe you are looking for

  • Error in time evaluation

    Dear All, time evaluation is throwing an error msg "No entry in table T001P for key" for only one employee in the time evaluation display log. Its happening in the initialization part in time evaluation. for example, If i run the time evaluation for

  • Looping through SQL statements in shell script

    Hello members, I'm working on the Solaris environment and the DB i'm using is Oracle 10g. Skeleton of what I'm attempting; Write a ksh script to perform the following. I have no idea how to include my sql query within a shell script and loop through

  • How to show sysdate in report header

    Hi everyone i want to show the Sysdate option in my report header. i have been looking around and i found out that i have to add {$SYSDATE()$} to my report default value, the issue is 1) cant find where is my default value so i can edit it 2) is ther

  • SAP Java and Solaris Zones SolMan 4.0

    May require Solaris Zones experience to continue. I have three SAP database instances/central instances running in three sparse Solaris zones with no problem. I have created a new sparse zone for a new SAP installation (Solution Manager 4.0) and star

  • JOptionPane.showInputDialog

    Hi, I have a question about JOptionPane.showInputDialog(...), there is a method that accepts an object array for its parameter, when the array size exceeds a certain bound the final dialog will contains a JList in it. When I click the item of the JLi