Quantcast
Channel: SCN: Message List - ABAP Objects
Viewing all 159 articles
Browse latest View live

Re: FULLSCREEN ALV with status GUI - disable own created button

$
0
0

Then use the class provided

DATA : gr_functions TYPE REF TO cl_salv_functions_list.

gr_functions = gr_table->get_functions( ).
gr_functions->set_function( name = 'BUT1' boolean = 'X' ).
gr_functions->set_function( name = 'BUT2' boolean = ' ' ).

 

Regards,

Raymond


Re: FULLSCREEN ALV with status GUI - disable own created button

$
0
0

I tried this but it does not work, on my status i created button with function code BUT.

 

if i call method gr_functions->set_function( name = 'BUT' boolean = 'X' ) exception cx_salv_not_found is raised. It is because i dont have any function called 'BUT' but my function code is 'BUT'......  

Re: FULLSCREEN ALV with status GUI - disable own created button

$
0
0

Could you post the code where you set your status ?

 

Regards,

Raymond

Re: Creating a table at runtime from a parameter(Work area)

$
0
0

Hi Ajeet,

 

Ok I thought you are just saying about data example. In case of generic data type, solution is more complicated. Try this:

 

FIELD-symbols <fs_table> type standard table.
DATA l_ref TYPE REF TO data.
CREATE DATA l_ref like table of cs_data.
ASSIGN l_ref->* to <fs_table>.
APPEND cs_data TO <fs_table>.

 

Then your <fs_table> is a table that contains single row.

Hope it helps.

 

Regards

Adam

Re: FULLSCREEN ALV with status GUI - disable own created button

$
0
0

DATA: o_alv TYPE REF TO cl_salv_table.

    

TRY.
        cl_salv_table=>factory(
          IMPORTING
            r_salv_table = o_alv
          CHANGING
            t_table      = t_vbak ).
      CATCH cx_salv_msg INTO lx_msg.
    ENDTRY.

 

  

TRY .
        o_alv->set_screen_status( pfstatus = 'Z_ALV_FULL_STAT'
                report = sy-repid
                set_functions = o_alv->C_FUNCTIONS_ALL ).
      CATCH cx_salv_method_not_supported.
    ENDTRY.

Re: FULLSCREEN ALV with status GUI - disable own created button

$
0
0

Small sample, did you execute every step ?

gv_repid = sy-repid.
gr_table->set_screen_status( pfstatus = 'ZSTATUS' report =  gv_repid set_functions =  gr_table->c_functions_all ).
lr_functions   = gr_table->get_functions( ).
lr_functions->set_all( abap_true ).
TRY.    lr_functions->set_function( name  = 'ZFUNCTIONCODE' boolean = space ).  CATCH : cx_salv_wrong_call, cx_salv_not_found.        "#EC NO_HANDLER
ENDTRY.

 

Regards,

Raymond

List contains no data for SDo1 transaction

$
0
0

Hi ,

 

When ever iam executing Sdo1 t code and when i enter created on and cretaed by...iam getting message List contains no data.

 

But corresponding records exists in database.

Re: How can I selectively rollback while committing in mass using ABAP Objects?

$
0
0

Howdy,

 

I agree with some of your points which is why I'd be more inclined to choose tRFC over aRFC - however there are still design questions about capturing the error messages, things like:

- How many error messages are you expecting, is it 1% or significantly less? 

- Is the number of error messages small enough that generating a single email notification per batch run is acceptable?

- Who would be addressing the error messages, technical people or business users?

 

These are questions which need to be answered regardless of the solution.

If you are expecting many error messages and cannot fix the errors upstream then I would consider using the application log for recording errors.  If you still want an email notification once all tRFC queues have been resolved then you can have a "master" job create the tRFC queues and then wait until all the queues have been processed, then pick up the application log and email it.

 

Agree it is not possible for all messages to be processed at once (the number of queues to be created should be configurable or use a variant).  But also if you have multiple application servers then you can distribute the jobs across those servers.

 

And you're correct that the design decision should include a review of the process distribution among application servers.

 

Hope this is not too OT - interested to see what the OP's final solution is.

 

Cheers

Alex


Re: How can I selectively rollback while committing in mass using ABAP Objects?

$
0
0

Hello Alex,

 

I guess your post is a prime example of "Experience speaks for itself " . I am humbled, it is well written and clearly explained, actually serves more like a  development guideline. I guess the OP has receieved more info than what he orignally intended to !..( well atleast I have ).

 

Thanks,

Venkat.

Re: Creating a table at runtime from a parameter(Work area)

$
0
0

Thanks Adam,

It's working according to my requirement.

 

Thanks and Regards,

Ajeet Pratap Singh

Re: FULLSCREEN ALV with status GUI - disable own created button

$
0
0

Yes i did . I have exactly same code as you wrote but it does not work. Dont know why...

Custom Transaction call

$
0
0

Hello Gurus,

 

I created custom transaction code(/com/tcode) for a report transaction(Program and Selection Screen). When I added the same t code under favorites I am able to call the report program selection screen and but when I give <B> /com/tcode </B> t code in command field, no action is being performed.

Is there any problem with naming conversion as I need to follow <B> /com/ </B> for all my customization

Please suggest me to move further

 

Regards,

Magana

Re: Custom Transaction call

Re: How to create ALV Grid and text editor in same screen?

$
0
0

Hi Crystal,

 

You can create your own screen using screen painter instead of via code.

You can try to execute this BCALV_GRID_01 (standard SAP).

 

double click line 147 call screen 100.

 

Regards,

 

Robert

Re: Custom Transaction call

$
0
0

As Ricardo suggested, you need to add /n before any transaction code that starts with /.


What is the use of sub request number in Transport Organizer?

$
0
0

Hi experts,

              When we create workbench request in Transport organizer( SE09/SE10 ), we get two request numbers, one is main request number and other is

sub request number, here what is the exact use of Main and Sub request numbers?

 

 

 

Regards,

OmChandra

Re: Custom Transaction call

$
0
0

Hi magana,

                  try by adding  "/o" or "/n" infront of tcode before entering in command prompt.

Re: What is the use of sub request number in Transport Organizer?

$
0
0

The idea is that the main transport request (TR) represents a project or a major application development. The tasks represent different developers in that TR. So, as a team lead you can create a project TR. Then, you assign a task to each one of your team members.

Re: What is the use of sub request number in Transport Organizer?

$
0
0

Hello Chandra,

                   The names of the objects changed by a user are entered in an object list. This object list is

assigned to a task belonging to a user or project member.

One or more tasks belonging to various users are assigned uniquely to a higher-level change

request, which in turn represents a development project.

 

For more details go through the following link

http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCCTSORG/BCCTSORG.pdf

Re: How to pass object reference variable as importing parameter in method ?

$
0
0

Hello Dipesh,

                     Can You Please Elobarate Your requirement more specifically.

 

Regards,

Santosh

Viewing all 159 articles
Browse latest View live


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