Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all 10425 articles
Browse latest View live

Re: Need dynamic select statement

$
0
0

Hi,

 

try this example

 

REPORT ztx1406.

  data : gv_string type string

  data:it_mara type STANDARD TABLE OF mara.

 

CONCATENATE 'MA'  'RA' into gv_string.

select * from

(gv_string)

into table it_mara.

 

select * from

(gv_string)

into table gt_acct.


Re: Comma position in amount field .

Re: do_sum in alv grid - insert some field's sum separately

$
0
0

Hello,

I think in alv it's not possible. Best solution is populate your final table and make sum and average left other fields blank.

 

Thanks,

 

Abhijit

Re: Need dynamic select statement

$
0
0
Specifying Source dynamically :
DATA wa TYPE scarr.
DATA name(10) TYPE c VALUE 'SCARR'.
SELECT  *  INTO  wa  FROM  (name) CLIENT SPECIFIED  WHERE mandt = '000'.
WRITE: / wa-carrid, wa-carrname.
Specifying Column dynamically :

DATA: itab TYPE STANDARD TABLE OF spfli,



DATA: line(72) TYPE c,

      list LIKE TABLE OF line(72).

line = ' CITYFROM CITYTO '.

APPEND line TO list.



SELECT DISTINCT (list)


  INTO CORRESPONDING FIELDS OF TABLE itab


  FROM spfli.



IF sy-subrc EQ 0.


  LOOP AT itab INTO wa.


    WRITE: / wa-cityfrom, wa-cityto.


  ENDLOOP.


           wa LIKE LINE OF itab.

ENDIF.

Re: Doubt on Debugging Mode .....how to check the values are filling or not ?

Re: Doubt on Debugging Mode .....how to check the values are filling or not ?

$
0
0

Hello Kabil,

 

The best way to handle this issue is to download the Internal table data to Excel. Filter the records based on the criteria.

 

Other way round is to create a similiar type internal table and move bad records to this internal table based on the criteria of identifying it as wrong records.

 

Regards

 

Suresh Nair

Re: Badi MIRO Get Previous Data

$
0
0

Hi,

 

in method CHANGE_AT_SAVE you have these parameters available:

 

*S_RBKP_NEW

*S_RBKP_OLD

*TI_RSEG_NEW

*TI_RSEG_OLD

*TI_RBCO_NEW

*TI_RBCO_OLD

*TI_RBMA_NEW

*TI_RBMA_OLD

*TI_RBTX_NEW

*TI_RBTX_OLD

*TI_RBVS_NEW

*TI_RBVS_OLD

*TI_RBWS_NEW

*TI_RBWS_OLD

*I_UPDATE_FLAG

 

 

Best regards.

Re: CIF enhancement


Re: how to underline sentence and not word in sapscript

$
0
0

Hello Juli,

 

In Sapscript we can make use of HTML coding so your

 

<UL> TESTING HEADER TEXT </UL>

 

Regards

 

Suresh Nair

Re: Detect print preview in smartform

$
0
0

Hello,

There is a parameters  OUTPUT_OPTIONS of type SSFCOMPOP. Where you can pass the details of the print parameters.

 

For prinnting:

Constant: c_set type c value 'X",

               c_print  TYPE tddevice         VALUE 'PRINTER',

 

Data:

p_screen(1)          TYPE c,                    " Output on printer or screen

 

g_screen = us_screen.

 

PERFORM processing USING    p_screen

                      CHANGING returncode.

 

Form Processing.

 

IF p_screen IS INITIAL.

 

   w_compop-tdnoprev  = c_set.

   w_compop-tdnoprint = space.

   w_compop-tdnewid   = c_set.

   w_ctrlop-getotf    = space.

   w_ctrlop-device    = c_print.

 

Else.

For Preview

 

  w_compop-tdnoprev  = space.

   w_compop-tdnoprint = c_set.

   w_compop-tdnewid   = c_set.

   w_ctrlop-getotf    = space.

   w_ctrlop-no_dialog = space.

   w_ctrlop-device    = c_print.

 

Endif.

 

Endform.

 

Thanks,

 

Abhijit

FM for Deleting/Adding Components in a process order

$
0
0

Hi ,

 

Does anyone knows a function module for Deleting/Adding Components in a process order?

 

regards, Oli

LOIPRO01 idoc

$
0
0

Hello,

 

Can the LOIPRO01  idoc be used with and Inbound Function module?

 

Kind Regards,

Oli  

Re: Read_text function for material master PO text

$
0
0

Hello Guest,

 

One way is going to make them function module through SE37 transaction and put a break point in session, then you log in to view this material where the text and should enter debuguer, from here you can view the data that is should call the function module READ_TEXT.

 

Regards.

Re: Management of Dat between 2 tables

$
0
0

Yes, you should use a structure (or work area) in your IF statement.

 

An internal table is a table, so it can have multiple records and the system can't know on its own which particular record it should look at. On the other hand, a structure would only have one record and therefore there isn't any ambiguity.

 

There is an exception to what I wrote above. In old ABAP programming, internal tables with headers used to defined (using the OCCURS addition). In that case, the header used to act as a structure (or work area) and used to be referred using the same name as the internal table. In those cases, you could use the internal table name (although even then you would be referring to the header or work area) in an IF statement.

Re: Update only one row of database table from internal table

$
0
0

With the WHERE condition in your code extract, naturally, all records with ZCHECKED = 'N' would be changed so that ZCHECKED becomes 'Y'.

 

If your aim is to update just one record each time the RFC is called, then you should use a SELECT SINGLE or SELECT UP TO 1 ROWS to get the first record where ZCHECKED = 'N'. Then, you can use the UPDATE statement to change the value of ZCHECKED to 'Y' for the fetched record.


Error in Exporting to Excel 2003 office format in ALV

$
0
0

Hi,

I got an error while attempting to use the export to spreadsheet(in office 2003 XML) format.

It is opening a 'Save As' dialog box instead of exporting the report content to excel.

 

The option i tried is,

List-->Export-->spreadsheet-->office 2003 XML format

 

Please provide a solution.

 

Thanks,

Loganathan Mohanasundaram

Re: Management of Dat between 2 tables

$
0
0

Thanks Kumar for your clarifications.

 

Amine

Re: bapi_entrysheet_create

$
0
0

Hey Ashish,

 

I am aware that the question was posted by you long back, but I am replying so that other readers probably can benefit from the answer below -

 

I faced the similar issue recently in one of the projects. The solution that i have opted is as below -

 

1. I leveraged the changing parameter 'ESSR' work area of the user exit 'EXIT_SAPLMLSR_010'. This user exit is internally called via BAPI_ENTRYSHEET_CREATE.

 

2. You can export the value of 'ESSR-BKTXT' field to memory ID from the calling program and import it within this user exit and pass it to changing parameter ESSR.

 

Hope this helps to other readers!

 

- Thanks,

Urvi.

Re: populate document header text in SES by bapi BAPI_ENTRYSHEET_CREATE

$
0
0

Hey Mainak,

 

I am aware that the question was posted by you long back, but I am replying so that other readers probably can benefit from the answer below -

 

I faced the similar issue recently in one of the projects. The solution that i have opted is as below -

 

1. I leveraged the changing parameter 'ESSR' work area of the user exit 'EXIT_SAPLMLSR_010'. This user exit is internally called via BAPI_ENTRYSHEET_CREATE.

 

2. You can export the value of 'ESSR-BKTXT' field to memory ID from the calling program and import it within this user exit and pass it to changing parameter ESSR.

 

Hope this helps to other readers!

 

- Thanks,

Urvi.

Re: How to Display a Json-String in SAP-Browser

$
0
0

Hi Rüdiger,

thanks for the explanation an the further information ;-)

 

Cheers,

Damir

Viewing all 10425 articles
Browse latest View live


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