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

Initialize total sum result in Salv

$
0
0

Hello all,

I created a screen (not sub-screen) in my program that get's it's data from another screen row

and show a resultset in Salv table, one of the columns contain float number (weight of carton ...)

When the user do total sum on this column he gets the result, but when he is closing this window

and open it for another set of data, the result of total sum remains the same althow it's not true (not

belong to the new dataset).

 

The code that I made for showing the data in the Salv :

In TOP include :

 

DATA: gc_prod_list               TYPE scrfname VALUE 'PROD_CNTRL_LOG', "#EC NEEDED

       gr_prod_list               TYPE REF TO cl_salv_table,       "#EC NEEDED

       gr_prod_list_functions     TYPE REF TO cl_salv_functions,           "#EC NEEDED

       gr_prod_list_display       TYPE REF TO cl_salv_display_settings,    "#EC NEEDED

       gr_prod_list_layout        TYPE REF TO cl_salv_layout,              "#EC NEEDED

       g_cont_prod_list           TYPE REF TO cl_gui_custom_container, "#EC NEEDED

       gr_prod_list_selections    TYPE REF TO cl_salv_selections,

       gr_prod_list_columns       TYPE REF TO cl_salv_columns_table,

       gr_prod_list_column        TYPE REF TO cl_salv_column_table,

       gt_prod_list_rows          TYPE salv_t_row,                 "#EC NEEDED

       gv_prod_list_flag          type flag,

       GV_prod_LIST_TITLE         type string.


In Salv include :


FORM show_hu_prod CHANGING lv_show_prod_list TYPE flag.

 

   DATA: lv_key    TYPE salv_s_layout_key.

 

   IF gt_prod_hu IS INITIAL.

     MESSAGE i334(zwm). " No stock pallets to show

     CLEAR lv_show_prod_list.

     RETURN.

   ENDIF.

 

   IF lv_show_prod_list = 'X'.

     gr_prod_list->refresh( ).

     RETURN.

   ENDIF.

   lv_show_prod_list = 'X'.

 

   IF cl_salv_table=>is_offline( ) EQ if_salv_c_bool_sap=>false.

     CREATE OBJECT g_cont_prod_list

       EXPORTING

         container_name = 'PROD_CNTRL_LOG'.

   ENDIF.

 

   TRY.

       cl_salv_table=>factory(

         EXPORTING

           r_container    = g_cont_prod_list

           container_name = 'PROD_CNTRL_LOG'

         IMPORTING

           r_salv_table   = gr_prod_list

         CHANGING

           t_table        = gt_prod_hu ).

     CATCH cx_salv_msg.                                  "#EC NO_HANDLER

   ENDTRY.

 

   gr_prod_list_functions = gr_prod_list->get_functions( ).

   gr_prod_list_functions->set_all( abap_true ).

   gr_prod_list_display = gr_prod_list->get_display_settings( ).

   gr_prod_list_display->set_striped_pattern( cl_salv_display_settings=>true ).

   gr_prod_list_layout = gr_prod_list->get_layout( ).

   lv_key-report = sy-repid.

   gr_prod_list_layout->set_key( lv_key ).

   gr_prod_list_layout->set_save_restriction( cl_salv_layout=>restrict_none ).

 

*... set the columns technical

   DATA: lr_columns TYPE REF TO cl_salv_columns_table.

 

   lr_columns = gr_prod_list->get_columns( ).

   lr_columns->set_optimize( 'X' ).

 

   PERFORM set_prod_hu_columns USING gr_prod_list.

   gr_prod_list_selections = gr_prod_list->get_selections( ).

   gr_prod_list_selections->set_selection_mode( if_salv_c_selection_mode=>single ).

 

   SORT gt_prod_hu BY exidv.

   IF gv_prod_list_flag IS INITIAL.

     gr_prod_list->display( ).

     gv_prod_list_flag = 'X'.

   ELSE.

     gr_prod_list->refresh( ).

   ENDIF.

 

ENDFORM.                    " SHOW_HU_PROD


*&---------------------------------------------------------------------*

*&      Form  SET_HU_COLUMNS

*&---------------------------------------------------------------------*

FORM set_prod_hu_columns  USING p_gr_table TYPE REF TO cl_salv_table.

 

   DATA: lr_oref TYPE REF TO cx_root,

         lv_text TYPE string.                                "#EC NEEDED

 

   TRY .

       gr_prod_list_columns = p_gr_table->get_columns( ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'EXIDV' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-028 ).

   gr_prod_list_column->set_medium_text( text-029 ).

   gr_prod_list_column->set_long_text( text-029 ).

   gr_prod_list_column->set_key( 'X' ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'MATNR' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-001 ).

   gr_prod_list_column->set_medium_text( text-002 ).

   gr_prod_list_column->set_long_text( text-002 ).

   gr_prod_list_column->set_key( 'X' ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'MAKTX' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-003 ).

   gr_prod_list_column->set_medium_text( text-004 ).

   gr_prod_list_column->set_long_text( text-004 ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'ALTME' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-054 ).

   gr_prod_list_column->set_medium_text( text-055 ).

   gr_prod_list_column->set_long_text( text-055 ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'LGORT' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-006 ).

   gr_prod_list_column->set_medium_text( text-007 ).

   gr_prod_list_column->set_long_text( text-007 ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'HSDAT' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-008 ).

   gr_prod_list_column->set_medium_text( text-009 ).

   gr_prod_list_column->set_long_text( text-009 ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'VFDAT' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-030 ).

   gr_prod_list_column->set_medium_text( text-031 ).

   gr_prod_list_column->set_long_text( text-031 ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'VEMNG' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_short_text( text-032 ).

   gr_prod_list_column->set_medium_text( text-033 ).

   gr_prod_list_column->set_long_text( text-033 ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'LGTYP' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_visible( '' ).

 

   TRY.

       gr_prod_list_column ?= gr_prod_list_columns->get_column( 'LGPLA' ).

     CATCH cx_salv_not_found INTO lr_oref.

       lv_text = lr_oref->get_text( ).

   ENDTRY.

   gr_prod_list_column->set_visible( '' ).

 

ENDFORM.                    " SET_ERR_COLUMNS

 

Thank you,

Regards,

Amit Berku


setting an element range in a container : swc_set_table or swc_set_element ?

$
0
0

Hi experts,

 

I have a question concerning a rule. How should I set a range for a container element?

 

To set a single value I use the expression: swc_set_element container 'valuename' value   (examples of value here 10 11 or 12)

To set multiple value I use the expression: swc_set_table container 'valuename' tablevalue ( example of value in the table 10, 11, 12)

 

How do I define a values range?  for example values are in the interval 10-12

 

Thanks

Listbox after selection, no value

$
0
0

Hi All,

 

I am using ABAP Listbox with VRM to set the dropdown.

 

I am able to set the dropdown, but the user selected value doesnot appear in the parameter specified.

 

I have tried using VRM_GET_VALUES but the same didnt work.

 

Please guide.

 

Below is my code:

 

REPORT zbw_mosl_file_upd.

 

 

TYPE-POOLS: vrm, slis.

 

 

 

TYPES: BEGIN OF ty_retailer,

        /bic/zcretalr TYPE /bic/oizcretalr,

       END OF ty_retailer.

 

 

TYPES: BEGIN OF ty_pzcfilenm2,

       checkbox TYPE xfeld,

       /bic/zcfilenm TYPE /bic/oizcfilenm,

       objvers TYPE rsobjvers,

       changed TYPE rsrchangeflag,

       /bic/zcstat TYPE /bic/oizcstat,

       /bic/zcretalr TYPE /bic/oizcretalr,

      END OF ty_pzcfilenm2.

 

 

DATA: lt_retailer TYPE TABLE OF ty_retailer,

      ls_retailer TYPE ty_retailer.

 

 

DATA: lt_pzcfilenm TYPE TABLE OF /bic/pzcfilenm,

      ls_pzcfilenm LIKE LINE OF lt_pzcfilenm.

 

 

DATA: lt_pzcfilenm2 TYPE TABLE OF ty_pzcfilenm2,

      ls_pzcfilenm2 LIKE LINE OF lt_pzcfilenm2.

 

 

DATA: lt_fieldcat TYPE slis_t_fieldcat_alv,

      ls_fieldcat TYPE slis_fieldcat_alv.

 

 

DATA: name TYPE vrm_id,

      list TYPE vrm_values,

      value LIKE LINE OF list,

      lv_records TYPE i,

      lv_message TYPE string.

 

 

DATA: lv_repid TYPE sy-repid VALUE sy-repid.

 

 

DATA lr_grid TYPE REF TO cl_gui_alv_grid.

 

 

 

 

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

 

 

PARAMETERS: p_retail LIKE /bic/pzcfilenm-/bic/zcretalr AS LISTBOX VISIBLE LENGTH 30.

 

 

SELECTION-SCREEN: END OF BLOCK b1.

 

 

 

 

 

 

 

AT SELECTION-SCREEN OUTPUT.

 

 

  SELECT /bic/zcretalr

    FROM /bic/pzcfilenm

    INTO TABLE lt_retailer

    WHERE /bic/zcretalr IS NOT NULL.

  IF sy-subrc NE 0.

 

 

    MESSAGE e000(zbw_mosl_file_upd) WITH 'Error'.

    EXIT.

 

 

  ELSE.

 

 

    SORT lt_retailer.

 

 

    DELETE ADJACENT DUPLICATES FROM lt_retailer.

 

 

    LOOP AT lt_retailer INTO ls_retailer.

      value-key = sy-tabix.

      value-text = ls_retailer-/bic/zcretalr.

      APPEND value TO list.

 

 

    ENDLOOP.

 

 

    name = 'P_RETAIL'.

 

 

    CALL FUNCTION 'VRM_SET_VALUES'

      EXPORTING

        id     = name

        values = list.

 

 

  ENDIF.

 

 

AT SELECTION-SCREEN.

  "Fetch all the Filenames which have Loaded status for the selected retailer

*  PERFORM fetch_loaded.

 

 

  CALL FUNCTION 'VRM_GET_VALUES'

    EXPORTING

      id     = name

    IMPORTING

      values = list.

Changing the program name of the scheduled background job sent to external mail

$
0
0

Hi Gurus,

 

 

I scheduled a background job to run at a particular time and the output should be sent to a mail which is working perfectly but the issue am having is that the attachment in the mail is coming in the name of the program name. How do I change the program name to the actual description of the report.

Is there any standard BAPI to update benefit infotypes ?

$
0
0

Can anybody help me , if there is any standard BAPI to update benefit infotypes ? Best practice to update benefit infotypes from 3rd party to ERP

Writing content into file in ASCII mode

$
0
0

Hi,

 

I am trying to write some content into file with TRANSFER statement, but it is not working as expected. When i try to write the content into file, the size of the file is doubled. I am getting the file from a different source in encoded base 64 format and i decode before writing the content.

 

Ex: When i upload the file (size ~800kb) and store it into string variable, i find the string to have 800,000 characters in debug mode. But, when i try to write the same string into File through below statement's, i find the size to be of 16,00,000 character's (~1600 kb). Since this is an background job, not sure, what is the mode i should write to the file. Can someone help to solve this issue ?

 

OPEN DATASET lv_full_filename FOR OUTPUT IN BINARY MODE


(or)


OPEN DATASET lv_full_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT


Thanks and Regards,

Gaurav.


Display 2 ALV grids in Spool

$
0
0

Hi Everyone,

 

Can someone tell me how we can display 2 ALV grids and a ALV header in spool .

How to define range for last sechduled job

$
0
0

Hello Folks,

 

I have a requirement in which i need to Sehschule a job that should run in every 30 mins, in these 30 mins all the sales orders get created.

I need to send a mail to a particular user for a sales order item, which has dummy material.

 

I have written logic date and time of last job. i have created range to get time of last job but it is not working

 

* Date and time of last job

SELECT * FROM tbtco

  INTO CORRESPONDING FIELDS OF TABLE gt_tbtco

                WHERE jobname EQ p_job AND

                      strtdate EQ sy-datum AND

                      status EQ 'F'.

 

 

SORT gt_tbtco BY sdlstrttm ASCENDING.

RANGES:r_time FOR  sy-uzeit.

r_time-sign = 'I'.

r_time-option = 'BT'.

r_time-low = starttime.

r_time-high = sy-uzeit.

APPEND r_time.

 

 

 

START-OF-SELECTION.

 

 

  SELECT vbeln

         vkorg

         vtweg

         spart FROM vbak

         INTO TABLE gt_vbak

         WHERE  erdat EQ sy-datum and

                erzet in r_time AND

                vkorg IN s_vkorg  AND

                vtweg IN s_vtweg AND

                spart IN s_spart .

 

 

IF gt_vbak[] IS NOT INITIAL.

 

SELECT vbeln

           posnr

           matnr

           werks

           vstel FROM vbap

           INTO TABLE gt_vbap

           WHERE  matnr IN s_matnr AND

                  werks IN s_werks AND

                  vstel IN s_vstel .

 

ENDIF.

 

 

  gt_vbap_temp[] = gt_vbap[].

  DELETE ADJACENT DUPLICATES FROM gt_vbap_temp COMPARING vbeln.

  LOOP AT gt_vbap_temp INTO w_vbap.

    MOVE w_vbap-vbeln TO i_vbeln.

 

 

 

Can anybody help me, what wrong i am doing here, that would be great help

Regards,


How could i Hide the Selection Screen Variant

$
0
0

Hi,

There is one report MB52, One of my client is running this report in background using Variant.

But if i open the MB52  And press the Variant, What are all the Existing Variant it is Not showing in the List At mb52  Selection Screen.

If i given variant name then press in Selection Screen Values are coming. Which means Variant is exists but It was hidden.

 

If i give some values in the selection screen Save under Variant , The variant name is i was given already existing one,

While saving it is asking me to Overwrite the Variant or Not. Which means Variant is Exists but it was hidden.

 

 

How could i hide the Selection Screen Variant. With out using SHD0,

Problem in passing sold to party valuein va01 with ITS service.

$
0
0

Hi Experts,

 

I have created the ITS Webgui transaction launcher in ECC and facing problem with the sold to party field value.

 

1) I have created ITS service to launch VA01 transaction.

2) I have successfully skipped the first screen by passing order type , sales org details.

3) But not able to pass the value to the sold to party field.

 

Below is the URL.

 

http://XXXXXXXXXXX/sap/bc/gui/sap/its/webgui/?sap-client=200&~transaction=VA01&VBAK-AUART=OR&VBAK-VKORG=ZKNS&VBAK-VTWEG=ZK&VBAK-SPART=ZK&~OKCODE=/00&KUAGV-KUNNR=100000&~OKCODE=/00

 

soldtoparty.PNG

Can anyone tell me how to pass value to the sold to party field i have checked it technical information it is the screen field with structure KUAGV.

 

Kindly help me to solve this issue.

 

Thanks,

Siraj.

I am able to generate function module code dynamically in internal table (BUFFER) , but not able to execute that code . Please provide solution to execute code written inside internal table ?

$
0
0

REPORT  ZDYNAMIC.

 

TABLES: fupararef.

 

   data: tbl_fupararef type fupararef occurs 0 with header line.

 

   DATA: L_LIN1(72),

         l_lin2(72),

         name(30).

 

   datait_fields type sval occurs 0 with header line.

  DATA BUFFER type RSWSOURCET.

  DATA wa type LINE OF RSWSOURCET.

 

   refresh: it_fields. clear it_fields.

 

   it_fields-tabname = 'FUPARAREF'.

   it_fields-fieldname = 'FUNCNAME'.

   it_fields-field_obl = 'X'.

   append it_fields. clear it_fields.

 

   call function 'POPUP_GET_VALUES'

        EXPORTING

             popup_title     = 'Function Name'

             start_column    = '5'

             start_row       = '5'

        TABLES

             fields          = it_fields

        EXCEPTIONS

             error_in_fields = 1

             others          = 2.

 

   CHECK SY-SUBRC = 0.

 

 

   read table it_fields index 1.

   SELECT        * FROM  fupararef into table tbl_fupararef

          WHERE  funcname  = it_fields-VALUE.

 

   loop at   tbl_fupararef.

 

     CLEAR: L_LIN1, name, l_lin2.

     CASE tbl_fupararef-PARAMTYPE.

       WHEN 'E' OR 'I'.

         if  tbl_fupararef-STRUCTURE ne space.

           L_LIN1 = 'DATA: &1 TYPE &2 .'.

 

 

         else.

           L_LIN1 = 'DATA: &1 .'.

         endif.

 

         refresh: it_fields. clear it_fields.

         CONCATENATE 'L' tbl_fupararef-PARAMETER into it_fields-value

               separated by '_'.

 

         it_fields-tabname = 'DD03L'.

         it_fields-fieldname = 'FIELDNAME'.

         it_fields-field_obl = 'X'.

         append it_fields. clear it_fields.

 

 

         call function 'POPUP_GET_VALUES'

              EXPORTING

                   popup_title     = 'Parameter Name'

                   start_column    = '5'

                   start_row       = '5'

              TABLES

                   fields          = it_fields

              EXCEPTIONS

                   error_in_fields = 1

                   others          = 2.

 

         read table it_fields index 1.

 

 

       WHeN 'T'.

         L_LIN1 = 'DATA: &1 TYPE &2'.

         l_lin2 = 'OCCURS 0 WITH HEADER LINE.'.

         refresh: it_fields. clear it_fields.

         CONCATENATE 'TBL' tbl_fupararef-PARAMETER into

                  it_fields-value

        separated by '_'.

         it_fields-tabname = 'DD03L'.

         it_fields-fieldname = 'FIELDNAME'.

         it_fields-field_obl = 'X'.

         append it_fields. clear it_fields.

 

 

         call function 'POPUP_GET_VALUES'

              EXPORTING

                   popup_title     = 'Internal Table Name'

                   start_column    = '5'

                   start_row       = '5'

              TABLES

                   fields          = it_fields

              EXCEPTIONS

                   error_in_fields = 1

                   others          = 2.

 

         read table it_fields index 1.

 

 

       when others.

         check 1 = 2.

     ENDCASE.

 

     REPLACE '&1' WITH it_fields-value(25) INTO L_LIN1.

     condense L_LIN1.

 

     REPLACE '&2' WITH tbl_fupararef-STRUCTURE(29) INTO L_LIN1.

     condense L_LIN1.

 

 

     aPPEND L_LIN1 TO BUFFER.

     if L_LIN2 ne space.

       APPEND L_LIN2 TO BUFFER.

     endif.

   ENDloop.

 

 

 

 

 

 

 

   CALL FUNCTION 'FUNCTION_STUB_GENERATE'

     EXPORTING

       FUNCNAME                 = tbl_fupararef-funcname

      IC_MODE                  = 'X'

     TABLES

       SOURCE                   = BUFFER

    EXCEPTIONS

      FUNCTION_NOT_EXIST       = 1

      OTHERS                   = 2

             .

   IF SY-SUBRC <> 0.

  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

   ENDIF.




LOOP AT buffer into wa.

 

     write :/ wa.

 

   ENDLOOP.




OUTPUT : ( zsimple is the FM to add 2 numbers )


DATA : L_NUM1 TYPE I .

DATA : L_NUM2 TYPE I .

DATA : L_TOTAL TYPE I .


CALL FUNCTION ZSIMPLE


EXPORTING

 

NUM1 =

NUM2 =

 

IMPORTING

 

TOTAL =

 

 

( ABOVE OUTPUT IS IN THE INTERNAL TABLE 'BUFFER' , NOW WANTED TO PASS PARAMETER DYNAMICALLY TO ABOVE CODE , AND EXECUTE THE SAME TO SEE THE OUTPUT ? ) 





Send PO to multiple Vendor email addresses

$
0
0

Our system is set up to email a purchase order to the email address maintained  in the Vendor maintenance.  For many of our vendors, we maintain multiple email addresses, although only one address can be selected.  Is there a user exit or methodology that can be used to email the PO to all addresses maintained for a vendor?

 

David

Mail not triggering for CC when I use 'SO_NEW_DOCUMENT_SEND_API1'

$
0
0

Hello All,

 

When I am using this FM ' SO_NEW_DOCUMENT_SEND_API1'. The mail get trigger only the receiver 'TO' and not sending mail to 'CC'.

This is my code which i written in my report.

 

     ls_mailrecipients-rec_type  = 'U'.

     ls_mailrecipients-receiver = p_e_mail.

     APPEND ls_mailrecipients TO lt_mailrecipients .

 

 

     ls_mailrecipients-receiver = p_m_mail.

     ls_mailrecipients-copy = 'X'.

     APPEND ls_mailrecipients TO lt_mailrecipients .

 


CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

       EXPORTING

         document_data              = lt_mailsubject

         commit_work                 = 'X'

       TABLES

         object_content             = lt_mailtxt

         receivers                      = lt_mailrecipients

       EXCEPTIONS

         too_many_receivers         = 1

         document_not_sent          = 2

         document_type_not_exist    = 3

         operation_no_authorization = 4

         parameter_error            = 5

         x_error                          = 6

         enqueue_error              = 7

         OTHERS                     = 8.

     IF sy-subrc EQ 0.

       COMMIT WORK.

        SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.    

     ENDIF.

   ENDIF.

 

Before run this FM, lt_mailrecipients contains 2 records (one is TO mail id & another one is CC mail ID ). But after run this FM, lt_mailrecipients contains only one record( Only TO mail id)

Please help on this issue.

Authorization for t-code SUIM

$
0
0

Hello Gurus, We need to authorize one user for transaction SUIM. As of now, we don't have any BASIS support and we are not likely to hire any BASIS consultant in the near future. Please let me know if there is any way to authorize one user for SUIM. If this question is posted in the wrong forum, please suggest where should this be posted. Thank you, Pravin

ME5A enhancement for new field

$
0
0

Hi Experts,

 

I have a requirement to add a custom field in tcode ME5A. I have searched and found some answer. ME5A Report - Request for Help | SCN

I have appended my new field in CI_EBANDB, but then how can I populate my new field? I need to use q query to populate the field.

But where here can I find any enhancement on how to populate the my new field in RM06BA00? Thanks


Error Invalid sapgui input data: invalid EOKDUMMY_1 header length

$
0
0

Hi!

 

 

When using a transaction via SAPconsole I had the following message:

 

Invalid sapgui input data: invalid EOKDUMMY_1 header length Press any key...

 

 

That only happens when I execute the transaction via a device "data collector" and do not happens using SAPgui on my computer.

 

SCN1.JPG

 

 

It happens when I fill fhe field LEITURA with any information. Even with a single number or letter.

 

Maybe the field LEITURA there are too much information to put in.

 

SCN2.JPG

 

When I use the SAPgui on my computer, it works pretty fine:

 

SCN3.JPG

 

I appreciate any help!

 

 

Thanks!

How to get efficiently values from a table that are not in another table?

$
0
0

Hi experts,

 

i have 2 database tables TAB1 and TAB2. Both tables have between 3 and 4 millions entries. The goal is to find out all entries in TAB1 that are not in TAB2.

The tables are some common key fields. An easy way to achieve this will be to loop on one internal table with data from TAB1 and then check if an entries is not in TAB2 and add it to a result list. Is there any way to resolve this efficiently. I am taking here about tables with million entries.

 

Thanks in advance.

ALV TREE not refreshing

$
0
0

Hi Experts,

 

I have created an ALV tree to display product hierarchy for material group. There are two fields on the screen: Mat Grp & Prod Hier.

When user takes F4 for Product hier, the values should be filtered based on the Mat grp entered.

 

Data: mat grp1 has 10 product hierarchy values assigned to it. And mat grp2 which has 20 prod hier values assigned to it.

 

The prod hier values are fetched in an internal table & the node is added to the tree within looping of the internal table.

 

Issue:

When I enter mat grp1 and do F4, I get 10 values in the tree which are assigned to it.

Then I enter mat grp2 and do F4, I get the same 10 values in the tree which are assigned to mat grp1. The tree does not refresh.

 

I then open a new session, enter mat grp2 and do F4, I get the 20 prod hier value which are assigned to it.

Then I enter mat grp1 and do F4, I get the same 20 values which are assigned to mat grp2.

 

I tried refreshing, clearing, freeing the container & tree objects. Still I am getting the same result. The tree is not refreshing.

Am I missing anything? Any suggestions?

Efficiently find master object of sub object.

$
0
0

I am using function module get_r3tr_object_from_limu_obj inside a loop to find master object of sub object in transport tables(E071,E071k.

But since there are over 2 lac's entries this is taking a lot of time.

Is there any other means to find the master object of a sub object.

 

LOOP AT lt_ls_subobjects into lw_ls_subobjects.


       CALL FUNCTION 'GET_R3TR_OBJECT_FROM_LIMU_OBJ'

         EXPORTING

           P_LIMU_OBJTYPE       = lw_ls_subobjects-OBJECT

           P_LIMU_OBJNAME       = lw_ls_subobjects-OBJ_NAME

        IMPORTING

          P_R3TR_OBJTYPE       = master_type

          P_R3TR_OBJNAME       = master_name

        EXCEPTIONS

          NO_MAPPING           = 1

          OTHERS               = 2

                 .

 

endloop.

Display two ALV output in batch

$
0
0

Hi all,

 

I am displaying 2 Tables in ALV grid list display in selection screen but when I am running the job in background then the spool report is coming in haphazard manner and everything is getting merged.

Can someone tell me how to Display 2 different tables in spool output. 

Viewing all 8332 articles
Browse latest View live


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