Search found 365 matches

by Grogan
Tue Sep 03, 2013 4:16 pm
Forum: ABAP
Topic: Getting the internal table from a submitted report
Replies: 2
Views: 1303

Re: Getting the internal table from a submitted report

To capture the ALV data of a report you can use CL_SALV_BS_RUNTIME_INFO as described in this blog:
http://scn.sap.com/community/abap/blog/ ... lv-reports
by Grogan
Sun Sep 01, 2013 4:39 pm
Forum: ABAP
Topic: Best practice
Replies: 2
Views: 1258

Re: Best practice

There is no such thing as "best practice" in a case like this - its a matter of finding the best solution for your unique situation, and that often involves compromise. Personally I would try to avoid options 1 and 2 except as a last resort. Otherwise you have the hassle of maintaining an additional...
by Grogan
Fri Aug 30, 2013 11:51 pm
Forum: ABAP
Topic: Finding T100 Messages
Replies: 4
Views: 2156

Re: Finding T100 Messages

Here is my T100 message keyword search program. Just type your keywords separated by a space, optionally restrict by Message Class, and execute. The code to find messages is straight forward. Messages are read in blocks, and those not containing each keyword string are mass deleted using the NS cond...
by Grogan
Mon Aug 26, 2013 4:28 pm
Forum: ABAP
Topic: Finding T100 Messages
Replies: 4
Views: 2156

Re: Finding T100 Messages

It would be quicker and easier to write your own. I could do the needful if required. Thanks Rich. I don't know that it is possible to select text regardless of case. So I was thinking in terms of a simple, brute-force approach: read all messages (in blocks if necessary) and scan each one for all k...
by Grogan
Thu Aug 22, 2013 6:33 pm
Forum: ABAP
Topic: Finding T100 Messages
Replies: 4
Views: 2156

Finding T100 Messages

Does anyone know a nifty way of searching for T100 messages ? SE16N is case and sequence sensitive, so lots of different combinations need to be tried. For example if looking for messages relating to IDoc errors then searching for "*IDoc*error*", "*idoc*error* and "*Error*IDOC*" all yield different ...
by Grogan
Tue Aug 06, 2013 4:05 pm
Forum: ABAP
Topic: find duplicated records ? [done]
Replies: 13
Views: 4082

Re: done..

Ahh yes - thanks for the link Vic. That all happened before my time, but still a great read.
by Grogan
Mon Aug 05, 2013 4:28 pm
Forum: ABAP
Topic: find duplicated records ? [done]
Replies: 13
Views: 4082

Re: find duplicated records ?

shkelqimg wrote:If it doesn't take more than 3-4 minutes, would you please write the code for me?
No thanks - I've already wasted more than 3-4 minutes of my life with my original post.

Wasn't there a request like this that ultimately lead to the Tuly Idiots label ?
by Grogan
Sun Aug 04, 2013 4:43 pm
Forum: ABAP
Topic: find duplicated records ? [done]
Replies: 13
Views: 4082

Re: find duplicated records ?

Have a look at your statement: SELECT options kunnr for kna1-altkn Maybe you meant: SELECT-OPTIONS kunnr for kna1-altkn. In which case you still need a SELECT statement. Assuming you don't need to the whole KNA1 table, just a couple of fields, maybe something like this: SELECT kunnr altkn FROM ... S...
by Grogan
Fri Jul 26, 2013 12:33 pm
Forum: ABAP
Topic: BAPI updates not working / behaving badly
Replies: 3
Views: 1749

Re: BAPI updates not working / behaving badly

For what its worth doco for BAPI_ALM_CONF_CANCEL says to use BAPI_TRANSACTION_COMMIT after each call. Otherwise no idea why it is behaving like that. I would try restructuring your code to separate the Networks and PM Orders confs and then do each type in a separate process using CALL FUNCTION 'BAPI...
by Grogan
Fri Jul 12, 2013 12:42 am
Forum: ABAP
Topic: Loop inside an internal table[RESOLVED]
Replies: 11
Views: 5341

Re: Loop inside an internal table

How do you indent the text in Selection Screen. Well you could do it like this: SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN POSITION POS_LOW. PARAMETER p_action AS CHECKBOX. SELECTION-SCREEN END OF LINE. But the usual way to group related fields under a heading is by putting them in a framed b...
by Grogan
Sun Apr 07, 2013 4:19 pm
Forum: ABAP
Topic: Standard Table
Replies: 30
Views: 6768

Re: Standard Table

On our system VBAP has been appended with a structure in the manner suggested by Sharpshooter. That structure contains 50 custom ZZ* fields - no problems.
by Grogan
Sun Mar 24, 2013 3:38 pm
Forum: ABAP
Topic: Use a BMP picture (from a URL) in smartform
Replies: 3
Views: 3052

Re: Use a BMP picture (from a URL) in smartform

No sorry - I've never done that. The only thing I could suggest is have a look at Thomas Jung's bitmap processing class, downloadable in SAPLink format: http://scn.sap.com/people/thomas.jung/blog/2007/09/05/abap-bitmap-image-processing-class Then experiment with HTTP_GET and ZCL_ABAP_BITMAP together...
by Grogan
Thu Mar 21, 2013 3:38 pm
Forum: ABAP
Topic: Use a BMP picture (from a URL) in smartform
Replies: 3
Views: 3052

Re: Use a BMP picture (from a URL) in smartform

Hi gusiovi, I am not clear which part you are having a problem with. Are you saying you have called SAPSCRIPT_CONVERT_BITMAP_BDS and need to get the result into the Smartform ? FYI we have a program that reads a BMP file from a Generic Object Services (GOS) attachment, resizes it as necessary, conve...
by Grogan
Sun Feb 24, 2013 3:16 pm
Forum: ABAP
Topic: TXT file- make all fields same length
Replies: 2
Views: 1020

Re: TXT file- make all fields same length

Assuming each record has multiple comma separated fields then:

Code: Select all

SPLIT file_record AT ',' INTO TABLE itab_of_char_5.
CONCATENATE LINES OF itab_of_char_5 INTO target_field
            SEPARATED BY ','
            RESPECTING BLANKS.
by Grogan
Wed Jan 23, 2013 3:36 pm
Forum: ABAP
Topic: [RESOLVED] Access to PREVIOUS attribute of a class exception
Replies: 2
Views: 1640

Re: Access to PREVIOUS attribute of a class exception

PREVIOUS is a publicly visible instance attribute of any exception class; CLASSNAME is a publically visible specialised attribute of class CX_SY_NO_HANDLER. DATA: lo_excpt_no_handler TYPE REF TO cx_sy_no_handler, lo_excpt_root TYPE REF TO cx_root. DATA: lv_prev_excpt_text TYPE string. TRY. PERFORM r...