Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

http://service.sap.com/licensekey link is not working

$
0
0

I install the SAP NetWeaver 7.02 SR1 ABAP Developer Edition. when I try to create program it will shows me the message

 

You are not registered as a developer.

Please register in the online service System (OSS).

In the OSS you will receive an access key.

 

user name    SAPUser

Access key    ?

 

Installation     INITIAL

 

I tried Tcode 'SLICENSE' and Request Lincense key link but it could not work. so how to get Developer Lincense key?

 

Pls Help me.

 

Regards

Mahesh


How to pass multiple records to RFC

$
0
0


Hi,

 

Need help to pass multiple material details to the RFC BAPI_SALESORDER_SIMULATE.

 

Regards,

Satish

Would like to debug the we21 function module.Not sure how to do it?

$
0
0

Hi All,

 

We are facing an issue with the WE21 function module , which is incorrectly putting the timestamp on the idoc file being created at AL11 folder.Is there a way we can debug the WE21 function module, i.e EDI_PATH_CREATE_CLIENT_DOCNUM.Kindly let me know.Thanks for all your help....

LOAD_PROGRAM_CLASS_MISMATCH

$
0
0

Dear all,

 

i have got some error in sap, when lo-gin in sap like LOAD_PROGRAM_CLASS_MISMATCH .

 

i have already used notes as below but till not problem solved .

 

0000162991   Generation tools for ABAP programs

0000351695   LOAD_PROGRAM_CLASS_MISMATCH

0000552778   Overwriter in program buffer

0001563925   LOAD_PROGRAM_CLASS_MISMATCH due to incorr. PUBLIC time stamp

 

I can't used any tcode when login in sap

 

Please give me solution for it

 

Please check the below dump :-

 

Category               ABAP Programming Error

Runtime Errors         LOAD_PROGRAM_CLASS_MISMATCH

ABAP Program           SAPLSHI1

Application Component  BC-CUS-TOL-HMT

Date and Time          25.06.2014 14:57:29

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|Short text                                                                                        |

|    Class interface was changed at runtime.                                                       |

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|What happened?                                                                                    |

|    Error in the ABAP Application Program                                                         |

|                                                                                                  |

|    The current ABAP program "SAPLSHI1" had to be terminated because it has                       |

|    come across a statement that unfortunately cannot be executed.                                |

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|Error analysis                                                                                    |

|    The section "PUBLIC" of the interface of the class "CL_GUI_ALV_GRID" was                      |

|     changed during                                                                               |

|    program flow, which caused inconsistencies at runtime.                                        |

|    The program "SAPLSEUF" uses the interface version 20140625122517.                             |

|    The program "SAPLSCP2" uses the interface version 20110908145540.                             |

|    The internal session was started at 20140625145727.                                           |

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|Trigger Location of Runtime Error                                                                 |

|    Program                                 SAPLSHI1                                              |

|    Include                                 LSHI1U19                                              |

|    Row                                     23                                                    |

|    Module type                             (FUNCTION)                                            |

|    Module Name                             STREE_RESET_INTERNAL_TABLES                           |

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|Source Code Extract                                                                               |

----------------------------------------------------------------------------------------------------

|Line |SourceCde                                                                                   |

----------------------------------------------------------------------------------------------------

|    1|FUNCTION STREE_RESET_INTERNAL_TABLES.                                                       |

|    2|*"----------------------------------------------------------------------                    |

|    3|*"*"Lokale Schnittstelle:                                                                   |

|    4|*"       IMPORTING                                                                          |

|    5|*"             VALUE(STRUCTURE_ID) LIKE  TTREE-ID                                           |

|    6|*"----------------------------------------------------------------------                    |

|    7|*                                                                                           |

|    8|  DATA: FUNCTION_MODULE LIKE TFDIR-FUNCNAME.                                                |

|    9|  DATA: ACTIVE LIKE RS38L-GLOBAL.                                                           |

|   10|*                                                                                           |

|   11|  CALL FUNCTION 'STREE_GET_FUNCTION_MODULE'                                                 |

|   12|       EXPORTING                                                                            |

|   13|            STRUCTURE_ID        = STRUCTURE_ID                                              |

|   14|*         DATABASE_IDENTIFIER =                                                             |

|   15|            ACTION              = 'IT'                                                      |

|   16|       IMPORTING                                                                            |

|   17|            FUNCTION_MODULE     = FUNCTION_MODULE                                           |

|   18|*         DATABASE_IDENTIFIER =                                                             |

|   19|*         MESSAGE             =                                                             |

|   20|       EXCEPTIONS                                                                           |

|   21|            OTHERS              = 0.                                                        |

|   22|*                                                                                           |

|>>>>>|  CALL FUNCTION 'RS_FUNCTION_ACTIVE_CHECK'                                                  |

|   24|       EXPORTING                                                                            |

|   25|            FUNCNAME  = FUNCTION_MODULE                                                     |

|   26|       IMPORTING                                                                            |

|   27|            ACTIVE    = ACTIVE                                                              |

|   28|       EXCEPTIONS                                                                           |

|   29|            NOT_FOUND = 1                                                                   |

|   30|            OTHERS    = 2.                                                                  |

|   31|  IF ACTIVE EQ FALSE.                                                                       |

|   32|    EXIT.                                                                                   |

|   33|  ENDIF.                                                                                    |

|   34|*                                                                                           |

|   35|  CALL FUNCTION FUNCTION_MODULE                                                             |

|   36|       EXCEPTIONS                                                                           |

|   37|            OTHERS = 0.                                                                     |

|   38|*  reset also table with header information. This is necessary since                        |

|   39|* the header is important for comparison with buffer data                                   |

|   40|  CLEAR EXISTING_STRUCTURES.  REFRESH EXISTING_STRUCTURES.                                  |

|   41|  CLEAR STRUCTURE_TADIR_DATA. REFRESH STRUCTURE_TADIR_DATA.                                 |

|   42|* reset context resolution buffer                                                           |

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|Active Calls/Events                                                                               |

----------------------------------------------------------------------------------------------------

|No.   Ty.          Program                             Include                             Line   |

|      Name                                                                                        |

----------------------------------------------------------------------------------------------------

|    8 FUNCTION     SAPLSHI1                            LSHI1U19                               23  |

|      STREE_RESET_INTERNAL_TABLES                                                                 |

|    7 FUNCTION     SAPLSHI1                            LSHI1U19                               23  |

|      STREE_RESET_INTERNAL_TABLES                                                                 |

|    6 FUNCTION     SAPLSHI6                            LSHI6U08                               34  |

|      STREE_HIERARCHY_READ                                                                        |

|    5 FUNCTION     SAPLSMNU_NEW                        LSMNU_NEWU02                          130  |

|      MENU_GET_MENU_TREE_PART                                                                     |

|    4 FUNCTION     SAPLSMTR_NAVIGATION_MODULES         LSMTR_NAVIGATION_MODULESU01           128  |

|      NAVIGATION_LOAD_MENU_DATA                                                                   |

|    3 FORM         SAPLSMTR_NAVIGATION                 LSMTR_NAVIGATIONF11                    14  |

|      HELP_FORM_LOAD_ALL                                                                          |

|    2 FORM         SAPLSMTR_NAVIGATION                 LSMTR_NAVIGATIONF0I                   557  |

|      CONTROL_INITIALIZE_TREE                                                                     |

|    1 MODULE (PBO) SAPLSMTR_NAVIGATION                 LSMTR_NAVIGATIONO01                    10  |

|      STATUS_0100                                                                                 |

----------------------------------------------------------------------------------------------------

Editable ALV grid -Issue

$
0
0

Hi,

    In an alv report i want to display 12 fields but the last field is editable one based on the condition

table-date field <= sy-datum means the grid is to be editable one other wise it is non editable.

 

In my code:

 

IF GT_QINF-FREI_DAT <= SY-DATUM.

     PERFORM ADD_FILEDCAT USING '13' 'EDIT' 'GT_QINF' 'Modified Date' '20' 'X'   '' ''.   -------->editable

   ELSE.

     PERFORM ADD_FILEDCAT USING '13' 'EDIT' 'GT_QINF' 'Modified Date' '20' ''   '' ''.  ------------->non editable.

   ENDIF.

 

 

But the GT_QINF-FREI_DAT does not having values,because internal table not working inside fieldcatalog.

 

How to solve this issue?????

How to find driver program name of Smart Form

$
0
0

Hello

 

I am in stiuation, where I know the smart form name in which I need to do the changes but I don't know the driver program name. Is there ant way to find the driver  program name? Is the smart form and it's driver program name is maintained in any table?

 

Please let me know if any one is having any idea.

 

Thanks  & Regards.

Chetansing Chauhan

Storage Unit Type in function L_TO_CREATE_TR

$
0
0

Hello.

 

I have a program calling function L_TO_CREATE_TR.  Below I have pasted the parameters passed.  My issue is the how come the storage unit type from IT_TRITE table does not get passed to field LTAP-LETYP.  Because of this error L3 043 "Enter the storage unit type" occurs.  As for the config entry in table T331 for the destination storage type, field PRLET (Ind: Activate storage unit type check for stock placement) is set to 'X' which is one condition why the error occurs but we can not set this to blank. The function module references the storage unit type from the quant (table LQUA) but the source storage type is not SU-managed therefore the storage unit type is blank.

Why is the storage unit field in the structure of IT_TRITE if the function module will not reference the value passed?   Searched for SAP notes for a correction but came up with nothing.

 

I hope somebody can come up with a reasonable answer to this.

 

Thanks in advance!

 

    MOVE: ls_ltbp-tbpos TO lw_trite-tbpos,
        ls_ltbp-menge TO lw_trite-anfme,
        ls_ltbp-meins TO lw_trite-altme,
        ls_ltbk-nltyp TO lw_trite-nltyp,
        ls_ltbk-nlpla TO lw_trite-nlpla,
        ls_ltbk-vltyp TO lw_trite-vltyp,
        ls_ltbk-vlpla TO lw_trite-vlpla,
        '00' TO lw_trite-letyp.
  APPEND lw_trite TO lt_trite.

  CALL FUNCTION 'L_TO_CREATE_TR'
    EXPORTING
      i_lgnum                        = p_lgnum
      i_tbnum                        = ls_ltbk-tbnum
      i_squit                        = ' '
      i_nidru                        = ' '
      i_drukz                        = ' '
      i_commit_work                  = 'X'
      i_bname                        = sy-uname
      it_trite                       = lt_trite
    IMPORTING
      e_tanum                        = p_rep-tanum
    TABLES
      t_ltak                         = lt_ltak
      t_ltap_vb                      = lt_ltap_vb
    EXCEPTIONS
      foreign_lock                   = 1
     OTHERS                         = 99.

How to read content of attachment from outgoing mail

$
0
0

Hello All,

I m developing a zreport which read all email going out of sap ,in order to read contain of the attachment m using FM "SO_ATTACHMENT_READ_API1'  by passing the attachment ID ,but the table parameter which contain the attachment content is return some junk value.Any other suggest FM or class which fulfill the purpose or any idea how to read the contain of a particular attachments in sap.

 

 

 

Thanks

Sam


Need help in updating data in Z-table.

$
0
0

Dear gurus

 

My requirement is

i have to upload a file through f4 and then upload that excel file data to Z-table.

 

This i have done .

Now next is it should display existing data if there is duplication of data  while  uploading new file .

 

Here's my code as -

 

REPORT Z_KK_EXCEL.
TABLES: ZEXCEL.
TYPE-POOLS: truxs.

typesbegin of itab,
         EMPName(30) type c,
         Designation(30) type c,
         Salary(10) type i,
         end of itab.

data: it_tab type standard TABLE OF itab,
       wa_tab type itab.

data: it_ZEXCEL type TABLE OF ZEXCEL,
       wa_ZEXCEL type ZEXCEL.

DATA : it_raw TYPE truxs_t_text_data.


Data: it_error type table of itab,
       wa_error type itab.


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_file TYPE RLGRAP-Filename.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
   CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
     EXPORTING
       PROGRAM_NAME  = SYST-REPID
       DYNPRO_NUMBER = SYST-DYNNR
       FIELD_NAME    = 'p_FILE'
       STATIC        = 'X'
       MASK          = 'excel, *xls'
       FILEOPERATION = 'R'
*     PATH          =
     CHANGING
       FILE_NAME     = p_file
*     LOCATION_FLAG = 'P'
     EXCEPTIONS
       MASK_TOO_LONG = 1
       OTHERS        = 2.
   IF SY-SUBRC <> 0.
* Implement suitable error handling here
   ENDIF.


start-of-selection.

   CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
     EXPORTING
*   I_FIELD_SEPERATOR          =
       I_LINE_HEADER              = 'X'
       I_TAB_RAW_DATA             = it_raw
       I_FILENAME                 = p_file
     TABLES
       I_TAB_CONVERTED_DATA       = it_tab
* EXCEPTIONS
*   CONVERSION_FAILED          = 1
*   OTHERS                     = 2
             .
   IF SY-SUBRC <> 0.
* Implement suitable error handling here
   ENDIF.


end-of-selection.

   loop at it_tab into wa_tab.

     write :/   wa_tab-EMPName,
                wa_tab-Designation,
                wa_tab-Salary.
   endloop.


** Uploading the data into the database table
   LOOP AT it_tab INTO wa_tab.
     READ TABLE it_ZEXCEL into wa_ZEXCEL WITH KEY EMPName = wa_tab-empname.
     IF SY-SUBRC <> 0.

       MOVE-CORRESPONDING wa_tab to wa_error.

       APPEND WA_ERROR TO IT_ERROR.
     ELSE.
       ZEXCEL-EMPNAme     = wa_tab-EMPName.
       ZEXCEL-Designation = wa_tab-Designation.
       ZEXCEL-Salary      = wa_tab-Salary.


       INSERT ZEXCEL.




     endif.

     clear wa_tab.
   ENDLOOP.


   if it_error is initial.
     message 'all data updated Sucessfully'  type 'S'.

   else.

     loop at it_error into wa_error.

       write:/ 'Already Exist',wa_error-EMPName.

     endloop.

   endif.


and  this screen shot of se11 database table in which data is updated for the first time.

 

But whenever i try to upload a different file . It doesnt update the database table.

 

can anyone help ?

 

will be thankful.

 

Regards

karan

Web service error

$
0
0

Hi,

 

I have followed the below congfiguration to consume an external web service.

 

Consume an External Web Service in a Nutshell with Good Old ABAP

 

but i am getting the following error.

 

SOAP:1.032 SRT: Wrong Content-Type and empty HTTP-Body received: ("HTTP Code 302  : Found")

 

The document SAP_BASIS, Release 701, SP Level 8 but our current version is SAP_BASIS 730  0008.

 

Do i need to follow any aditional setting while configuration ?

 

Why/ how the error is raised ?

 

Where i can check ?

 

Thanks,

Vimal Alexander

Dump in Module Pool while running the T-Code

$
0
0

Dear all,

 

I am facing an issue in Module pool programming. The issue is it is giving dump while running the t-code. and the error is " You attempted to start the ABAP/4 program "ZCLICK" with SUBMIT, but the attributes specify this program as type "M" instead of "1". You can only start programs of type 1 with SUBMIT." So Kindly suggest.


Regards

Jai

Hiding of input field in subscreen

$
0
0

Hi Expertise,

 

 

I have to hide some input fields of sub screen after clicking on push button.

related content should display.

 

IN PBO of subscreen, i have written code which is working for hiding.

other code i have written In PAI of subscreen to display all text field

and input field. which is not working ..

 

Pbo.

LOOP AT SCREEN.
     IF SCREEN-group1 = 'GRP'.
       SCREEN-INPUT = '0'.
       SCREEN-INVISIBLE = '1'.
     ENDIF.
     MODIFY SCREEN.
   ENDLOOP.

 

PAI.

IF SY-UCOMM = 'GO'.
  LOOP AT SCREEN .

       IF SCREEN-NAME = 'STUD_ID'.
         SCREEN-OUTPUT = 1.
         SCREEN-ACTIVE = 1.
         SCREEN-INVISIBLE = 1.
         MODIFY SCREEN.
       ENDIF.

       IF SCREEN-NAME = 'ZSTUD_ADD-STUD_ID'.
         SCREEN-OUTPUT = '1'.
         SCREEN-ACTIVE = '1'.
         SCREEN-INVISIBLE = '1'.
         MODIFY SCREEN.
       ENDIF.

       IF SCREEN-NAME = 'ZSTUD_ADD-STUD_ADD'.
         SCREEN-OUTPUT = 1.
         SCREEN-ACTIVE = 1.
         SCREEN-INVISIBLE = 1.
         MODIFY SCREEN.
       ENDIF.

   MODIFY SCREEN .

  ENDLOOP.
  ENDIF.



Please help me out .

Wrong document URL for content server

$
0
0

Hi,

 

In my code I'm getting the url of an image by using the function:

 

CALL FUNCTION 'CVAPI_DOC_VIEW'

   EXPORTING

     PF_DOKAR               = it_objectlinks-documenttype

     PF_DOKNR               = it_objectlinks-documentnumber

     PF_DOKVR               = it_objectlinks-documentversion

     PF_DOKTL               = it_objectlinks-documentpart

    PF_HOSTNAME            = 'DEFAULT'

    PF_APPL_START          = ' '

    PF_GET_URL             = 'X'

IMPORTING

    PFX_URL                = lv_url

EXCEPTIONS

    ERROR                  = 1

    NOT_FOUND              = 2

    NO_AUTH                = 3

    NO_ORIGINAL            = 4

    OTHERS                 = 5.

 

 

On Development side I'm getting the correct url.

 

http://sapdcs.brussel.be.x.com:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=ZD&docId=53655548314D14C0E10080000A0A0748&compId=productx.jpg

 

 

On Quality side I'm getting the wrong url.

 

http://sapdcs.brussel.be.x.com:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=ZQ&docId=4F7F37E4333C02F2E10080000A0A07D6&compId=productx.jpg

 

The contRep and compId are correct. I'm not able to check the docId.

 

Is this a possible problem or do I call the wrong content server or is this server wrong configured, no idea!

Any help?

 

Regards

how to make long text disabled in me51n ?

$
0
0

hello friends,

 

my requirement is, for tcode ME51N the CMP Remarks long text field should be mandatory. please check the picture.

 

Untitled.jpg

 

best regards,

santanu nayek

Display PO Conditions / Pricing Subscreen

$
0
0

Hi guys,

I'm trying to display the pricing information of a PO document in a Z-program ('Conditions' Tab in ME23N).

 

Is there any way to achieve this? As I understand, it must somehow be possible with the function group V69A (FM PRICING_SCREEN), but I don't understand how to display the information in a subscreen - where do I need to transfer the dynpro data?

 

Is this even possible?

 

Any help is appreciated.

 

Greetings,

Klaus


Material with out leading Zeros

$
0
0

Hi All

 

When I create a material (Numericnumber), it is stored with leading Zeros in Tables. For some purposes I want it to be stored without leading Zeros.

 

Is it possible in any way.Please suggest me

 

BR

 

Rahul

Select All Button in Table Control Wizard

$
0
0

Hi All,

 

I have created a table control using wizard and then checked the option for selecting multiple rows using selection column.

 

As screenshot contains the table control. The highlighted button is the button to select all the rows of the table control. But when I click save button I am unable to find out whether the select all button was clicked or not. On clicking select all button PAI is not getting triggered. Kindly help.

 

Regards,

Nooru

Code Inspector with macros in the Object Set

$
0
0

Hi there,

 

I am trying to analyze our code in preparation for a transfer to HANA DB. I used the check variant Performance_DB in the Transaction SCI and generated an Object Set that contained the main program and 5 included macros.

 

The check on these objects seems to include a large number of files that are not related to the program at all (they do not occur in the call hierarchy that I got from my SAT analysis). The check fails with a time out after running approximately a day.

 

My questions therefore are:

Is it not possible to include macros in the code inspector? Shouldn't I include them, because they are automatically checked if I check my program?

 

I included all files explicitly, not as range to avoid the problem. This did not work.

 

Any help would be appreciated.

 

Regards,

Sarah 

Adding coloumn width while downloading txt file in presentation server

$
0
0

Hi All

Can anyone of you please tell me , if I can specify position of each coulmn while downloading a file to PS.

My client has given a requirement of positioning of each column, so that in case of no data, it will still be filled with blanks.

 

for eg.

 

 

fieldsstarting positionLength
GL account112
d/c indicator131
amount1414

 

So when the file is downloaded, it should maintain each position and length.

 

Thanks

SB

SAP ABAP with salesforce.com

$
0
0

Hi All,

      We have a requiement integrating SAP ABAP with Salesforce.com         

 

Requirement:- In ABAP lets say, When a Report/Function Module is called in SAP ABAP it should connect to salesforce.com and open a webpage(lets say creation of order) with predefined values (values available in the report/function module which needs to be passed to salesforce.com) and the user fills the relevant data in webpage and submits which creates an order(say). Then the created order number is to be passed back to called Report/Function module and do other stuff...

 

I am not sure whetehr it is a correct requirement or doable.

 

Please let me know your comments.

 

Regards,

Madan

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>