ABAP-HR Issue

Hi Experts,
I know payroll periods. By using that periods i want to get BEGDA and ENDDA.
Can anybody explain with code?

Hi Friend,
Use Function Modules:
FIRST_DAY_IN_PERIOD_GET
LAST_DAY_IN_PERIOD_GET
Check this link:
Cluster PCL2/B2 => function module
Regards,
Chandra Sekhar

Similar Messages

  • ABAP performance issues and improvements

    Hi All,
    Pl. give me the ABAP performance issue and improvement points.
    Regards,
    Hema

    Performance tuning for Data Selection Statement
    For all entries
    The for all entries creates a where clause, where all the entries in the driver table are combined with OR. If the number of
    entries in the driver table is larger than rsdb/max_blocking_factor, several similar SQL statements are executed to limit the
    length of the WHERE clause.
    The plus
    Large amount of data
    Mixing processing and reading of data
    Fast internal reprocessing of data
    Fast
    The Minus
    Difficult to program/understand
    Memory could be critical (use FREE or PACKAGE size)
    Some steps that might make FOR ALL ENTRIES more efficient:
    Removing duplicates from the the driver table
    Sorting the driver table
          If possible, convert the data in the driver table to ranges so a BETWEEN statement is used instead of and OR statement:
          FOR ALL ENTRIES IN i_tab
            WHERE mykey >= i_tab-low and
                  mykey <= i_tab-high.
    Nested selects
    The plus:
    Small amount of data
    Mixing processing and reading of data
    Easy to code - and understand
    The minus:
    Large amount of data
    when mixed processing isn’t needed
    Performance killer no. 1
    Select using JOINS
    The plus
    Very large amount of data
    Similar to Nested selects - when the accesses are planned by the programmer
    In some cases the fastest
    Not so memory critical
    The minus
    Very difficult to program/understand
    Mixing processing and reading of data not possible
    Use the selection criteria
    SELECT * FROM SBOOK.                   
      CHECK: SBOOK-CARRID = 'LH' AND       
                      SBOOK-CONNID = '0400'.        
    ENDSELECT.                             
    SELECT * FROM SBOOK                     
      WHERE CARRID = 'LH' AND               
            CONNID = '0400'.                
    ENDSELECT.                              
    Use the aggregated functions
    C4A = '000'.              
    SELECT * FROM T100        
      WHERE SPRSL = 'D' AND   
            ARBGB = '00'.     
      CHECK: T100-MSGNR > C4A.
      C4A = T100-MSGNR.       
    ENDSELECT.                
    SELECT MAX( MSGNR ) FROM T100 INTO C4A 
    WHERE SPRSL = 'D' AND                
           ARBGB = '00'.                  
    Select with view
    SELECT * FROM DD01L                    
      WHERE DOMNAME LIKE 'CHAR%'           
            AND AS4LOCAL = 'A'.            
      SELECT SINGLE * FROM DD01T           
        WHERE   DOMNAME    = DD01L-DOMNAME 
            AND AS4LOCAL   = 'A'           
            AND AS4VERS    = DD01L-AS4VERS 
            AND DDLANGUAGE = SY-LANGU.     
    ENDSELECT.                             
    SELECT * FROM DD01V                    
    WHERE DOMNAME LIKE 'CHAR%'           
           AND DDLANGUAGE = SY-LANGU.     
    ENDSELECT.                             
    Select with index support
    SELECT * FROM T100            
    WHERE     ARBGB = '00'      
           AND MSGNR = '999'.    
    ENDSELECT.                    
    SELECT * FROM T002.             
      SELECT * FROM T100            
        WHERE     SPRSL = T002-SPRAS
              AND ARBGB = '00'      
              AND MSGNR = '999'.    
      ENDSELECT.                    
    ENDSELECT.                      
    Select … Into table
    REFRESH X006.                 
    SELECT * FROM T006 INTO X006. 
      APPEND X006.                
    ENDSELECT
    SELECT * FROM T006 INTO TABLE X006.
    Select with selection list
    SELECT * FROM DD01L              
      WHERE DOMNAME LIKE 'CHAR%'     
            AND AS4LOCAL = 'A'.      
    ENDSELECT
    SELECT DOMNAME FROM DD01L    
    INTO DD01L-DOMNAME         
    WHERE DOMNAME LIKE 'CHAR%' 
           AND AS4LOCAL = 'A'.  
    ENDSELECT
    Key access to multiple lines
    LOOP AT TAB.          
    CHECK TAB-K = KVAL. 
    ENDLOOP.              
    LOOP AT TAB WHERE K = KVAL.     
    ENDLOOP.                        
    Copying internal tables
    REFRESH TAB_DEST.              
    LOOP AT TAB_SRC INTO TAB_DEST. 
      APPEND TAB_DEST.             
    ENDLOOP.                       
    TAB_DEST[] = TAB_SRC[].
    Modifying a set of lines
    LOOP AT TAB.             
      IF TAB-FLAG IS INITIAL.
        TAB-FLAG = 'X'.      
      ENDIF.                 
      MODIFY TAB.            
    ENDLOOP.                 
    TAB-FLAG = 'X'.                  
    MODIFY TAB TRANSPORTING FLAG     
               WHERE FLAG IS INITIAL.
    Deleting a sequence of lines
    DO 101 TIMES.               
      DELETE TAB_DEST INDEX 450.
    ENDDO.                      
    DELETE TAB_DEST FROM 450 TO 550.
    Linear search vs. binary
    READ TABLE TAB WITH KEY K = 'X'.
    READ TABLE TAB WITH KEY K = 'X' BINARY SEARCH.
    Comparison of internal tables
    DESCRIBE TABLE: TAB1 LINES L1,      
                    TAB2 LINES L2.      
    IF L1 <> L2.                        
      TAB_DIFFERENT = 'X'.              
    ELSE.                               
      TAB_DIFFERENT = SPACE.            
      LOOP AT TAB1.                     
        READ TABLE TAB2 INDEX SY-TABIX. 
        IF TAB1 <> TAB2.                
          TAB_DIFFERENT = 'X'. EXIT.    
        ENDIF.                          
      ENDLOOP.                          
    ENDIF.                              
    IF TAB_DIFFERENT = SPACE.           
    ENDIF.                              
    IF TAB1[] = TAB2[].  
    ENDIF.               
    Modify selected components
    LOOP AT TAB.           
    TAB-DATE = SY-DATUM. 
    MODIFY TAB.          
    ENDLOOP.               
    WA-DATE = SY-DATUM.                    
    LOOP AT TAB.                           
    MODIFY TAB FROM WA TRANSPORTING DATE.
    ENDLOOP.                               
    Appending two internal tables
    LOOP AT TAB_SRC.              
      APPEND TAB_SRC TO TAB_DEST. 
    ENDLOOP
    APPEND LINES OF TAB_SRC TO TAB_DEST.
    Deleting a set of lines
    LOOP AT TAB_DEST WHERE K = KVAL. 
      DELETE TAB_DEST.               
    ENDLOOP
    DELETE TAB_DEST WHERE K = KVAL.
    Tools available in SAP to pin-point a performance problem
          The runtime analysis (SE30)
          SQL Trace (ST05)
          Tips and Tricks tool
          The performance database
    Optimizing the load of the database
    Using table buffering
    Using buffered tables improves the performance considerably. Note that in some cases a stament can not be used with a buffered table, so when using these staments the buffer will be bypassed. These staments are:
    Select DISTINCT
    ORDER BY / GROUP BY / HAVING clause
    Any WHERE clasuse that contains a subquery or IS NULL expression
    JOIN s
    A SELECT... FOR UPDATE
    If you wnat to explicitly bypass the bufer, use the BYPASS BUFFER addition to the SELECT clause.
    Use the ABAP SORT Clause Instead of ORDER BY
    The ORDER BY clause is executed on the database server while the ABAP SORT statement is executed on the application server. The datbase server will usually be the bottleneck, so sometimes it is better to move thje sort from the datsbase server to the application server.
    If you are not sorting by the primary key ( E.g. using the ORDER BY PRIMARY key statement) but are sorting by another key, it could be better to use the ABAP SORT stament to sort the data in an internal table. Note however that for very large result sets it might not be a feasible solution and you would want to let the datbase server sort it.
    Avoid ther SELECT DISTINCT Statement
    As with the ORDER BY clause it could be better to avoid using SELECT DISTINCT, if some of the fields are not part of an index. Instead use ABAP SORT + DELETE ADJACENT DUPLICATES on an internal table, to delete duplciate rows.

  • BI Java and BI ABAP -RSPLAN issue

    Hi All
    We are working with BI system ,using BI 7.0 Java and BI ABAP as separate systems on same host.
    Already run the template intaller for BI Java and ABAP integration.
    But facing some issue ,when going ot BI ABAP and RSPLAN and clicking the Start Mideller
    it is opening a browser as http://host:8000/sap/public/myssocntl?sap-client-XXX
    Since this is not correct and it should open BI Java portal instead of ABAP stack page.
    Instead this should open a Url like this http://host:5XX00/webdynpro/dispatcher/sap.com/biplanworkbench1/Modeler?
    I check on BI ABAP system under SAP Reference IMG -> SAP Customizing Implementation Guide-> SAP NetWeaver _> Business Intelligence-> BI Integrated Planning -> Settings for Starting the Planning Modeler.
    There the default Url is BEx Portal Server and the url is        
    http://host:5XX00/webdynpro/dispatcher/sap.com/biplanworkbench1/Modeler
    Can anybody let me know why this is going to ABAP server instead it should go to Java.
    Regards
    Ajay
    Edited by: Ajay Sandal on Mar 10, 2009 2:31 PM

    Hi Ajay ..
    Good news that ur issue is resolved ..
    I have somewhat similar issue .. Hopu u can put some light ..
    I have Bi 7.o with Add on java  ,
    In RSPLAN from ABAP system , modular page is not coming . if i click on start moduler button in RSPLAN ..portal page is coming up and i have to give logging details .
    Please suggest .
    Thanks

  • ABAP Dump issue while accessing Gateway

    Hi
    We have recently upgraded our Gateway server to SP03. Eversince after service generation while accessing the XML/Metadata from the consumption page we get an HTTP error with Dump. Has anyone faced this problem before.
      <?xml version="1.0" encoding="utf-8" ?>
    - <error xmlns:xsi="http://www.w3.org/2001/XMLSchema-Instance">
      <code>HTTP/500/E/Internal Server Error</code>
      <message>Call of service /sap/opu/sdata/sap/Z14335_RFC_BP_1/ terminated because of an error. The following error text was processed in system AC1 : Syntax error in program /IWCOR/CL_REST_HTTP_HANDLER===CP .The error occurred on the application server njsapnet3. The termination type was: RABAX_STATE.If the termination type is RABAX_STATE, you will find more information on the cause of termination in system AC1 in transaction ST22. If the termination type is ABORT_MESSAGE_STATE, you will find more information on the cause of termination on the application server njsapnet3 in transaction SM21. If the termination type is ERROR_MESSAGE_STATE, you can search for further information in the trace file for the work process in transaction ST11 on the application server njsapnet3. You may also need to analyze the trace files of other work processes. If you do not yet have a user ID, contact your system adminmistrator.</message>
      </error>

    Hi All,
    I am also facing the same issue.
    When i am executing query/read operation my service it will works properly and getting data also,but when i am trying get X-CSRF token it throws error(ABAP Dump) .Can you please help me out this issue.
    Based on the Tx: ST11..getting below log.
    A  ABAP Program /IWCOR/CL_REST_HTTP_HANDLER===CP        .
    A  Source /IWCOR/CL_REST_HTTP_HANDLER===CCIMP      Line 40.
    A  Error Code ASSERTION_FAILED.
    A  Module abassert.c.
    A  Function ab_aabAssertionFailedRabax Line 1880.
    A  ** RABAX: level LEV_RX_STDERR completed.
    A  ** RABAX: level LEV_RX_RFC_ERROR entered.
    A  ** RABAX: level LEV_RX_RFC_ERROR completed.
    A  ** RABAX: level LEV_RX_RFC_CLOSE entered.
    A  ** RABAX: level LEV_RX_RFC_CLOSE completed.
    A  ** RABAX: level LEV_RX_IMC_ERROR entered.
    A  ** RABAX: level LEV_RX_IMC_ERROR completed.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE entered.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE completed.
    A  ** RABAX: level LEV_RX_ERROR_SAVE entered.
    A  ** RABAX: level LEV_RX_ERROR_SAVE completed.
    A  ** RABAX: level LEV_RX_ERROR_TPDA entered.
    A  ** RABAX: level LEV_RX_ERROR_TPDA completed.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    A  ** RABAX: level LEV_RX_END entered.
    A  ** RABAX: level LEV_RX_END completed.
    N
    N Thu Jan 03 15:00:58 2013
    N  *** ERROR => System ID and client from ticket are not the same than mine. [ssoxxkrn.c   1065]
    N  {root-id=0050569E07B31ED295B108EAC1527575}_{conn-id=0050569E07B31ED295B108EABC707575}_1
    N  *** ERROR => Neither was ticket issued by myself nor can I find issuer in TWPSSO2ACL (see note 1055856). [ssoxxkrn.c   1071]
    N  {root-id=0050569E07B31ED295B108EAC1527575}_{conn-id=0050569E07B31ED295B108EABC707575}_1
    i am getting based on Tx:ST22
    Category          
    ABAP Programming Error
    Runtime Errors    
    ASSERTION_FAILED
    ABAP Program      
    /IWCOR/CL_REST_HTTP_HANDLER===CP
    Application Component  OPU-FND-CCL
    Note: I am using SAP NW-GW-SP04
    Thanks,
    Syam

  • ABAP WP Issue in SAP MMC

    Dear Guru's,
    After upgrading kernel 133 in our solution manager, we're unable to see anything in ABAP WP Table of SAP MMC. But, we are able to login to SAP and work on it.
    Closed and reopened the MMC, still we are facing the issue.
    Kindly suggest what could be the reason.
    regards,
    Guna

    >
    BasisGuna wrote:
    > Dear Guru's,
    >
    > After upgrading kernel 133 in our solution manager, we're unable to see anything in ABAP WP Table of SAP MMC. But, we are able to login to SAP and work on it.
    >
    > Closed and reopened the MMC, still we are facing the issue.
    >
    > Kindly suggest what could be the reason.
    >
    > regards,
    >
    > Guna
    Hello Guna,
    Have you checked if sapmmc. dlls have the same version of disp+work.exe files from your new kernel? pls try to keep them consistent and register them for new versions.
    Else please first try to reboot the whole server after updating kernel.
    Regards
    Amit

  • ABAP program issue

    Dear All,
    I have written an ABAP program by which it writes few things on application server (overwrite mode).
    I have included this program in the Process Chain but it is giving dump first time when it is running "DATASET_NOT_OPEN" whereas the path and all directories are created on application server.
    When i try to repeat the process chain it is running successfully.
    Please help on the same.
    Regards,
    SS

    Check these links.
    Re: SHORT DUMP! Exception: CX_SY_FILE_OPEN_MODE
    CX_SY_FILE_OPEN_MODE - short dump on production but not in Dev and Test
    Re: catching an exception 'CX_SY_FILE_OPEN_MODE'
    Re: Issue in Uploading file to application server
    Thanks.

  • ABAP coding issues after BW upgrade

    Hello Gurus,
    We recently did a BW upgrade from version 3.5 to 7.31 and even since have been encountering few strange issues with many of our ABAP coding.
    For example, there is an APPEND statement in one of our Update Rules as below:
    APPEND <lw_rtab_wa> TO <lt_rtab>.
    Before upgrade, this was working as expected and the contents of <lw_rtab_wa> was getting transferred to <lt_rtab> without any issues.
    Now after upgrade, we find that the contents of <lw_rtab_wa> is being clubbed together in the 1st few columns of <lt_rtab>.
    Both the <lw_rtab_wa> & <lt_rtab> have the same fields, but the length of few fields in <lt_rtab> is bigger than that in <lw_rtab_wa>. For example DOC_NUMBER in <lw_rtab_wa> is of type C(10) while in <lt_rtab> it is C(20). This difference is causing the data of the 2nd field also to be over-writen in the DOC_NUMBER field of <lt_rtab>.
    Please let us know if you have encountered similar situations after your BW upgrade. Any possible solutions to this would be very much appreciated as this is causing PROD issues at the moment!
    Thanks
    Arvind

    Hi Arvind,
    After Upgrade In BW 7.3 or higher versions All data elements that use the domain RSCHAVL are converted from CHAR60 to SSTRING. thats the reason you are getting that syntax error.
    Take help of some ABAP programmer and try to change the syntax as suggested from below link.
    Just scroll down and check the same. even though link shows for BW 7.4 issues, its applicable for 7.3 too. Please let me know
    http://scn.sap.com/community/data-warehousing/bw/blog/2014/07/28/sap-bw-74-analysis-issues
    Thanks
    Ajay

  • MDM ABAP API  ISSUE ( server  is getting down )

    Hi Folks,
    I am trying to retrieve matching results using MDM ABAP API.
    I am spiting source and target records into lot of blocks dynamically
    in program. I am getting output 2 to 3 times if i can run program
    sequential after that server is getting down (before running program
    i am completely going out and rerunning).After server bring's up
    running couple of times and server getting down.
    Please help me how can i solve this issue.
    Thanks,
    Anil.

    Hi Anil,
    You can have a look at the below links can cross check the steps you have performed in establishing the connection correctly:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/00c49ffb-e5e5-2910-73ba-c85af1da5b0a
    ABAP APIs: Error "The connection is not trusted"
    Comaptible ABAP APIs for MDM 5.5 SP6 Patch 1
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/tip%2b%2bMDM%2bABAP-API%2b%2bThings%2bto%2bRemember%2b(for%2bStarters)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e060251e-b58d-2910-02a2-c9a1d60d9116
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • ABAP related issues in 4.7 to ECC 6.0 Upgrade

    Hi All,
    We are in the process of upgrade of SAP 4.7 non unicode to ECC 6.0 non unicode system .
    Please let me know what are the things we need to check& what are the issues related to ABAP will encounter in this process.
    Please provide the touch points which we need to take care.
    Regards,
    Reddy

    Hi
    While doing Upgrade You have to aware of all related program like BDC's , Screens related errors and all dictionary related problems.
    Some function modules may become obsolete, and some screens will change
    and some new fields will be added in the new versions etc.
    Also take care of SPAU and SPDD tcodes.
    You should be able to know about Unicode concept in sap.
    check this
    http://www.thespot4sap.com/upgrade_guide_v2.pdf#search=%22upGRADE%20STEPS%20-%20SAP%22
    also chk these 2 notes in service.sap.com
    Technical Upgrade is only a version upgrade without any functionality changes.
    The objects that are needed to be upgraded are:
    Includes
    Function Groups / Function Modules
    Programs / Reports
    OSS Notes
    SAP Repository Objects
    SAP Data Dictionary Objects
    Domains, Data Elements
    Tables, Structures and Views
    Module Pools, Sub Routine pools
    BDC Programs
    Print Programs
    SAP Scripts, Screens
    User Exits
    You can refer to the below links for more information on technical upgrade:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/07/upgradeFROMR3TOmySAPERP-PARTII&
    https://wiki.sdn.sap.com/wiki/display/profile/UPGRADEFROMR3TOmySAPERP-PARTIII
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/6d66647d9011d396b60000e82de14a/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
    Regards
    Anji

  • ABAP code issue

    Hello Team,
    We are facing ABAP coding performance issue in BW production and quality system. This is holding under production data loading.
    There is piece of code written in BW while loading data from one target to other
    Code:
    DELETE SOURCE_PACKAGE WHERE recordmode = 'X' OR recordmode = 'R'
    OR recordmode = 'D'.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE it_new_source
    FROM /bic/afao06pa100
    FOR ALL ENTRIES IN SOURCE_PACKAGE
    where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
    and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
    * Since the preceding tranformation in the data flow already aggregates
    *multiple occurences of single SO into one record the deletion of
    *duplicates
    * is obsolete
    *    SORT SOURCE_PACKAGE BY doc_number ASCENDING s_ord_item ASCENDING
    *    record DESCENDING.
    *    delete ADJACENT DUPLICATES FROM SOURCE_PACKAGE COMPARING doc_number
    *    s_ord_item.
    SORT SOURCE_PACKAGE BY /bic/fcckjobno /bic/fcckjitid.
    LOOP AT it_new_source INTO wa_new_source.
    READ TABLE SOURCE_PACKAGE WITH KEY
    /bic/fcckjobno = wa_source-/bic/fcckjobno
    /bic/fcckjitid = wa_source-/bic/fcckjitid
    BINARY SEARCH
    INTO wa_source.
    IF sy-subrc = 0.
    MOVE-CORRESPONDING wa_new_source TO ls_target_key.
    MOVE-CORRESPONDING wa_source TO wa_new_source.
    MOVE-CORRESPONDING ls_target_key TO wa_new_source.
    MODIFY it_new_source FROM wa_new_source.
    ENDIF.
    ENDLOOP.
    REFRESH SOURCE_PACKAGE.
    SOURCE_PACKAGE[] = it_new_source[].
    REFRESH it_new_source.
    Above code takes long time for execution.
    In production for 3930891 number or records it runs for an hour an hour and goes into infinite loop without loading any data.
    We have tried same data load in quality system. (BR1)
    For 68293 records load has executed for 8-9 hours and then completed successfully.
    I have tried editing code in BR1 system by removing  ‘INTO CORRESPONDING FIELDS OF TABLE’ and written plain selection of all fields. Performed ST05 trace by commenting other code. But still found it is taking time at select statement and not improvement in load run time at start routine.
    Also tried editing select statement like below but it took same time:
    SELECT /BIC/FCCKCANC PCA_DOCTYP PCA_DOCNO PCA_ITEMNO CHRT_ACCTS MATERIAL
    ACCOUNT COMP_CODE CO_AREA PROFIT_CTR VERSION PART_PRCTR FISCPER
    FISCVARNT /BIC/FCCKJITID /BIC/FCCKJOBNO RECORDMODE /BIC/FCCKCNTR
    /BIC/FCCKCNTN /BIC/FCCKEXIMP /BIC/FCCKJOBTP
    /BIC/FCCKINTST /BIC/FCCKMAJBN /BIC/FCCKALST /BIC/FCCHUBIND
    /BIC/FCCSFCLDT /BIC/FCCHDCLDT /BIC/FCCKETADT /BIC/FCCKETDDT
    /BIC/FCCFULFDT /BIC/FCCKHBL /BIC/FCCKCBL /BIC/FCCKJCRBY /BIC/FCCKLCRBY
    INTO TABLE it_new_source
    FROM /bic/afao06pa100
    FOR ALL ENTRIES IN SOURCE_PACKAGE
    where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
    and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
    Please suggest code improvement.
    Any data base improvement for tables?
    Any indexing improvement for tables?
    If required please get in touch with data base team for same.

    LOOP AT it_new_source INTO wa_new_source.
    do.
    READ TABLE SOURCE_PACKAGE
         INDEX W_TABIX
         INTO wa_source.
    IF SY-SUBRC NE SPACE.
       EXIT.
    ENDIF.
    IF     wa_new_source-/bic/fcckjobno lt wa_source-/bic/fcckjobno.
      exit.
    elseif wa_new_source-/bic/fcckjobno EQ wa_source-/bic/fcckjobno.
      MOVE-CORRESPONDING wa_new_source TO ls_target_key.
      MOVE-CORRESPONDING wa_source TO wa_new_source.
      MOVE-CORRESPONDING ls_target_key TO wa_new_source.
      MODIFY it_new_source FROM wa_new_source.
       EXIT.
    elseif wa_new_source-/bic/fcckjobno gt wa_source-/bic/fcckjobno.
      w_tabix = w_tabix + 1.
    endif.
    ENDIF.
    DONE.
    ENDLOOP.
    I put only for one field control, you must add the second field in the logic.
    With this kind of code you read only 1 time the two tables.
    This code comes from an old age name : R/2  
    regards
    Fred

  • ABAP query issue when logoff error message query not created

    Hi All ,
    I created a ABAP query using SQ01 . I saved it and i'm able to see the output . But , if i logoff from the system and relogin again to system and trying to execute the query , it is showing an error message
    " The query has not been created " Please help me , is there any settings change or i have to do any thing else ?
    Thanks & Regards ,
    Sabu

    Hi ,
    Yes you are right , when i try that way i can see , is it the correct solution ?
    i have one more issue , i created the query , i can display and execute the query , but no one in the same system able to display or execute the query . What should i do .
    Thanks & Regards ,
    Sabu.

  • Web dynpro ABAP- small issue after EHC1 upgrade

    Hi All,
    We have a Web dynpro ABAP report and it was working fine before the EHC1 upgrade. After the upgrade we noticed that the row count in ALV greed was disappeared.
    The report used to show 25 records per page and we were able to jump to the other pages by clicking on row count that was placed right below the report. Now report shows all the records and we only have scroll down option.
    Any idea where to look/ how to fix this issue?
    Regards,
    Mike

    In addition to applying that note, you also must deactivate Lightspeed rendering.  To me that's too extreme of a thing to do just to get paginators.  You loose the huge rendering performance improvements and it also means you can't use any of the new UI elements from 7.01.

  • Consume WSDL in ABAP proxy : Issue with name space

    Hi,
    I was trying to consume a WSDL in ABAP and I have created ABAP proxy using wizard in SE80 and also did the LPCONFIG.
    While calling the proxy methods it is throughing the "authrization failed" error because of the following issue.I have successfully executed same WSDL from some third party tools with out error.only difference I have observed in SOAP request is, Third party tools passing all name spaces at envelope level but in ABAP proxy it is not passing all name spaces at envelope level.
    1. SOAP genarated from WSDL in  third party tool.
    <<b>soap:Envelope</b> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="<b>http://schemas.xxxxx.com</b> ">
      <soap:Body>
        <tns:<b>GetKMContent</b>>
          <tns:request>
            <tns:clientID>1</tns:clientID>
            <tns:employeeID>307478</tns:employeeID>   
            <tns:languageCountryCode>en-US</tns:languageCountryCode>
            <tns:wscVariables>
              <tns:empcountry>US</tns:empcountry>         
            </tns:wscVariables>
          </tns:request>
        </tns:GetKMContent>
      </soap:Body>
    </soap:Envelope>
    SOAP genarated from WSDL in  ABAP proxy.
    <<b>soap-env:Envelope</b> xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header>
    <n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/">
    <TraceLevel xmlns="http://www.sap.com/webas/630/soap/features/runtime/tracing/">Full</TraceLevel>
    </n0:Trace></soap-env:Header>
    <soap-env:Body>
        <nr1:<b>GetKMContent</b> xmlns:nr1="<b>http://schemas.xxxxx.com</b> ">
             <nr1:request>
               <nr1:clientID>1</nr1:clientID>
               <nr1:employeeID>307478</nr1:employeeID>
               <nr1:languageCountryCode>en-US</nr1:languageCountryCode>
               <nr1:wscVariables>
               <nr1:empcountry>US</nr1:empcountry>
               </nr1:wscVariables>
            </nr1:request>
         </nr1:GetKMContent>
      </soap-env:Body>
    </soap-env:Envelope>
    I was trying to use the SOAP genarated in ABAP proxy in thrid party tool and end up with same "authrization failed " error. If I move the name space  <b>nr1</b> from <<u>nr1:GetKMContent xmlns:nr1="http://schemas.xxxxx.com "></u>  <b>GetKMContent</b> node to <b>soap-env:Envelope</b> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nr1="http://schemas.xxxxx.com "> then it is working fine.
    Question :Is there any way in ABAP proxy to pass name space at soap-env:Envelope level or is there any way to change the SOAP request once it is genarated from ABAP Proxy?. Is there any API to change SOAP information?
    Thanks,

    Hi Kavitha,
    I am also facing the same issue.
    Could you please share the solution if you have solved this.
    Thanks,
    Arun

  • MDM ABAP API issue

    Hi Floks,
    We are getting core dump and server is getting down.
    If i can run same program with same variant working couple of times
    sequentially after that getting this issue.
    Thanks,
    Anil.

    Hi Anil,
    You can have a look at the below links can cross check the steps you have performed in establishing the connection correctly:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/00c49ffb-e5e5-2910-73ba-c85af1da5b0a
    ABAP APIs: Error "The connection is not trusted"
    Comaptible ABAP APIs for MDM 5.5 SP6 Patch 1
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/tip%2b%2bMDM%2bABAP-API%2b%2bThings%2bto%2bRemember%2b(for%2bStarters)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e060251e-b58d-2910-02a2-c9a1d60d9116
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • ABAP UME Issues

    Hi All
    Wonder if someone could please help me out with this issue.
    I am trying to configure the UME on a portal to use the ABAP backend of an ERP. I have made the changes in the configtool and the engine comes up. But I am unable to login to the portal using the user defined on the ABAP with SAP_J2EE_ADMIN role.
    Wonder where I am going wrong.
    Thanks a bunch
    Hari

    What happens when you try to logon? Are you creating the user in the same client that the portal is pointing to?
    Thanks,
    GLM

  • Reinstallation SAP ABAP Netweaver issue message server not connected

    hi ,
    i am trying to reinstall SAP ABAP Netweaver but getting error in step 24 of 27. i am getting the following error.
    WARNING 2010-07-20 08:52:08.078 iaxxcmsclient.cpp:93
    CIaMsgClient::CIaMsgClient(localhost, 3900)
    Connect to message server (localhost/3900) failed: NIECONN_REFUSED.
    INFO 2010-07-20 08:52:08.078
    CJSlibModule::writeInfo_impl()
    State of instance NSP/DVEBMGS00 changed from ABAP: UNKNOWN to ABAP: UNKNOWN.
    WARNING 2010-07-20 08:52:37.171 iaxxcmsclient.cpp:93
    CIaMsgClient::CIaMsgClient(localhost, 3900)
    Connect to message server (localhost/3900) failed: NIECONN_REFUSED.
    WARNING 2010-07-20 08:53:07.156 iaxxcmsclient.cpp:93
    CIaMsgClient::CIaMsgClient(localhost, 3900)
    Connect to message server (localhost/3900) failed: NIECONN_REFUSED.
    WARNING 2010-07-20 08:53:36.125 iaxxcmsclient.cpp:93
    CIaMsgClient::CIaMsgClient(localhost, 3900)
    Connect to message server (localhost/3900) failed: NIECONN_REFUSED.
    Please do tell me how to resolve this issue.
    thanks,
    tanmaya

    Hi Tanmaya,
    Question: How to find whether the port is blocked or not?
    (A) You can check the message server port in txn SMMS or dev_ms trace in ST11 to verify if the port is correctly set. If it is and you cannot connect to the message server then you will need to find out which program/service is occupying port 3900. So please follow the steps below:-
    (A1) On Unix there is a program called LSOF available which shows ALL programs that occupies all ports. SAP Note [164937|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_cst/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d313634393337%7d] shows were you can get this program.
    (A2) On Windows the equilivent of LSOF is Process Explorer from the Sysinternals Suite. This is available on the MS website [here|http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx]. You can use this to filter by port.
    So using these programs you will be able to see which programs occupy all ports on your server and either remove or disable them.
    P.S. You can use SAP Note [421359|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_cst/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d343231333539%7d] to bind any port to any service on Unix including "protected" ports !!!
    Hope this helps
    Michael

Maybe you are looking for