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

Restart F8 function in 'AT SELECTION-SCREEN'

$
0
0

Hello Experts,

 

I am developing a report with a selection screen:

 

on 'AT SELECTION-SCREEN', validation is performed and error message(' E ') is shown if no record is retrieved based on selection:

 

Question:

 

After i input data in the selection screen ( force input not to retrieved record ), i pressed F8 ( execute ). the error message is shown.

i corrected that data and just press 'ENTER' key. No error message was shown since a record was retrieved.. but the problem is, it now continues execution on 'START-OF-SELECTION'.

 

My needs is only the F8 ( execute ) key should be able to execute 'START-OF-SELECTION'.

is there a way i can 'REFRESH'  the F8 whenever an Error is encountered in 'AT SELECTION-SCREEN'?

 

 

thanks a lot!

Carl


Initialisation of a class in OO ABAP

$
0
0

To call a static method , or to access a static attribute outside the class we need to initialize the class. What is the syntax to initialize a class.

Lets take an example:

We have a class in SE24, named zclass1. we have a static method (m1) in that class. Now, to call the method (m1) we use the syntax:

             -- zclass1=>m1.

> My qusetion is how the class zclass1 got initialized in ABAP memory?

> If I create an instance (Object) of a class, a memory is allocated for the object in ABAP memory. How long the ABAP memory will be occupied for that class object?

> What is the difference between memory sharing among Static and Instance components of a class?

 

Thanks in advance.

Dump in Smartforms

$
0
0

Hi Experts,

 

I am working on smartforms and I am using period as an input criteria for some Ledger Outputs.

For few periods say like 1 to 12 its giving me correct output but when period changes to say 7 to 9 then I am getting dump in smartform output.

Means for few periods its giving correct output for few periods its giving dump screen.

Please help to solve this. Below is the dump screen error analysis

 

Sort_dump.jpg

Thanks inadvance.

 

Thanks,

Basanagouda

How to compare ABAP Structures and display differences

$
0
0

Hi Experts,

 

I´m searching for the possibility to compare two deep ABAP Structures (same structure) and to display the differences within the structures.

Is there any hint for this Problem?

 

I found in the Debugger the possibility to compare two structures, but I couldn´t figure out which Functions or classes are used in the Debugger

 

Maybe you could make an suggestion where to look or maybe it exists an Service-Class which analyzed the Differences?

 

Thanks for your Help!

 

Cheers,

Damir

There is a structure LECI_TRA_DYN how can i get database table of it?

$
0
0

I have found a table i.e, leci_event_data.

 

i want vehicle_reg_numb and TRAILER_REG_NUMB in my report..

 

but i am unable to get ...there are two more tables from which i have to fetch data

i am getting all the data other than vehicle_reg_numb and TRAILER_REG_NUMB...

 

i tried using se84..abap dict..fields..struc fields and also through se11 data type where used list database tables...

but not getting any thing...

 

please suggest???

data should not get refreshed when pressing back button Please help

$
0
0

In the abap output screen the data will get refreshed when pressing the back button.

but my requirement is when pressing the back button the previous data  should be saved and also the new data should be added to the existing data.

Number Range Problem

$
0
0

I am uploading a file into ztable and i am creating a unique number attach to a file in Ztable using Number Range (SNRO).

 

I have created 2 work areas ...1 for file data and 1 for unique Number. I having problem uploading unique number to the corresponnding data in Ztable.

 

It showing me error that work area is not long enogh.  How to deal with this? Attached is my copy of program file.

Double header in ALV

$
0
0

Hi all.

 

I am trying to do an ALV report with an agroupation of fields. This means that they want to display the ALV header in this format:

 

                                             Group 1                                             Group 2

Key_field_1     Key_field_2     Field_1A     Field_1B     Field_1C     Field_2A     Field_2B     Field_2C

 

Do you know if this double line in header is possible? If so, how can I do it?

 

Thank you to all in advance.


DYNPRO_FIELD_CONVERSION

$
0
0

Client has a maintenance view for the table zvp_std. But the maintenance view is giving short dump DYNPRO_FIELD_CONVERSION. Can anyone please tell me what could be the reason? How to solve it?

 

Is there any possibility to access IF_HTTP_CLIENT interface using SAP.NetConnector 3.0?

$
0
0

Hello Experts,

 

Is there any possibility to access IF_HTTP_CLIENT interface using SAP.NetConnector 3.0? If yes tell me how.

 

Thanks in advance.

text enhancement using cmod

$
0
0

Hi,

 

We are trying to change the tracking no. field in PR (ME51N) as broker using tcode CMOD -> Goto -> Text enhancement -> keywords -> Change -> BEDNR. We have changed the Short field label, Medium field level, long field label and heading as broker.

 

In ME21N, in the item overview, it is displayed as Reqmnt. No(Bednr) instead of Broker.  How to change this Reqmnt No into broker in ME21N ?

 

Please give us a solution to achieve this.

 

regards

ravi

Smartform OTF data table always empty

$
0
0

Hi,

 

Whenever I call the below function the OTF table in the job_output_info is always empty. This means I can't proceed to calling FM 'CONVERT_OTF' for convering to PDF.

All the other XML output tables are populated correctly and smartform can be sent via e-mail.  I have seen a good few threads here, some people have said they've solved it themselves without giving the solution, and I saw one that said the Smartform attributes needed to change? I thought setting the getotf flag to 'X' was all I needed.

 

Any ideas would be greatly appreciated. Thanks

 

  ls_output_options-tdimmed = space.
  ls_output_options-tdnewid = space.
  ls_control_parameters-no_dialog = 'X'.
  ls_control_parameters-getotf = 'X'.
  ls_control_parameters-langu     = sy-langu.
  ls_control_parameters-preview = space.

 

    CALL FUNCTION l_fm_name
    EXPORTING
      control_parameters = ls_control_parameters
      output_options     = ls_output_options
      user_settings      = space
      ls_input           = gt_detail
      i_count            = l_count
      l_entry            = '10/12'
      l_entry1           = '01.01.2013'
      lt_header          = lt_newrpt
      ls_vendor          = gs_lfa1
    IMPORTING
      job_output_info    = ls_output_data
    EXCEPTIONS
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 4
      OTHERS             = 5.

 

** ls_output_data-otfdata[] empty.

how to get the user logon language for current session?

$
0
0

hi,

 

i want to retrieve the log on language information for certain user and exactly for current session. I tried to use the FB "BAPI_USER_GET_DETAIL" to get the log on language, But this so called "logon Language" is not for the current session. It is fixed value which is configured by user. This field is option and not all user have maintained this information.

 

I would very appreciate if someone give me hand to overcome this problem.

 

Thanks.

Copying line items from multiple Sales Quotations into a single Sales Quotation via COPY WITH REFRENCE

$
0
0

Is it possible to copy line items from multiple sales quotation(VA21) into a  single sales quotation using copy controls?

SQ01 query - count headers in an item level report

$
0
0

Hi!

 

I have the following query, that contains invoice data, at item level, for example

Invoice nr, Position, Material, Value

12345678, 0010, 22222, 10 EUR

12345678, 0020, 33333, 40 EUR

12345678, 0030, 44444, 5 EUR

12345679, 0010, 55555, 15 EUR

 

I have to add a new column, which could be used for counting the invoices. I was thinking about a solution like this:

Invoice nr, Position, Material, Value, invoice counter

12345678, 0010, 22222, 10 EUR, 1

12345678, 0020, 33333, 40 EUR, 0

12345678, 0030, 44444, 5 EUR, 0

12345679, 0010, 55555, 15 EUR, 1

 

So the column's value will be set to 1 at a new invoice number, otherwise it is zero. (I know there could be inaccurate values, if hte report is filtered, but this risk is acceptable).

 

Please suggest.

 

Thank you

Tamas


How to select by Range?

$
0
0

Hi Experts,

 

I want to get the data when people log in and  this data was save in two tables A and B.

A has the information but without the user_name

so I need to select the A table first and get the user_name in table B

And I also try to set a 5 sec buffer just in case

so here comes the problem!!!!!!!!!!

 

 

I use Range to set the buffer

 

r_utime-sign = 'I'.

r_utime-option = 'BT'.

r_utime-low = icd-utime.

r_utime-high = icd-utime + 000005.

 

 

   SELECT SINGLE * FROM B

   WHERE clas = icd-clas

   AND   id = icd-id

   AND   udate = icd-udate

   AND   utime IN r_utime

   .

For Example.

I have a data like below

   sign = I

    option = BT

   low = 141430

    high = 141435

 

But after execute the program,I still get a data which it's time = 141152

it should not in this report.Because 141152  not between  141430~141435.

Is any wrong happen in my program?

transporting table entries

$
0
0

How to check the transport log entries for records of a transparent table?

How to Create Dynamic Itab.

$
0
0

Hi Experts,

 

I want to create Multiple itabs based on User Selection 

 

TYPES : BEGIN OF ty_mara,

              matnr TYPE mara-matnr,

              END OF ty_mara.

DATA : lr_data TYPE REF TO data,

           lv_str(20TYPE c.

 

PARAMETERS : p_num TYPE n.     

FIELD-SYMBOLS : <lt_mara> TYPE STANDARD TABLE,

                             <fs> TYPE any.

 

CREATE DATA lr_data  TYPE STANDARD TABLE OF ty_mara.

ASSIGN lr_data->* TO <lt_mara>.

 

DO p_num TIMES.

   CONCATENATE '<lt_mara' p_num '>' INTO lv_str.

   ASSIGN lr_data->* to (lv_str)

ENDDO.

 

But is Showing an error that lv_str is Unknown . How to Create Multiple Itabs Based on User Selection .

Please Provide if there is any alternative way.

 

 

 

Thanks & Regards,

Raghunadh.K

Using the Field-Symbols instead of Internal Tables

$
0
0

Dear Experts,

 

I am new to the Field symbols, I need some help in coding since my programs need to use the one year data in MSEG table, i am trying to change the program from internal tables to field symbols.

 

 

I have facing the problem in converting the for all entries using internal table to field symbols,

 

Select  vbeln posnr from vbap into table lt_vbap for all entries in lt_vbak where vbeln = lt_vbak .

 

I need to use the same query with field symbols i.e., lt_vbap & lt_vbak should be a field symbols

 

Can we do all the operations like using

  • Where conditions in loops
  • Sorting
  • Parallel cursor method
  • Deletions,
  • Appending moving data from field symbol to internal table and vice versa.
  • Comparing the values in work area.

 

I have checked the all the post, available,

calling N numbers in cheque field in smartform n zprogram

$
0
0

hi all,

i wnt to give n numbers in cheque field.

it declared in zprogram like this  (PARAMETERS: S_CHQ_NO(10) TYPE c.)

if i change the 10 to 30 it will take only 30 numbers..but i want to give n numbers..in form interface of samrtforms it declared like (s_chq_no type char(10))..on selection screen it shows 10 numbers field.

please guide me

Viewing all 8332 articles
Browse latest View live


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