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

SALV doesn't work

$
0
0

Hi,

 

i have a problem with my salv report.

after selecting data it does not show the grid. it's working, but the grid is not visible, i don't know why. could someone phelp me please?

 

thank you.

bye adalbert

 

START-OF-SELECTION.

...

 

PERFORM alv_anzeigen.
END-OF-SELECTION.

 

 

CLASS lcl_eventhandler DEFINITION.
  PUBLIC SECTION.
    CLASS-METHODS: on_user_command FOR EVENT added_function OF cl_salv_events IMPORTING e_salv_function.
    CLASS-METHODS: on_double_click FOR EVENT double_click OF cl_salv_events_table IMPORTING row column.
    CLASS-METHODS: handle_user_command FOR EVENT user_command OF cl_gui_alv_grid IMPORTING e_ucomm  .
    CLASS-METHODS: handle_toolbar  FOR EVENT toolbar OF cl_gui_alv_grid  IMPORTING e_object.
  PRIVATE SECTION.
ENDCLASS.

 

 

CLASS lcl_eventhandler IMPLEMENTATION.
  METHOD handle_toolbar.
    DATA: ls_toolbar  TYPE stb_button.
* append a separator to normal toolbar
    CLEAR ls_toolbar.
    MOVE 3 TO ls_toolbar-butn_type.
    APPEND ls_toolbar TO e_object->mt_toolbar.
* append an icon to show booking table
    CLEAR ls_toolbar.
    MOVE 'BOOKINGS' TO ls_toolbar-function.
    MOVE icon_employee TO ls_toolbar-icon.
    MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
    MOVE 'Detail'(112) TO ls_toolbar-text.
    MOVE ' ' TO ls_toolbar-disabled.
    APPEND ls_toolbar TO e_object->mt_toolbar.
  ENDMETHOD.                    "handle_toolbar

  METHOD on_double_click. break pr900011. ENDMETHOD.
  METHOD on_user_command.break pr900011. ENDMETHOD.
  METHOD handle_user_command.
    CASE e_ucomm.
      WHEN 'BOOKINGS'.
        break-point.
    ENDCASE.
  ENDMETHOD.                    "on_user_command
ENDCLASS.

 

FORM alv_anzeigen.
  IF custom_container1 IS INITIAL.
* create a custom container control for our ALV Control
    CREATE OBJECT custom_container1
      EXPORTING
        container_name              = 'C1'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
* add your handling, for example
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = sy-subrc
          txt1  = 'The control could not be created'(510).
    ENDIF.
  ENDIF.

  TRY.
*   Aufbau SALV-Struktur je nachdem was in SelScreen gewählt
      cl_salv_table=>factory( EXPORTING r_container    = custom_container1
                              IMPORTING r_salv_table = gr_table
                              CHANGING t_table = gt_process ).

      go_table_functions_list = gr_table->get_functions( ).
      go_table_functions_list->set_all( abap_true ).

* SALV-Struktur konfigurieren
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_fit_column_to_table_size( 'X' ).
      gr_display->set_list_header_size( EXPORTING value = '0' ).
      gr_display->set_list_header( 'Übersicht CL-Prozesse' ).
      gr_display->set_horizontal_lines( 'X' ).
*      gr_display->set_min_linesize( value = '1280' ).
      gr_display->set_vertical_lines( 'X' ).

* Seitliche Selektionsleiste aktivieren
      gr_selections = gr_table->get_selections( ).
      gr_selections->set_selection_mode(
      if_salv_c_selection_mode=>row_column ).

* Events abgreifen
      gr_events = gr_table->get_event( ).

* Events behandeln
      CREATE OBJECT event_handler.
      SET HANDLER event_handler->on_user_command FOR gr_events.
      SET HANDLER event_handler->on_double_click FOR gr_events.

      gr_table->set_screen_status(
        EXPORTING
          report        =   sy-repid  " ABAP-Programm, aktuelles Rahmenprogramm
          pfstatus      sy-pfkey   " Bildschirmbilder, aktueller GUI-Status
*          set_functions = C_FUNCTIONS_NONE    " ALV: Datenelement für Konstanten      ).
      gr_table->display( ).
      PERFORM grab_toolbar" Muss nach dem Display aufgerufen werden
            gr_table->refresh(
*        EXPORTING
*          s_stable     =     " ALV-Control: Refresh-Stabilität
*          refresh_mode = IF_SALV_C_REFRESH=>SOFT    " ALV: Datenelement für Konstanten      ).
            custom_container1->finalize( ).
    CATCH cx_salv_msg .
  ENDTRY.
ENDFORM.

 

 

 

FORM grab_toolbar .
  FIELD-SYMBOLS: <child> LIKE LINE OF custom_container1->children.
  DATA: lo_grid TYPE REF TO cl_gui_alv_grid.
  READ TABLE custom_container1->children INDEX 1 ASSIGNING <child>.

  lo_grid ?= <child>.
  SET HANDLER lcl_eventhandler=>handle_toolbar FOR lo_grid.
  SET HANDLER lcl_eventhandler=>handle_user_command FOR lo_grid.

  lo_grid->refresh_table_display( ).
ENDFORM.


Passing range to form

$
0
0

Hi,

 

how can i pass a range to a form ?

 

example :

types: tt_data type table of ty_data,
data: i_data type tt_data,      r_data type range of matnr.
...   
perform send_data using    i_data                   changing r_data.
...
...
form send_data using    pi_data type tt_data               changing pr_data type ???????

 

Which type must i use in the form declaration ?

 

regards,

Hans

Form declaration ?

$
0
0

All,

If i have declared form in SAP, i am getting the following template,

 

*&---------------------------------------------------------------------*
*&      Form  f_write_select_values
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
form f_write_select_values .

endform.                    " f_write_select_values

 

But my requirement is i need a form declaration ( Company Specific) in the following manner

 

*&---------------------------------------------------------------------*
* Form f_write_select_values                                           *
*&---------------------------------------------------------------------*
* text                                                                 *
*&---------------------------------------------------------------------*
form f_write_select_values.


endform.                                 " F_write_select_values

 

Any info ?

 

smartform drag and drop

$
0
0

All,

 

This doesn't work. Reckon SAP is addressing this and getting it fixed?

 

Thanks.

Class ZCL_IM__VENDOR_INVOICE does not implement BAdI interface IF_EX_BADI_FDCB_SUBBAS04

$
0
0

Hello guys I try to implement BADI_FDCB_SUBBAS04 but when I click on one method I get this error:

Captura.PNG

Could anyone can help me?

No special rule exists in T663A for sold-to xxxxx error in message type DELINS

$
0
0

Hi Experts,

 

I am getting the below error message when posting the IDOC

 

No special rule exists in T663A for sold-to party 32213B

 

Message no. V4033

Diagnosis

 

A special regulation is missing in Table T663A for the sold-to party.

System Response

 

The system terminates processing.

Procedure

 

Please create a special regulation in Table T663A for the sold-to party. Then restart IDOCS processing from mail.

 

Please help me to solve this..

 

Thankyou in advance..

 

Prabhakar

How to maintain Conversion price for the MATERIAL in SAP ERP

$
0
0

Hello Experts,

 

I am facing problem to maintain the conversion price for the MATERIAL,

I have PLANT '0001' in that the CURRENCY maintained is EUR,

But my client is using other currencies like USD, TYP etc.

 

so i created a new plant but in that plant i can maintain only one currency.

So for now in that plant i have used the Currency USD no use.

 

Still I am facing problem because the conversion price is not maintained in my system.

 

suggest me some FUNCTION MODULES.

 

or

 

Any other way to solve this problem.

 

or

 

The procedure to maintain the conversion price actually its functional work.

And i am a developer.

 

please help me out.

 

Thanks in Advance.

add menubutton in smartform output

$
0
0

Hi ,

 

I am calling smartform from alv using reuse_alv_list_display .Here I want to add button in smartform to send pdf mail  .How do we achieve this .I tried using standard smartform buttons but the values of sy-ucomm of those buttons are not appearing in the user command form of the ALV in debug mode .  I have searched the forum but could find any solution .


LSMW with Batch Input : conversion time shows dump in standard LSMW program

$
0
0

Hi Guys,

 

I am trying to create Purchase order by LSMW Batch Input method, after assigning file, while trying to convert data system is showing short dump in LSMW standard program. I have made conversion of BLDAT, EINDAT, LIFNR this field element by Function Module already in my Conversion method step. I am also sharing the screen  shots. Please help me out.

Update Your ABAP Development Skills to SAP NetWeaver 7.0 - Introduction

$
0
0

Based on SAP TechEd '07 session CD251, this eClass focuses on introducing new development technologies (Persistent Objects, Enterprise Services, Model Classes, Web Dynpro ABAP), but in a connected, practical example. This way we will touch on cross-technology topics like transactionality, cross-component usage, and model re-use. The session will be designed for developers who have a good 4.6C level of ABAP development skills, but who want to update those skills to the SAP NetWeaver 7.0 world.

Watch this eClass

Duration: 00:12:59

the performance of ‘STARTING NEW TASK’ when handling mass data

$
0
0

I will just show some key codes as below:


snt1.png

 

In function module ‘ZSYL_TT’, I insert data of the internal table into a Z* database table (suppose all key fields are specified):

snt2.png


In this program, I de-package five million records into five internal tables with one million records for each, and do insert by using parallel processing. It took me around 5-6 minutes.

 

Next, I use a normal means which is sequence processing:

snt3.png

 

Five internal tables with one million records for each now are handled by sequence, and it took me around 7 minutues.


Maybe this test is not good enough, but anyway, it seems that we don’t get much benefit from parallel processing. One of the reasons I can imagine is the data copy from current process to the new process. This takes time when one million records are copied.


Moreover, I found it seems that STARTING NEW TASK actually make a new login rather than open a new dialog process in the current session. (Correct me if I am wrong.)


So, is there anyone could give more details of the mechanism of STARTING NEW TASK and provide a better way to do that?

Problem in Payment Plan in FSCD

$
0
0

Hello everyone,

 

I have a problem in Payment Plan which in FS-CD (IO),

I know the get function module which is ISSC_INSO_VVSCPOS_GET but I want to know the COLLECT Function Module.


Please Help me, ASAP.

Thanks in Advance

 

Regards

Niraj Sinha

ERROR while using HTTP_GET FUNCTION MOUDLE

$
0
0

Hi frnds,

 

Need your help in sloving the requirement..

 

In t.code iw21 for PM(notifictaions) while we enter using the M2 r m5. It opens the creation of notification there at the end we are adding a button .

 

when ever the button is clicked it should open the Browser(Url)

 

So we are using HTTP_GET Function module while the button is clicked  the url should be populated.

 

But here it was showing the error when we click on the button .

 

Do we have any other alternative standard function module to pass the url which is similar to HTTP_GET..

BAPI_USER_CHANGE change password in a different system

$
0
0

Hello Abap Gurus,

 

I am having an issue with BAPI_USER_CHANGE. All the client data is centralized in system 250, so, we need to perform password change for any other system in 250. I am writing a program to change user´s password when lock but this program needs to be executed from any system.

 

How can I use BAPI_USER_CHANGE to change password for system 700 for example? if i execute it in system 700 it does not work because client data is centralized in 250, and if i execute it in 250 it changes 250 password, not 700. Does anyone know if i can use this FM differently so that it works for me, or anyone knows any other BAPI i can use?

 

FYI, i was also trying batch input to SU01 to perform the password change, however, the system selection is performed in an ALV table that cannot be used in BDC. So i have pretty much ruled out this option.

 

Best Regards,

 

Gustavo

BAPI to change user password on child system from CUA

$
0
0

I am trying to find a BAPI which will allow me to change a user's password from our Central User Administration system where the user's access and password is on the child system.

 

I am using BAPI_USER_CREATE1 to create the user but if I enter the password in here it doesn't do anything.  I can't run a BAPI on the child system as we have the password field locked down so it's only maintainable in CUA.

 

I've searched on here and found plenty of people asking the same question but no solution which fits my requirements is being offered.

 

Any suggestions welcome.

 

Thanks,

 

Gill


cfop not found in va02 but found in va03 why?

$
0
0

Hi abapers,

 

when we execute sale order in va02 its getting error ('CFOP' not found) but in va03 its showing correctly. can you explain how to solve this issue .please find attachment.

Where to find contents of SHPMNT05

$
0
0

Hi All,

 

I need to know what segments contain what fields for SHPMNT05?  Is there a site that provides that documentation?

 

Neal

Enhancement in F110 APP is it possible ?

$
0
0

Hi everyone,

I know your time are valuable,

with all do respect, i just want to know.

 

Is it possible to implement the concept of New GL Substitution, in F110 (Automatic Payment Program).

Exactly what i want is while entering parameters in APP the system should recognize to the Identification (REGUA - LAUFI) and according to that system identify starting few Char and automatically update the field name Payment Method (LFB1-ZWELS), values , select Exclude Value by default.

 

I just want to know is it possible, if yes can i ask how.

 

 

In Advance Thanks.

Hide key in dropdown list

$
0
0

Hi,

 

I have a dropdown list in a screen that I fill with the FM VRM_SET_VALUES.

 

Because the key of the values is a GUID, I want to hide this key in the dropdown list and show only the text.

 

Is this possible?

 

Thx!

Simultaneous order updates in CRM

$
0
0

We are currently having an issue where we get DUPREC short dumps when we get multiple simultaneous updates for sales orders in CRM from our Legacy system through XI. The IDoc updates themselves are no problem, as they are all queued. However, each update to the sales order triggers an update to R/3, which in turn triggers a CSA_ORDER_* queue back into CRM. The issue happens when we have BDoc updates happening at the same time as IDoc updates, and the BDoc updates start to fail on DUPREC insertions, and then the idoc updates don't behave as expected either.

 

I tried blocking the CSA_ORDER queue through SMQR, and when I do that, all of the idoc updates to the order work perfectly. I am pretty certain the issue comes from BDoc's and IDoc's updating the order at the same time.

 

I have tried a lot of different fixes at a code level for this and none of them seem to work. It's a custom interface that doesn't rely on CRMXIF_ORDER_SAVE, it just does a lot of maintenance functions and then uses CRM_ORDER_SAVE at the end. That was probably not the best way to design it, but that ship has sailed and there's no going back.

 

What I've tried that didn't work:

 

1) Manual ENQUEUE and DEQUEUE calls - I enqueue'd when reading the order and dequeue'd at the end of idoc processing.

2) FM CRM_ORDER_CHECK_CHANGE_ALLOWED - I called this, like the UI does, before editing an order. It did not work.

3) I tried checking the QRFC table directly, bypassing buffers, for the existence of an R/3 queue, and waiting until after the entry went away to do any sales order updates.

 

Because my code changes haven't been having an impact on this issue, I am trying to focus instead on queueing these updates appropriately. To that end, I have been wondering if it is possible to place an IDoc into a normal QRFC queue like I would see on SMQ1/SMQ2. Currently, all the idoc queues display on WEINBQUEUE, but those queues don't seem to be the same as the ones on SMQ1/SMQ2, and I'm not clear on what the difference is. My goal here would be to place inbound idoc updates into the CSA_ORDER_* queue from R/3, so that each update is processed in the order that it is processed.

 

Does anybody know if this is possible, or any other solution I can use to properly synchronize simultaneous IDoc and BDoc updates to a sales order?

Viewing all 8332 articles
Browse latest View live


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