Problem in output

REPORT  zmm_matl_desc
LINE-COUNT 40
LINE-SIZE 80
NO STANDARD PAGE HEADING.
***************************DATA DECLARATION**************************
TYPE-POOLS: slis.
TABLES: mseg, mkpf.
DATA: BEGIN OF t_mseg OCCURS 0,
      mblnr LIKE mseg-mblnr,
      mjahr LIKE mseg-mjahr,
      zeile LIKE mseg-zeile,
      matnr LIKE mseg-matnr,
      lsmng LIKE mseg-lsmng,
      menge LIKE mseg-menge,
      ebeln LIKE mseg-ebeln,
      werks LIKE mseg-werks,
      ebelp LIKE mseg-ebelp,
      budat LIKE mkpf-budat,
      shortage type f,
      delflag TYPE c,
     END OF t_mseg.
DATA: l_mseg LIKE t_mseg OCCURS 0 with header line.
DATA: BEGIN OF t_mkpf OCCURS 0,
      mblnr LIKE mkpf-mblnr,
      mjahr LIKE mkpf-mjahr,
      budat LIKE mkpf-budat,
    END OF t_mkpf.
DATA:   it_fieldcat TYPE slis_t_fieldcat_alv,
        wa_fieldcat TYPE slis_fieldcat_alv,
        loc_cnt TYPE i.
DATA: l_tabix TYPE sytabix.
DATA: BEGIN OF t_ekko OCCURS 0,
      ebeln LIKE ekko-ebeln,
      bsart LIKE ekko-bsart,
     END OF t_ekko.
DATA: BEGIN OF t_ekpo OCCURS 0,
        ebeln LIKE ekpo-ebeln,
        ebelp LIKE ekpo-ebeln,
        konnr LIKE ekpo-konnr,
     END OF t_ekpo.
**************************SELECTION SCREEN***************************
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_plant    FOR t_mseg-werks OBLIGATORY,
                s_matnr    FOR t_mseg-matnr,
                s_datum    FOR t_mseg-budat .
SELECTION-SCREEN: END OF BLOCK b1.
START-OF-SELECTION.
  PERFORM sub_selection.
  PERFORM sub_getdata.
  PERFORM sub_updt_ebeln.
END-OF-SELECTION.
CONSTANTS CTNM(6) TYPE C VALUE 't_mseg'.
  PERFORM sub_write USING:
COL_POS          FIELDNM      TABNAME     SEL-TEXT   DO-SUM  NO-ZERO
      ' ' loc_cnt     'MBLNR'     CTNM      text-011   space    space ' ',
      ' ' loc_cnt     'ZEILE'     CTNM      text-012   space    space ' ',
      ' ' loc_cnt     'BUDAT'     CTNM      text-013   space    space ' ',
      ' ' loc_cnt     'MATNR'     CTNM      text-014   space    space ' ',
      ' ' loc_cnt     'LSMNG'     CTNM      text-015   space    space ' ',
      ' ' loc_cnt     'MENGE'     CTNM      text-016   space    space ' ',
      ' ' loc_cnt     'shortage'  CTNM      TEXT-017   space    space ' ',
      ' ' loc_cnt     'EBELN'     CTNM      text-018   space    space ' '.
  PERFORM sub_print_data.
*&      Form  SUB_WRITE
      text
     -->:             text
     -->P_CHECK       text
     -->P_CNT         text
     -->P_FIELD_NAME  text
     -->P_TAB_NAME    text
     -->P_SEL_TEXT    text
     -->P_DO_SUM      text
     -->P_NO_ZERO     text
     -->P_INPUT       text
FORM sub_write USING:
                   p_check       TYPE any
                   p_cnt         TYPE any
                   p_field_name  TYPE any
                   p_tab_name    TYPE any
                   p_sel_text    TYPE any
                   p_do_sum      TYPE any
                   p_no_zero     TYPE any
                   p_input       TYPE any.
  CLEAR: wa_fieldcat.
  P_CNT = P_CNT + 1.
  wa_fieldcat-col_pos   =   p_cnt.
  wa_fieldcat-fieldname =   p_field_name.
  wa_fieldcat-tabname   =   p_tab_name .
  wa_fieldcat-seltext_l =   p_sel_text.
  wa_fieldcat-do_sum    =   p_do_sum .
  wa_fieldcat-no_zero   =   p_no_zero.
  wa_fieldcat-input     =   p_input.
  wa_fieldcat-checkbox  =   p_check.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
ENDFORM.                    "SUB_WRITE
*&      Form  SUB_SELECTION
      selection from screen & condition checking                     *
FORM sub_selection.
    SELECT mblnr mjahr zeile matnr lsmng menge  ebeln ebelp
    INTO CORRESPONDING FIELDS OF TABLE t_mseg
      FROM mseg
    WHERE ( bwart = '105' ) OR ( bwart = '101' )
    AND    werks  IN s_plant
    AND    matnr  IN s_matnr.
    l_mseg-shortage = l_mseg-lsmng - l_mseg-menge.
   modify shortage l_mseg-shortage shortage from l_mseg-shortage.
   TRY.
   update t_mseg set t_mseg-shortage = l_mseg-shortage
   where t_mseg-mblnr= l_mseg-mblnr
   CATCH cx_sy_dynamic_osql_error.
   MESSAGE `Error in update!` TYPE 'I'.
   ENDTRY.
  IF NOT s_datum[] IS INITIAL.
    SELECT mblnr mjahr budat
    FROM mkpf
    INTO TABLE t_mkpf
    WHERE budat IN s_datum.
  ENDIF.
  IF NOT t_mkpf[] IS  INITIAL.
   LOOP AT  t_mseg.
      CLEAR l_tabix.
      l_tabix = sy-tabix.
      CLEAR t_mkpf.
      READ TABLE t_mkpf WITH KEY mblnr = t_mseg-mblnr
                                 mjahr = t_mseg-mjahr.
      IF sy-subrc <> 0.
        CLEAR t_mseg-delflag.
        t_mseg-delflag = 'X'.
        MODIFY t_mseg INDEX l_tabix.
        CLEAR  t_mseg.
      Else.
        t_mseg-budat = t_mkpf-budat.
       t_mseg-shortage = t_mseg-lsmng - t_mseg-menge.
        MODIFY t_mseg INDEX l_tabix.
        CLEAR  t_mseg.
      ENDIF.
    ENDLOOP.
    DELETE t_mseg WHERE delflag = 'X'.
  ENDIF.
ENDFORM.                    "SUB_SELECTION
*&      Form  SUB_GETDATA
      obtain values from database
FORM sub_getdata.
  l_mseg[] = t_mseg[].
  IF NOT l_mseg IS INITIAL.
    SORT   l_mseg BY ebeln ebelp.
    DELETE ADJACENT DUPLICATES FROM l_mseg COMPARING  ebeln ebelp.
  ENDIF.
  IF NOT l_mseg[] IS INITIAL.
    SELECT ebeln ebelp konnr
    INTO TABLE t_ekpo
    FROM ekpo
    FOR ALL ENTRIES IN l_mseg
    WHERE ebeln = l_mseg-ebeln.
  ENDIF.
  IF NOT l_mseg IS INITIAL.
    SORT   l_mseg BY ebeln.
    DELETE ADJACENT DUPLICATES FROM l_mseg COMPARING  ebeln.
  ENDIF.
  IF NOT l_mseg[] IS INITIAL.
    SELECT ebeln bsart
    INTO TABLE t_ekko
    FROM ekko
    FOR ALL ENTRIES IN l_mseg
    WHERE ebeln = l_mseg-ebeln.
  ENDIF.
ENDFORM.                    "SUB_GETDATA
&      Form  SUB_PRINT_DATA                                          &
&      Print Data                                                    &
FORM sub_print_data .
  IF NOT t_mseg[] IS INITIAL.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
                   EXPORTING
                I_INTERFACE_CHECK                 = ' '
                I_BYPASSING_BUFFER                = ' '
                I_BUFFER_ACTIVE                   = ' '
                I_CALLBACK_PROGRAM                = ' '
                I_CALLBACK_PF_STATUS_SET          = ' '
                I_CALLBACK_USER_COMMAND           = ' '
                I_CALLBACK_TOP_OF_PAGE            = ' '
                I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
                I_CALLBACK_HTML_END_OF_LIST       = ' '
                I_STRUCTURE_NAME                  =
                I_BACKGROUND_ID                   = ' '
                I_GRID_TITLE                      =
                I_GRID_SETTINGS                   =
                IS_LAYOUT                         =
                  it_fieldcat                       = it_fieldcat
                IT_EXCLUDING                      =
                IT_SPECIAL_GROUPS                 =
                IT_SORT                           =
                IT_FILTER                         =
                IS_SEL_HIDE                       =
                I_DEFAULT                         = 'X'
                I_SAVE                            = ' '
                IS_VARIANT                        =
                IT_EVENTS                         =
                IT_EVENT_EXIT                     =
                IS_PRINT                          =
                IS_REPREP_ID                      =
                I_SCREEN_START_COLUMN             = 0
                I_SCREEN_START_LINE               = 0
                I_SCREEN_END_COLUMN               = 0
                I_SCREEN_END_LINE                 = 0
                I_HTML_HEIGHT_TOP                 = 0
                I_HTML_HEIGHT_END                 = 0
                IT_ALV_GRAPHICS                   =
                IT_HYPERLINK                      =
                IT_ADD_FIELDCAT                   =
                IT_EXCEPT_QINFO                   =
                IR_SALV_FULLSCREEN_ADAPTER        =
              IMPORTING
                E_EXIT_CAUSED_BY_CALLER           =
                ES_EXIT_CAUSED_BY_USER            =
                    TABLES
                      t_outtab                          = t_mseg
              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.
    CLEAR: wa_fieldcat.
  ELSE.
    MESSAGE text-019 TYPE 'S'.
  ENDIF.
ENDFORM.                    " SUB_PRINT_DATA
&      Form  sub_updt_ebeln                                          &
&      Update PO data                                                &
FORM sub_updt_ebeln .
DATA: l_tabix type sytabix.
  CLEAR t_mseg.
  LOOP AT t_mseg.
    clear l_tabix.
    l_tabix = sy-tabix.
    CLEAR t_ekko.
    READ TABLE t_ekko WITH KEY ebeln = t_mseg-ebeln
                               bsart = 'ZDS'.
    IF sy-subrc = 0.
      clear t_ekpo.
      READ TABLE t_ekpo WITH KEY ebeln = t_mseg-ebeln
                                 ebelp = t_mseg-ebelp.
      IF sy-subrc <> 0.
         t_mseg-ebeln = t_ekpo-konnr.
      Endif.
    Endif.
   t_mseg-shortage = t_mseg-lsmng - t_mseg-menge.
    MODIFY t_mseg index l_tabix.
    clear  t_mseg.
  ENDLOOP.
ENDFORM.                    " sub_updt_ebeln
Now in the output there is a field shortage which is being calculated using the formula l_mseg-shortage = l_mseg-lsmng - l_mseg-menge.
But I am unable to update it to the t_mseg table......
Can anybody help me out?
Regards
Sobhan

REPORT  zmm_matl_desc
LINE-COUNT 40
LINE-SIZE 80
NO STANDARD PAGE HEADING.
***************************DATA DECLARATION**************************
TYPE-POOLS: slis.
TABLES: mseg, mkpf.
DATA: BEGIN OF t_mseg OCCURS 0,
      mblnr LIKE mseg-mblnr,
      mjahr LIKE mseg-mjahr,
      zeile LIKE mseg-zeile,
      matnr LIKE mseg-matnr,
      lsmng LIKE mseg-lsmng,
      menge LIKE mseg-menge,
      ebeln LIKE mseg-ebeln,
      werks LIKE mseg-werks,
      ebelp LIKE mseg-ebelp,
      budat LIKE mkpf-budat,
      shortage type f,
      delflag TYPE c,
     END OF t_mseg.
DATA: l_mseg LIKE t_mseg OCCURS 0 with header line.
data: mseg_wa like t_mseg.
DATA: BEGIN OF t_mkpf OCCURS 0,
      mblnr LIKE mkpf-mblnr,
      mjahr LIKE mkpf-mjahr,
      budat LIKE mkpf-budat,
    END OF t_mkpf.
DATA:   it_fieldcat TYPE slis_t_fieldcat_alv,
        wa_fieldcat TYPE slis_fieldcat_alv,
        loc_cnt TYPE i.
DATA: l_tabix TYPE sytabix.
DATA: BEGIN OF t_ekko OCCURS 0,
      ebeln LIKE ekko-ebeln,
      bsart LIKE ekko-bsart,
     END OF t_ekko.
DATA: BEGIN OF t_ekpo OCCURS 0,
        ebeln LIKE ekpo-ebeln,
        ebelp LIKE ekpo-ebeln,
        konnr LIKE ekpo-konnr,
     END OF t_ekpo.
**************************SELECTION SCREEN***************************
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_plant    FOR t_mseg-werks OBLIGATORY,
                s_matnr    FOR t_mseg-matnr,
                s_datum    FOR t_mseg-budat .
SELECTION-SCREEN: END OF BLOCK b1.
START-OF-SELECTION.
  PERFORM sub_selection.
  PERFORM sub_getdata.
  PERFORM sub_updt_ebeln.
END-OF-SELECTION.
CONSTANTS CTNM(6) TYPE C VALUE 't_mseg'.
  PERFORM sub_write USING:
COL_POS          FIELDNM      TABNAME     SEL-TEXT   DO-SUM  NO-ZERO
      ' ' loc_cnt     'MBLNR'     CTNM      text-011   space    space ' ',
      ' ' loc_cnt     'ZEILE'     CTNM      text-012   space    space ' ',
      ' ' loc_cnt     'BUDAT'     CTNM      text-013   space    space ' ',
      ' ' loc_cnt     'MATNR'     CTNM      text-014   space    space ' ',
      ' ' loc_cnt     'LSMNG'     CTNM      text-015   space    space ' ',
      ' ' loc_cnt     'MENGE'     CTNM      text-016   space    space ' ',
      ' ' loc_cnt     'shortage'  CTNM      TEXT-017   space    space ' ',
      ' ' loc_cnt     'EBELN'     CTNM      text-018   space    space ' '.
  PERFORM sub_print_data.
*&      Form  SUB_WRITE
      text
     -->:             text
     -->P_CHECK       text
     -->P_CNT         text
     -->P_FIELD_NAME  text
     -->P_TAB_NAME    text
     -->P_SEL_TEXT    text
     -->P_DO_SUM      text
     -->P_NO_ZERO     text
     -->P_INPUT       text
FORM sub_write USING:
                   p_check       TYPE any
                   p_cnt         TYPE any
                   p_field_name  TYPE any
                   p_tab_name    TYPE any
                   p_sel_text    TYPE any
                   p_do_sum      TYPE any
                   p_no_zero     TYPE any
                   p_input       TYPE any.
  CLEAR: wa_fieldcat.
  P_CNT = P_CNT + 1.
  wa_fieldcat-col_pos   =   p_cnt.
  wa_fieldcat-fieldname =   p_field_name.
  wa_fieldcat-tabname   =   p_tab_name .
  wa_fieldcat-seltext_l =   p_sel_text.
  wa_fieldcat-do_sum    =   p_do_sum .
  wa_fieldcat-no_zero   =   p_no_zero.
  wa_fieldcat-input     =   p_input.
  wa_fieldcat-checkbox  =   p_check.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
ENDFORM.                    "SUB_WRITE
*&      Form  SUB_SELECTION
      selection from screen & condition checking                     *
FORM sub_selection.
    SELECT mblnr mjahr zeile matnr lsmng menge  ebeln ebelp
    INTO CORRESPONDING FIELDS OF TABLE t_mseg
      FROM mseg
    WHERE ( bwart = '105' ) OR ( bwart = '101' )
    AND    werks  IN s_plant
    AND    matnr  IN s_matnr.
*********************************Calculation of shortage****************************************
    LOOP at t_mseg.
    mseg_wa-shortage = t_mseg-lsmng - t_mseg-menge.
    ENDLOOP.
    modify t_mseg from mseg_wa TRANSPORTING shortage where t_mseg-mblnr = mblnr.
    CLEAR mseg_wa.
  IF NOT s_datum[] IS INITIAL.
    SELECT mblnr mjahr budat
    FROM mkpf
    INTO TABLE t_mkpf
    WHERE budat IN s_datum.
  ENDIF.
  IF NOT t_mkpf[] IS  INITIAL.
   LOOP AT  t_mseg.
      CLEAR l_tabix.
      l_tabix = sy-tabix.
      CLEAR t_mkpf.
      READ TABLE t_mkpf WITH KEY mblnr = t_mseg-mblnr
                                 mjahr = t_mseg-mjahr.
      IF sy-subrc <> 0.
        CLEAR t_mseg-delflag.
        t_mseg-delflag = 'X'.
        MODIFY t_mseg INDEX l_tabix.
        CLEAR  t_mseg.
      Else.
        t_mseg-budat = t_mkpf-budat.
       t_mseg-shortage = t_mseg-lsmng - t_mseg-menge.
        MODIFY t_mseg INDEX l_tabix.
        CLEAR  t_mseg.
      ENDIF.
    ENDLOOP.
    DELETE t_mseg WHERE delflag = 'X'.
  ENDIF.
ENDFORM.                    "SUB_SELECTION
*&      Form  SUB_GETDATA
      obtain values from database
FORM sub_getdata.
  l_mseg[] = t_mseg[].
  IF NOT l_mseg IS INITIAL.
    SORT   l_mseg BY ebeln ebelp.
    DELETE ADJACENT DUPLICATES FROM l_mseg COMPARING  ebeln ebelp.
  ENDIF.
  IF NOT l_mseg[] IS INITIAL.
    SELECT ebeln ebelp konnr
    INTO TABLE t_ekpo
    FROM ekpo
    FOR ALL ENTRIES IN l_mseg
    WHERE ebeln = l_mseg-ebeln.
  ENDIF.
  IF NOT l_mseg IS INITIAL.
    SORT   l_mseg BY ebeln.
    DELETE ADJACENT DUPLICATES FROM l_mseg COMPARING  ebeln.
  ENDIF.
  IF NOT l_mseg[] IS INITIAL.
    SELECT ebeln bsart
    INTO TABLE t_ekko
    FROM ekko
    FOR ALL ENTRIES IN l_mseg
    WHERE ebeln = l_mseg-ebeln.
  ENDIF.
ENDFORM.                    "SUB_GETDATA
&      Form  SUB_PRINT_DATA                                          &
&      Print Data                                                    &
FORM sub_print_data .
  IF NOT t_mseg[] IS INITIAL.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
                   EXPORTING
                I_INTERFACE_CHECK                 = ' '
                I_BYPASSING_BUFFER                = ' '
                I_BUFFER_ACTIVE                   = ' '
                I_CALLBACK_PROGRAM                = ' '
                I_CALLBACK_PF_STATUS_SET          = ' '
                I_CALLBACK_USER_COMMAND           = ' '
                I_CALLBACK_TOP_OF_PAGE            = ' '
                I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
                I_CALLBACK_HTML_END_OF_LIST       = ' '
                I_STRUCTURE_NAME                  =
                I_BACKGROUND_ID                   = ' '
                I_GRID_TITLE                      =
                I_GRID_SETTINGS                   =
                IS_LAYOUT                         =
                  it_fieldcat                       = it_fieldcat
                IT_EXCLUDING                      =
                IT_SPECIAL_GROUPS                 =
                IT_SORT                           =
                IT_FILTER                         =
                IS_SEL_HIDE                       =
                I_DEFAULT                         = 'X'
                I_SAVE                            = ' '
                IS_VARIANT                        =
                IT_EVENTS                         =
                IT_EVENT_EXIT                     =
                IS_PRINT                          =
                IS_REPREP_ID                      =
                I_SCREEN_START_COLUMN             = 0
                I_SCREEN_START_LINE               = 0
                I_SCREEN_END_COLUMN               = 0
                I_SCREEN_END_LINE                 = 0
                I_HTML_HEIGHT_TOP                 = 0
                I_HTML_HEIGHT_END                 = 0
                IT_ALV_GRAPHICS                   =
                IT_HYPERLINK                      =
                IT_ADD_FIELDCAT                   =
                IT_EXCEPT_QINFO                   =
                IR_SALV_FULLSCREEN_ADAPTER        =
              IMPORTING
                E_EXIT_CAUSED_BY_CALLER           =
                ES_EXIT_CAUSED_BY_USER            =
                    TABLES
                      t_outtab                          = t_mseg
              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.
    CLEAR: wa_fieldcat.
  ELSE.
    MESSAGE text-019 TYPE 'S'.
  ENDIF.
ENDFORM.                    " SUB_PRINT_DATA
&      Form  sub_updt_ebeln                                          &
&      Update PO data                                                &
FORM sub_updt_ebeln .
DATA: l_tabix type sytabix.
  CLEAR t_mseg.
  LOOP AT t_mseg.
    clear l_tabix.
    l_tabix = sy-tabix.
    CLEAR t_ekko.
    READ TABLE t_ekko WITH KEY ebeln = t_mseg-ebeln
                               bsart = 'ZDS'.
    IF sy-subrc = 0.
      clear t_ekpo.
      READ TABLE t_ekpo WITH KEY ebeln = t_mseg-ebeln
                                 ebelp = t_mseg-ebelp.
      IF sy-subrc <> 0.
         t_mseg-ebeln = t_ekpo-konnr.
      Endif.
    Endif.
   t_mseg-shortage = t_mseg-lsmng - t_mseg-menge.
    MODIFY t_mseg index l_tabix.
    clear  t_mseg.
  ENDLOOP.
ENDFORM.                    " sub_updt_ebeln
Hi........
Check the section 'Calcualtion of Shortage' and help me out whether this is the right code or not.........
Regards
Sobhan

Similar Messages

  • SharePoint Designer workflow gives Claims Authentication error for some users. Problem getting output claims identity. The specified user or domain group was not found.

    We have a SharePoint Enterprise 2013 system at RTM level.  We've installed Workflow Manager 1.0 by following the steps at
    http://technet.microsoft.com/en-us/library/jj658588.aspx.  For the final step of Validating the Installation we created a simple list-level workflow and verified that the workflow
    is invoked successfully.  This is working successfully, but only for a single user.  If other users in the same site collection try to invoke the workflow on this same list we get the ULS Log Error:
    Claims Authentication          af3zp Unexpected STS Call Claims Saml: Problem getting output claims identity. Exception: 'Microsoft.SharePoint.SPException: The specified user or domain group was not found. --->
    System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.
    followed by:
    Failed to issue new security token. Exception: Microsoft.SharePoint.SPException: The specified user or domain group was not found. ---> System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.
    (as details below).
    All accounts that are attempting to use the Test Workflow (both working and non-working user accounts) are valid AD accounts and are included in the User Profile Sync that runs nightly.  All have Contribute or Design permission level (and for testing,
    Full Control). 
    What could cause the Claims Authentication to fail when certain users attempt to launch the workflow?
    Thank you for your response.
    Jim Mac.
    08/29/2013 10:22:51.94  w3wp.exe (0x2020)                        0x26D8 SharePoint Foundation        
     Claims Authentication          af3zp Unexpected STS Call Claims Saml: Problem getting output claims identity. Exception: 'Microsoft.SharePoint.SPException: The specified user or domain group was
    not found. ---> System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.     at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType,
    Boolean forceSuccess)     at System.Security.Principal.NTAccount.Translate(Type targetType)     at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetProviderUserKeyClaim(IClaimsIdentity claimsIdentity,
    SPClaim loginClaim)     --- End of inner exception stack trace ---     at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetProviderUserKeyClaim(IClaimsIdentity claimsIdent... 94aa5c2d-fa45-9b83-b203-a92b20102583
    08/29/2013 10:22:51.94* w3wp.exe (0x2020)                        0x26D8 SharePoint Foundation        
     Claims Authentication          af3zp Unexpected ...ity, SPClaim loginClaim)     at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetProviderUserKey(String
    encodedIdentityClaimSuffix)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.CreateTokenCacheReferenceFromTokenSignature(SPRequestInfo requestInfo, IClaimsIdentity identity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.AugmentTokenCacheReferenceClaim(SPRequestInfo
    requestInfo, IClaimsIdentity identity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.AugmentOutputIdentityForRequest(SPRequestInfo requestInfo, IClaimsIdentity outputIdentity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetOutputClaimsIdentity(IClaimsPrincipal
    principal, RequestSecurityToken request, Scope scope)'. 94aa5c2d-fa45-9b83-b203-a92b20102583
    08/29/2013 10:22:51.94  w3wp.exe (0x2020)                        0x26D8 SharePoint Foundation        
     Claims Authentication          fo1t Monitorable STS Call: Failed to issue new security token. Exception: Microsoft.SharePoint.SPException: The specified user or domain group was not found. --->
    System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.     at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)    
    at System.Security.Principal.NTAccount.Translate(Type targetType)     at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetProviderUserKeyClaim(IClaimsIdentity claimsIdentity, SPClaim loginClaim)    
    --- End of inner exception stack trace ---     at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetProviderUserKeyClaim(IClaimsIdentity claimsIdentity, SPClaim logi... 94aa5c2d-fa45-9b83-b203-a92b20102583
    08/29/2013 10:22:51.94* w3wp.exe (0x2020)                        0x26D8 SharePoint Foundation        
     Claims Authentication          fo1t Monitorable ...nClaim)     at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetProviderUserKey(String encodedIdentityClaimSuffix)    
    at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.CreateTokenCacheReferenceFromTokenSignature(SPRequestInfo requestInfo, IClaimsIdentity identity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.AugmentTokenCacheReferenceClaim(SPRequestInfo
    requestInfo, IClaimsIdentity identity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.AugmentOutputIdentityForRequest(SPRequestInfo requestInfo, IClaimsIdentity outputIdentity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetOutputClaimsIdentity(IClaimsPrincipal
    principal, RequestSecurityToken request, Scope scope)     at Microsoft.IdentityModel.Securi... 94aa5c2d-fa45-9b83-b203-a92b20102583
    08/29/2013 10:22:51.94* w3wp.exe (0x2020)                        0x26D8 SharePoint Foundation        
     Claims Authentication          fo1t Monitorable ...tyTokenService.SecurityTokenService.Issue(IClaimsPrincipal principal, RequestSecurityToken request)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.Issue(IClaimsPrincipal
    principal, RequestSecurityToken request) 94aa5c2d-fa45-9b83-b203-a92b20102583

    Hi Aries,
    I am facing issue with work flow where Workflow goes to Suspend mode.
    I am facing an issue with SP2013 Custom Workflow developed using Visual Studio 2012.
    Objective of the Custom workflow: User fills the form and submit, list get updated and workflow will initiate and go for the process.
    Issue: After the deployment of WF, for first time when user is filling the form and submit, list is getting updated. But the Workflow Goes to "Suspend" mode. (
    This Custom Workflow has a configuration file where we are providing other details including ID of Impersonator (farm is running under Claim Based Authentication).
    Work flow works fine once when the Impersonator initiate the workflow (Fill the form and submit for approval) and everything works fine after that.
    Following steps are already performed
    1.Make sure User profile synchronization is started.
    2.Make sure the user is not the SharePoint system user.
    3.Make sure the user by whom you are logged is available in User Profile list.
    4.Step full synchronization of User Profile Application.
    From the ULS logs it seems the user's security token from the STS service and User profile service is not being issued.
    Appreciate any thoughts or solution.
    Following are the log files.
    <-------------------------------Information taken from "http://YYYY.XXXXX.com/sites/xxxx/_layouts/15/wrkstat.aspx" where it is showing workflow status as "Suspend"------->
    http://yyyy.XXXX.com/sites/xxxx/_vti_bin/client.svc/sp.utilities.utility.ResolvePrincipalInCurrentcontext(input=@ParamUser,scopes='15',sources='15',inputIsEmailOnly='false',addToUserInfoList='False')?%40ParamUser='i%3A0%23.w%7CXXXXX%5Csps_biscomdev'
    Correlation Id: f5bd8793-a53c-2127-bfb1-70bc172425e8 Instance Id: 14a985a0-60c8-42db-a42c-c752190b8106
    RequestorId: f5bd8793-a53c-2127-0000-000000000000. Details: RequestorId: f5bd8793-a53c-2127-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401
    {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug>
    configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs."} {"x-ms-diagnostics":["3001000;reason=\"There
    has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["f5bd8793-a53c-2127-8654-672758a68234"],"request-id":["f5bd8793-a53c-2127-8654-672758a68234"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["34"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["Bearer
    realm=\"b14e1e0f-257f-42ec-a92d-377479e0ec8d\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,[email protected]79e0ec8d\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Date":["Fri, 10 Apr 2015 19:48:07 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    ULS Log
    04/16/2015 15:22:03.70 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation Authentication Authorization agb9s Medium OAuth request. IsAuthenticated=False, UserIdentityName=, ClaimsCount=0 f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.70 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation Runtime ajd6k Verbose Value for isAnonymousAllowed is : False f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.70 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation Runtime ajd6l Verbose Value for checkAuthenticationCookie is : True f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.70 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.70 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly)). Execution Time=18.7574119057031 f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.71 w3wp.exe (0x1C74) 0x1AB8 SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.73 PowerShell.exe (0x29BC) 0x2B9C SharePoint Foundation General narq Verbose Releasing SPRequest with allocation Id {AF89E1D7-C47F-467B-8FD4-D7DC768820EE} 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly)). Parent No 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. 
    04/16/2015 15:22:03.73 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly) f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.74 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Application Authentication Pipeline). Parent Request (GET:http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly) f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.74 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.74 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.74 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.74 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.74 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Claims Authentication ah25l Medium SPJsonWebSecurityBaseTokenHandler: ValidateActorIsSelfIssuer! Issuer '00000005-0000-0000-c000-000000000000' is not self
    issuer. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Getting Site Subscription Id). Parent [S2S] Getting token from STS and setting Thread Identity f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Getting Site Subscription Id). Execution Time=0.341314329055788 f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.75 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Reading token from Cache using token signature). Parent [S2S] Getting token from STS and setting Thread
    Identity f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.76 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General ajji6 High Unable to write SPDistributedCache call usage entry. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.76 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Reading token from Cache using token signature). Execution Time=7.5931438213516 f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.76 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Application Authentication ajwpx Medium SPApplicationAuthenticationModule: Failed to build cache key for user  f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.76 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Topology aeayb Medium SecurityTokenServiceSendRequest: RemoteAddress: 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc' Channel:
    'Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustChannelContract' Action: 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' MessageId: 'urn:uuid:fd5eba94-c39d-4667-89bd-089411c87f09' f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.77 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation Topology aeax9 Medium SecurityTokenServiceReceiveRequest: LocalAddress: 'http://c1vspwfe01.vitas.com:32843/SecurityTokenServiceApplication/securitytoken.svc'
    Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' MessageId: 'urn:uuid:fd5eba94-c39d-4667-89bd-089411c87f09' f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.77 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteSecurityTokenServiceOperationServer). Parent No f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation Claims Authentication ah25l Medium SPJsonWebSecurityBaseTokenHandler: ValidateActorIsSelfIssuer! Issuer '00000005-0000-0000-c000-000000000000' is not self
    issuer. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation General narq Verbose Releasing SPRequest with allocation Id {F17590DF-49D9-439D-86BC-5AE6416BB765} f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation General 6t8b Verbose Looking up  site
    http://inetdev/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation General narq Verbose Releasing SPRequest with allocation Id {3847D5A4-15C6-4AF9-B062-E22BB555DF4F} f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Portal Server User Profiles ae0s1 High Identity claims mapped to '0' user profiles. Claims: [nameid: '', nii: 'windows', upn: '', smtp: '', sip: ''], User Profiles: f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Portal Server User Profiles ae0sr Unexpected UserProfileException caught.. Exception Microsoft.Office.Server.Security.UserProfileNoUserFoundException: 3001002;reason=The
    incoming identity is not mapped to any user profile account in SharePoint. Possible cause is that no user profiles are created in user profile database. Contact your administrator.     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager
    upManager, IEnumerable`1 identityClaims)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.<>c__DisplayClass2.<GetMappedIdentityClaim>b__0() is thrown. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Portal Server User Profiles ae0su High The set of claims could not be mapped to a single user identity. Exception 3001002;reason=The incoming identity is not mapped
    to any user profile account in SharePoint. Possible cause is that no user profiles are created in user profile database. Contact your administrator. has occured.  f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation Claims Authentication ae0tc High The registered mappered failed to resolve to one identity claim. Exception: Microsoft.Office.Server.Security.UserProfileNoUserFoundException:
    3001002;reason=The incoming identity is not mapped to any user profile account in SharePoint. Possible cause is that no user profiles are created in user profile database. Contact your administrator.     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager
    upManager, IEnumerable`1 identityClaims)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.<>c__DisplayClass2.<GetMappedIdentityClaim>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()    
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated
    secureCode)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetMappedIdentityClaim(Uri context, IEnumerable`1 identityClaims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.GetClaimFromExternalMapper(Uri
    contextUri, List`1 claims) f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation Claims Authentication af3zp Unexpected STS Call Claims Saml: Problem getting output claims identity. Exception: 'Microsoft.Office.Server.Security.UserProfileNoUserFoundException:
    3001002;reason=The incoming identity is not mapped to any user profile account in SharePoint. Possible cause is that no user profiles are created in user profile database. Contact your administrator.     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager
    upManager, IEnumerable`1 identityClaims)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.<>c__DisplayClass2.<GetMappedIdentityClaim>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()    
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated
    secureCode)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetMappedIdentityClaim(Uri context, IEnumerable`1 identityClaims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.GetClaimFromExternalMapper(Uri
    contextUri, List`1 claims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.ResolveUserIdentityClaim(Uri contextUri, ClaimCollection inputClaims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.GetIdentityClaim(Uri
    contextUri, ClaimCollection inputClaims, SPCallingIdentityType callerType)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetLogonIdentityClaim(SPRequestInfo requestInfo, IClaimsIdentity inputIdentity, IClaimsIdentity
    outputIdentity, SPCallingIdentityType callerType)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.EnsureSharePointClaims(SPRequestInfo requestInfo, IClaimsIdentity outputIdentity, SPCallingIdentityType callerType)    
    at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.AugmentOutputIdentityForRequest(SPRequestInfo requestInfo, IClaimsIdentity outputIdentity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetOutputClaimsIdentity(IClaimsPrincipal
    principal, RequestSecurityToken request, Scope scope)'. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.78 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation Claims Authentication fo1t Monitorable STS Call: Failed to issue new security token. Exception: Microsoft.Office.Server.Security.UserProfileNoUserFoundException:
    3001002;reason=The incoming identity is not mapped to any user profile account in SharePoint. Possible cause is that no user profiles are created in user profile database. Contact your administrator.     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager
    upManager, IEnumerable`1 identityClaims)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.<>c__DisplayClass2.<GetMappedIdentityClaim>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()    
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated
    secureCode)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetMappedIdentityClaim(Uri context, IEnumerable`1 identityClaims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.GetClaimFromExternalMapper(Uri
    contextUri, List`1 claims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.ResolveUserIdentityClaim(Uri contextUri, ClaimCollection inputClaims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.GetIdentityClaim(Uri
    contextUri, ClaimCollection inputClaims, SPCallingIdentityType callerType)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetLogonIdentityClaim(SPRequestInfo requestInfo, IClaimsIdentity inputIdentity, IClaimsIdentity
    outputIdentity, SPCallingIdentityType callerType)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.EnsureSharePointClaims(SPRequestInfo requestInfo, IClaimsIdentity outputIdentity, SPCallingIdentityType callerType)    
    at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.AugmentOutputIdentityForRequest(SPRequestInfo requestInfo, IClaimsIdentity outputIdentity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetOutputClaimsIdentity(IClaimsPrincipal
    principal, RequestSecurityToken request, Scope scope)     at Microsoft.IdentityModel.SecurityTokenService.SecurityTokenService.Issue(IClaimsPrincipal principal, RequestSecurityToken request)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.Issue(IClaimsPrincipal
    principal, RequestSecurityToken request) f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x0C48) 0x1318 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteSecurityTokenServiceOperationServer). Execution Time=17.1551132895382 f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Claims Authentication fsq7 High SPSecurityContext: Request for security token failed with exception: System.ServiceModel.FaultException: The server was
    unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in
    order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message
    response)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken
    rst)     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo, SPRequestSecurityTokenProperties properties) f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Claims Authentication 8306 Critical An exception occurred when trying to issue security token: The server was unable to process the request due to an internal
    error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to
    the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Application Authentication Pipeline). Execution Time=52.3525336320678 f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Application Authentication ajezs High SPApplicationAuthenticationModule: Error authenticating request, Error details { Header: {0}, Body: {1} }.  Available
    parameters: 3001000;reason="There has been an error authenticating the request.";category="invalid_client" {"error_description":"The server was unable to process the request due to an internal error.  For more information
    about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as
    per the Microsoft .NET Framework SDK documentation and inspect the server trace logs."} . f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 8nca Medium Application error when access /sites/testrpa2/_vti_bin/client.svc, Error=The server was unable to process the request due to an internal
    error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to
    the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken
    rst, RequestSecurityTokenResponse& rstr)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst)     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context,
    Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo, SPRequestSecurityTokenProperties properties)     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForApplicationAuthentication(Uri context,
    SecurityToken onBehalfOf)     at Microsoft.SharePoint.IdentityModel.SPApplicationAuthenticationModule.<>c__DisplayClass4.<GetLocallyIssuedToken>b__3()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated
    secureCode)     at Microsoft.SharePoint.IdentityModel.SPApplicationAuthenticationModule.ConstructIClaimsPrincipalAndSetThreadIdentity(HttpApplication httpApplication, HttpContext httpContext, SPFederationAuthenticationModule fam)    
    at Microsoft.SharePoint.IdentityModel.SPApplicationAuthenticationModule.AuthenticateRequest(Object sender, EventArgs e)     at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.79 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8b Verbose Looking up context  site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in the farm SharePoint_Config_QA f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8d Verbose Looking up the additional information about the typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8f Verbose Site lookup is replacing
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly with the alternate access url
    http://inetdev. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8g Verbose Looking up typical site
    http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation General 6t8h Verbose Found typical site /sites/testrpa2 (407ba20c-079b-4b99-9e70-f86e6e13ddde) in web application SPWebApplication Name=SPDEV - 80. f5bd8793-a53c-2127-8485-418c67f110f6
    04/16/2015 15:22:03.80 w3wp.exe (0x1C74) 0x183C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://inetdev:80/sites/testrpa2/_vti_bin/client.svc/site/ReadOnly)). Execution Time=62.2890618779761 f5bd8793-a53c-2127-8485-418c67f110f6
    Regards
    Sakti

  • Problem with output string to command

    hey i have no idea why this aint working
    its a simple output string to command.
    what it is supposed to do is make a new directory given by the input string
    e.g. mkdir /home/luke/dep
    thanks for the help
    //methods input save files
         saveFile = JOptionPane.showInputDialog("Save Files To : ");
         //method command for saving files
         //Stream to write file
         FileOutputStream fout;          
         try { Process myProcess = Runtime.getRuntime().exec("mkdir" + saveFile );
          InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream());
          fout = new FileOutputStream ("file.txt");
          while ((ch = myIStreamReader.read()) != -1) { new PrintStream(fout).print((char)ch); } }
              catch (IOException anIOException) { System.out.println(anIOException); }

    What you fail to understand is that "aint working" and "Problem with output string to command" tells us absolutely squat about what your problem is. This is the same as saying to the doctor "I'm sick" and expecting him to cure you. As mentioned by Enceph you need to provide details. Do you get error messages? If so post the entire error and indicate the line of code it occurs on. Do you get incorrect output? Then post what output you get, what output you expect. The more effort you put into your question the more effort others will put in their replies. So until you can manage to execute a little common sense then the only responses you will get will be flames. Now is your tiny little brain able to comprehend that?

  • Problem: program outputs numbers in scientific notation

    my problem is that my program outputs the population in scientific notation instead of round the number to the nearest one. ex: it should say 30787949.57 instead of 3.078794957 E7
    // Calculates the poulation of Mexico City from 1995 to 2018.
    // displays the year and population
    class PopulationCalculator {
    static double r2(double x) {
         //this method rounds a double value to two decimal places.
    double z=((double)(Math.round(x*100)))/100;
    return z;
    } //end method r2
    public static void main(String args[]) {
         double population=15600000.0;
         double rate=0.03;
         System.out.println("Mexico City Population, rate="+r2(rate));
         System.out.println("Year    Population");
         for (int year=1995; year<=2018;year++)  {
             System.out.println(year+ "    "+r2(population));
        population+=rate*population;
        }//end for loop
        System.out.println("The population of Mexico City reaches 30 million on 02/13/17 at 5:38:34am");
        }//end main
        }//end PopulationCalculator
    {code/]

A: problem: program outputs numbers in scientific notation

Or upgrade to JDK 5.0 and user the new java.util.Formatter capability.
You control the rounding and get localization of the fomatted string at
no extra charge. A quick example:
class A {
    public static void main(String[] args) {
        double d = 30787949.57d;
        System.out.println(java.lang.String.format("%,17.2f", d));
}Example output for three different locales:
$ javac -g A.java
$ LC_ALL=fr_FR   java A
    30 787 949,57
$ LC_ALL=en_NZ   java A
    30,787,949.57
$ LC_ALL=it_IT     java A
    30.787.949,57For more information, refer to:
http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#formatter

Or upgrade to JDK 5.0 and user the new java.util.Formatter capability.
You control the rounding and get localization of the fomatted string at
no extra charge. A quick example:
class A {
    public static void main(String[] args) {
        double d = 30787949.57d;
        System.out.println(java.lang.String.format("%,17.2f", d));
}Example output for three different locales:
$ javac -g A.java
$ LC_ALL=fr_FR   java A
    30 787 949,57
$ LC_ALL=en_NZ   java A
    30,787,949.57
$ LC_ALL=it_IT     java A
    30.787.949,57For more information, refer to:
http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#formatter

  • Problems in output messages for PO.

    Hi Experts,
    We have a problems with output messages determination, if I have the PO without release approval the system send the output messages ( NEU ) I need that determination doesn't occurs when the po status is unapproved.
    For Explo: I create the PO 45...01 with status unapproved, the system generate tehe messages ( NEU ) but doesnt send to destination, the send only happened when i make the realese.
    There is a file with more details.
    [http://www.easy-share.com/1904410163/POunapproved.doc]
    Thanks,
    Gustavo

    Hi,
    In the release strategy,if the indicator changeablity is 1 the system will not allow you to take repeat out put.
    Solution is that you have to change the release indicator changeability to 6(SPRO>MM>Purchasing>Purchase order>Define release procedure for purchase order>Release indicator>Changeability).
    Another option is that in the message output of the PO in further data change despatch time to 3 and take a repeat out put.
    Also check,
    SPRO > MM > PO > Release Procedure for PO > Release indicator > Changeability of Purchasing Document During/After Release as 2 for Release ID - G and save
    And then Create go to chage mode of PO and repeat the messages
    Regards,
    Rahul.

  • I have a problem,i output 3500x600 25fps targa moive inAEcs4,mix sound in PR cs4,why moive is 29.97?

    i have a problem,i output 3500x600 25fps targa moive in ae cs4,mix sound in PR cs4,why moive change to 29.97 6.40min?
    BUT mix sound in PR cs3 , DISPLAY IS right..3500x600 25fps targa moive ...WHY ...IS IT PR CS4 BUG?

    Unfortunately, you have posted to the Premiere forum. This is for the precursor to PrPro, which has its own forum. I'm sure that Jeff, or Curt will move this over to that forum.
    Now, there are two places that one would set the FPS. The first will be in the Sequence Preset. If one chooses a Desktop Preset, they can then change nearly all of the settings. What is the FPS in your Sequence?
    Next, when doing Exports to many formats, one can also set the FPS. What was chosen in your case.
    Good luck,
    Hunt
    PS - what sort of display will handle 3500x600 material? Just curious.

  • Problems with output using html2fo function

    Hello,
    I have a problem with output when using html2fo function.
    My sample xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <RTECODE>
    <![CDATA[
    <table border="1">
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
    </tr>
    </table>
    ]]>
    </RTECODE>
    Can anybody explain why the rtf template output is different in pdf, rtf, excel ? It looks ok only in pdf.
    Thanks in advance.

    Check these
    http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#CHDCEEIJ
    https://blogs.oracle.com/xmlpublisher/entry/html_in_xml_support
    If helps mark
    Edited by: Srini VEERAVALLI on Feb 25, 2013 10:04 AM

  • Problem with output formatting.

    Hi all,
    I have an output as shown below.
    R1             R2                            R3                            R4           R5           R6            R7
    20000001      27.02.2007     3326          180080     D4          
    20000001     27.02.2007     3326          180080     D2          
    20000001     27.02.2007     3326          180080     D3          
    20000001     27.02.2007     3326          180080          D8H     
    20000001     27.02.2007     3326          180080               TT4
    my problem is that, i am not able to get my values in fields R6 and R7 in the first row. Can any one suggest me a method to get the values of R6 and R7 in to the first row it self.

    loop at t_plant.
         clear : p_test,x,y.
         call function 'CONVERSION_EXIT_ATINN_INPUT'
           exporting
             input  = 'HCC_MM_MAT_EQP'
           importing
             output = p_test.
         clear t_ausp1.
         refresh t_ausp1.
         select  objek
                 atinn
                 atzhl
                 atwrt
                 from ausp
                 into table t_ausp3
                 where objek = t_plant-matnr and
                       atinn = p_test.
         loop at t_ausp3.
           y = y + 1.
           t_ausp3-atwrt1 = t_ausp3-atwrt.
           modify t_ausp3.
           clear t_ausp3.
         endloop.
         clear : p_test.
         call function 'CONVERSION_EXIT_ATINN_INPUT'
           exporting
             input  = 'HCC_MM_MAT_MMO'
           importing
             output = p_test.
         clear t_ausp1.
         refresh t_ausp1.
         select  objek
                 atinn
                 atzhl
                 atwrt
                 from ausp
                 into table t_ausp2
                 where objek = t_plant-matnr and
                       atinn = p_test.
         loop at t_ausp2." where atzhl = t_ausp3-atzhl.
           x = x + 1.
           t_ausp2-atwrt = t_ausp2-atwrt.
           modify t_ausp2.
           clear t_ausp2.
         endloop.
         if ( ( x < y ) or ( x = y ) ).
           loop at t_ausp3." where atzhl = t_ausp2-atzhl.
             read table t_ausp2 with key objek = t_ausp3-objek.
                                        atzhl = t_ausp3-atzhl.
             move t_ausp2-atwrt to t_ausp3-atwrt2.
             modify t_ausp3.
             clear t_ausp3.
           endloop.
         elseif x > y.
           loop at t_ausp2." where atzhl = t_ausp3-atzhl.
             read table t_ausp2 with key objek = t_ausp3-objek.
                                        atzhl = t_ausp3-atzhl.
             move t_ausp2-atwrt to t_ausp3-atwrt2.
             append t_ausp3.
             clear t_ausp3.
           endloop.
         endif.
         clear : p_test.
         call function 'CONVERSION_EXIT_ATINN_INPUT'
           exporting
             input  = 'HCC_MM_MAT_OEM'
           importing
             output = p_test.
         clear t_ausp1.
         refresh t_ausp1.
         select  objek
                 atinn
                 atzhl
                 atwrt
                 from ausp
                 into table t_ausp1
                 where objek = t_plant-matnr and
                       atinn = p_test.
         loop at t_ausp3." where atzhl = t_ausp3-atzhl.
           read table t_ausp1 with key objek = t_ausp3-objek.
           move t_ausp1-atwrt to t_ausp3-atwrt3.
           modify t_ausp3.
           clear t_ausp3.
         endloop.
         if t_ausp1-atwrt is not initial.
           loop at t_ausp3." where objek = t_plant1-matnr.
             move-corresponding : t_plant to t_plant1.
             move : t_ausp3-atwrt1 to t_plant1-atwrt1.
             move : t_ausp3-atwrt2 to t_plant1-atwrt2.
             move : t_ausp3-atwrt3 to t_plant1-atwrt3.
             append t_plant1.
             clear t_plant1.
           endloop.
         else.
           move-corresponding : t_plant to t_plant1.
           append t_plant1.
           clear t_plant1.
         endif.
       endloop.
    this is the logic i wrote. whats happening is records are being appended

  • Dunning as PDF - Problem with output

    Hi experts,
    I have a problem with the dunning as email.
    Everything works fine here with the dífferent threads (BTE 1040) - but the output is not in PDF-format. When I look at SOST, the attachment ist in *.EXT format...
    Does anybody know what's the problem?
    Thanks
    Michael
    Additional information: The file is an .pdf file - when I save it as .pdf, I can open it normally...

    Hi,
    In transaction SCOT, check the format for Sapscript/Smartforms. Double click on the node for email. e.g .SMTP. In the pop-up window there is a section for supported address types. Beside 'Internet', click on the button SET. In here select PDF as the output format for Sapscript/Smartforms and for ABAP lists.
    Also in SCOT, check Setttings -> Device types for Format Conversion, ensure that PDF is the target format.
    Regards,
    Aidan

  • Error message when publishing and problems opening output file

    I have 5 projects linked together. When I publish one, I get a message that the files listed below are linked to the open project, and one or more of these projects may require exporting. I have tried to open these files and choose File | Export | Project to | but the options in the list (Flash 8 and Flash CS3) are both grayed out--on every one of these files. I'm publishing to Flash 9.
    I didn't think much about this message until a few reviewers said they can't open the project, or when they do, they don't see my playbar on the skin.
    One more thing--when an IT person was trying to help one reviewer open the output file, the IT person said "Oh, there's a problem with the code in line 25." I guess that's the html code? I'm not a programmer, but I can look at html code. What should I be seeing there in line 25?
    Is their problem opening the output file(s) related to my message about possibly needing to export files? Why might they be having problems getting the output file to open?
    Thanks for any insights you can provide!
    SAM

    Hi Sam
    It depends on a number of things. Are you certain you uploaded all the files involved? If not, there will be problems.
    The message about the linked files is quite simply advising you that you have links from that particular movie that will expect to find the files being linked to.
    If a person isn't seeing playback controls and you have included them, it's likely you haven't provided the correct link for them to open and play the file. Typically you provide a link to the HTML page Captivate creates. As long as all the output files are in the same place on the server, you should be good to go.
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Problem in output of project in mp3 format

    Hi
    I recently completed the arrangement of a 2:50 mins music project. When I exported its audio mixdown in WAV format, the ouput was perfect. However, when I am exporting the output in mp3 or wma format, the length strangely increases to 5:40 mins and the tempo of the music obviously becomes extremely slow. When I tried to convert the WAV output into mp3 by a free MP3 converter, all I could get was disturbance.
    Please help me out of this strange problem!

    What operating system?
    What version of Premiere Pro? Have you updated to Premiere Pro CS5 (5.0.2)? That update fixes a lot of problems.

  • Since numbers 3.1 rendering problem in output

    Since I upgraded to Numbers 3.1 all printed output is no more crispy, it looks like a rendering problem. My Number documents consist of normal text elements and tables, sometimes some charts. Scaling on printout is not activated. On the Mac display the problem does not exist, everything seems to be fine, also in large zoom factors. But printing the document produces some kind of unrendered, pixely output, comparable to a screenshot, by far not that crisp as in Numbers 3.0.1. Other applications such as Pages, Word, Excel are not affected, printouts are fine.
    What I did so far:
    - uninstall and reinstall numbers
    - changing, reinstalling the printer driver (HP Color LaserJet 2025 Series), I use the Postscript driver
    - converting the Number documents to Numbers '09 and opening them again
    - playing and testing with numerous zoom factors
    - changing fonts in the Numbers document
    ... all without any success.
    What helped me was:
    - Installing Numbers 3.0.1 again using TimeMachine, installed it parallel to Numbers 3.1
    - In Numbers 3.1 exporting the Numbers document to Numbers '09
    - Opening that document in Numbers 3.0.1
    - Printing the document in Numbers 3.0.1 --> Output ist fine and perfect.
    It seems to be a rendering problem, only in Numbers 3.0.1. The problem appears in all existing and new Numbers documents on Numbers 3.1.
    Here is my infrastructure:
    MacBook Air Mid 2013, OS X Mavericks 10.9.1
    Numbers 3.1 (1769)
    HP Color LaserJet CP2025dn using PostScript
    Many thanks for your help!
    speckch

    Perhaps you can see the problem in this version. This is a PRINTING problem. You cannot see it on screen in the pdf.
    This is a single Numbers document, printed directly from Numbers (3.1). The font is identical in both lines. The box color is identical (black) and the width of the line is identical (0.5 pt). It was printed on an HP Color LaserJet CP2025.
    The upper text is jagged. It may look fine on your screen, but it's not.
    This is very obvious if you look at the larger image that is linked to the image above. (Remember, a computer screen is only 72 dpi and this image is optimized for that. Printed text is much higher resolution. So, to get an accurate view on your screen of how jagged the text is when printed, you need to look at it magnified. Right-click on the image above to open the image in a new tab, and you should get the full size.)
    Also, the because the upper image is lower resolution (jaggies), the narrow line cannot print accurately. Thus, it appears blueish. When you look at the full-size image, you can see how jagged the line is and the mix of dots (red and blue, predominantly) that was output by the printer. In contrast, the lower text box is smooth and black.
    I don't know where the problem lies, but I have not experienced anything like this on any other program I currently use. It's a postscript printer, and I suspect that something's gone wrong in the postscript output associated with tables and the printer is printing the screen view, not the higher resolution printer data. But that's just a guess. And as far as I know, it's not something anyone other than Apple can fix.
    And, of course, since you can't see this problem on screen in the pdf, no matter how much you "zoom" in, you won't know if your files will print badly until you test it. Or, worse, your client does.
    Bummer.

  • Problem in output file generation in AL11 tcode - need quick help

    Hi experts,
    Scenario:- Proxy to File ( file is generated in AL11 directory folder.
    Probelm:
    Last field value is generated with correct values in SXMB_MONI output payload, But when I open a file in AL11 the last field fiew value are getting trimmed. Also when I get the dump of file - file also has the same trimmed value.
    For example: Expected value in MONI is 12345 where as in AL11 i m getting 1234
    I have reduce the length of previous fields and run the scenario again - for this scenario all the values are coming in AL11 as well as in MONI.
    Is somthing to do with screen width length.
    Deepak Jaiswal.
    Edited by: deepak jaiswal on Aug 6, 2009 11:45 AM

    HI ,
          Its a problem with File Transfer tcode sxda_tools and AL11 sometimes. Ask your Basis team to give you file contents from PI Server directly.  This file should have right contents as you expected.
    I also faced the same problem and wasted lot of time to solve it.
    Hence, check the folder where you dump this file on application server and give this path to basis to provide you this file from server.
    Regards,
    Anurag Garg

  • Problem in output file generation in AL11 tcode

    Hi experts,
                     I am doing one proxy to file scenario.file to be generated as a fixed length format .when i run the scenario, i am getting all the values in output payload correctly in Sxmb_moni and file is also created.But when i scroll upto last to the file generated in ALL11 directory. I am not getting whole values that generated in output payload.In my case my last value is generating in output payload but i am getting trimmed value in file generated in al11 directory.when i save this text file also in local system , i am again only getting trimmed values as seen in All11 directory.when i tried with changing any field length value before that last field with small length(size)value.I am able to see the whole output payload value in file also while scrolling in the file generated in al11 directory

    >
    deepak jaiswal wrote:
    > Hi,
    >
    > I summed the fixed length of all fields and it's sum comes 515. But it displays me upto length 514 values in file generated in al11 only.
    >
    > Please help me to reslove this issue.
    >
    > Deepak jaiswal
    Since in AL11 you can have only 256 char in a row, so I hope you will be getting 3 rows in your case. Correct??
    First row 256
    2nd   row 256
    3rd   row   1
    Total     513
    So out will be 513 which is correct because from first 2 rows it has truncated 1 char from both rows. Please check your output length again to confirm.
    So it is not a problem neither your's nor AL11's. When you write your file at legacy system then it will show the correct data or use FTP adapter and write the file on your local machine to see all the char.
    I hope this solves your problem.

  • Problem with output in smart forms

    Hi All,
    I am getting some problem with the field list in smartforms. When i tried to drag and drop some fields its not allowing me drop in text editor. So i hard code some of the fields and some systems fields. But in ouput i am getting every thing like in the top its showing "Print Preview of page 001 of 007. Its showing all the Filed descriptions and every thing. But its displaying all the field values and system values as &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
                   &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
                   &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
    Untill end of loop for all pages. In the same way for each end of the page i am trying to print out &sy-pagno& but for evry page i am getting only the &sy-pagno& but not the page number.
    When i debug the internal table itab is populated with the data.I dont know why the field list is not allowing me to drag and drop fields and when i hard code why i am getting output like that.
    Some where i read that the we have to change in cofiguration of smartform in order to drag and drop is it right?
    Suggest me how to correct this error.

    Hi Ben..
    You cannot drag&Drop the Fields into Text Editor ..
    You have to do this in Graphical PC Editor (This will be the default editor Generally)
    Otherwise you have to use the Icons INSERT FIELD(+) DELETE FIELD ( - )
    On the Toolbar above the PC Editor.
    Remember your field should be displayed with Gray shade. then only the Value of the Symbol is displayed. Otherwise it will be displaying the Symbol name as it is.
    For page no You have to use the System field of Smartforms &SFSY-PAGE&
    not &sy-pagno&.
    <b>Reward if Helpful</b>

  • Problem sending output directly to a shared printer

    Hi.
    I am having problems in generating character reports output directly to my printers, my situation is as follows:
    We have a Windows 2003 server running an application server 10g and a forms and reports application, if I connect a printer directly to the server my report output is printed perfectly, the problem starts when I try to print from any client machine, since windows does not let you rename a shared printer (it lets you rename the printer in the machine to witch it is connected but in any other machine sharing this printer Windows appends a "on machineX" to the printer name so this poses a problem when trying to pass a desname parameter to reports since it contains spaces.
    I solved this issue by adding a local printer to the server machine pointing to a local port that connects this printer to the physical printer in the client machine, this works all right to print from windows (notepad, DOS print command everything prints perfectly). But my reports won’t print. Whenever I send a report to this printer the job gets into the spool but in the status says "error-printing", this only happens when the jobs are sent directly to the printer. If I lookup the job in the reports server queue it appears as correctly finished.
    I can even lookup the .txt file from the reports cache and issuing a DOS print command prints the job without issues in my shared printer.
    Hope someone can help me out in this one since I am running out of ideas as to how to solve this issue.
    Thanks

    I forgot one important piece which is why I am asking the question. I am running the report within an Oracle 10g form. I pass all the parameters across to the Reports Server, as seen above. When I run via the PDF option, I just change the DesType to Cache and DesFormat =PDF. When I run with this, it works and displays the report in a new browser window.
    I just want to run the report with the exact same parameters but instead of generating a PDF, I want to run the report and send it directly to the printer without previewing it.
    Chris

  • Maybe you are looking for

    • Is a scrolling view available in the ical month view?

      Is it possible to view a month begining in the current week and not from the first week of the month? In Now Up to Date this is called a "scrolling view." If this is possible in ical how do I do it? Thanks for the help. JEBNY

    • How to find out the error in J2EE application without debugging

      Hi all, I am trying JCO example for Sales order in Netweaver Development Studio 2.0.3 and JCO 2.1.4. I am using Java class as a object and calling the class in servlet. I am checking one by one method ie systeminfo for getting connection and Salesord

    • Validation of fields

      I have four mandatury fields in a page and one submit button.Among that one was read only field and another one  is drop down list.If all four fields are populated then only save button should be enabled,otherwise it should be disabled. Can any one h

    • Can I move my system to a new HD without reinstalling?

      I know that reinstalling the OS and all the apps will give cleaner results, and I know I shouldn't do this, but is there a way to copy the entire OS/application drive to a second HD and still have it work if I erase the original drive? Here's my situ

    • Help me itunes is not a substitute for my own data by :(

      as do I get to connect my iphone to itunes data is not replaced by itunes?? the first time you connect it asked me if I wanted Replaces the data and put yes but now I want to revert