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

BAPI for updating VBUP-RFSTA

$
0
0

Hello,

 

I have requirement to update the field RFSTA  in standard table VBUP.

 

I have tried with BAPI_SALESORDER_CHANGE but i couldn't find the feild RFSTA in item level to update .

 

Please suggest me BAPI or Fucntion module to update the table VBUP.

 

Thanks in advance,

soultion is awarded.


TOP of Page not displaying when using CALL METHOD G_GRID->set_table_for_first_display

$
0
0

Hi Team,

I am not getting the TOP of Page when using CALL METHOD G_GRID->set_table_for_first_display.

I created Custom control , its displaying TOP of PAGE and output( but output is getting in 2 windows 1, top of page and 2nd output data and not in FULL screen. ).

If i delete Custom control , now OUTPUT is in FULL Screen and top of page is missing. Please let me know where I am doing wrong. Your inputs are appreciated.

 

Here is my code:

data i_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat."Field catalog

FIELD-SYMBOLS: <fs_fcat> TYPE lvc_s_fcat.

DATA: w_style TYPE lvc_s_styl, "cell editing and

      w_cellcolor TYPE lvc_s_scol, "For cell color

      w_layout TYPE lvc_s_layo,"Layout structure

       w_variant TYPE disvariant.

DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID.

* Filling the fieldcatalog table

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

    EXPORTING

      i_structure_name       = 'struc_name'

    CHANGING

      ct_fieldcat            = i_fieldcat

    EXCEPTIONS

      inconsistent_interface = 1

      program_error          = 2

      OTHERS                 = 3.

 

 

w_variant-report = sy-repid.

* Setting layout

  w_layout-stylefname = 'CELLSTYLES' ."cell-push button and edit

  w_layout-ctab_fname = 'CELLCOLOR'."For cell coloring

* For coloring closed Notifications.

LOOP AT GT_FINAL INTO GS_FINAL.

   IF GS_FINAL-COMM EQ 'CLOSE'.

      CLEAR w_cellcolor.

        w_cellcolor-fname = 'COMM'.

        w_cellcolor-color-col = SY-TABIX.

        w_cellcolor-color-int = '1'.

        w_cellcolor-color-inv = '1'.

        APPEND w_cellcolor TO GS_FINAL-cellcolor.

        MODIFY GT_FINAL FROM GS_FINAL INDEX SY-TABIX TRANSPORTING cellcolor.

ENDIF.

ENDLOOP.

 

 

LOOP AT i_fieldcat ASSIGNING <fs_fcat>.

    CASE <fs_fcat>-fieldname.

* Making a column as Editable

      WHEN 'BNAME'.

        <fs_fcat>-edit = 'X'.

        <fs_fcat>-REPTEXT = 'QSB Techn'.

        <fs_fcat>-SCRTEXT_L = 'QSB Techn'.

        <fs_fcat>-SCRTEXT_M = 'QSB Techn'.

        <fs_fcat>-SCRTEXT_S = 'QSB Techn'.

      WHEN 'COMM'.

        <fs_fcat>-edit = 'X'.

        <fs_fcat>-REPTEXT  =  'Comment'.

        <fs_fcat>-SCRTEXT_L = 'Comment'.

        <fs_fcat>-SCRTEXT_M = 'Comment'.

        <fs_fcat>-SCRTEXT_S = 'Comment'.

* Changing field Description for output

      WHEN 'QMNUM'.

         <fs_fcat>-SCRTEXT_L = 'Quality Note'.

         <fs_fcat>-SCRTEXT_M = 'Quality Note'.

         <fs_fcat>-SCRTEXT_S = 'Quality Note'.

      WHEN 'STATUS'.

         <fs_fcat>-REPTEXT = 'Open/Close'.

         <fs_fcat>-SCRTEXT_L = 'Open/Close'.

         <fs_fcat>-SCRTEXT_M = 'Open/Close'.

         <fs_fcat>-SCRTEXT_S = 'Open/Close'.

      WHEN 'CRT_NAME'.

         <fs_fcat>-DD_OUTLEN = 20.

         <fs_fcat>-SCRTEXT_L = 'Created By'.

         <fs_fcat>-SCRTEXT_M = 'Created By'.

         <fs_fcat>-SCRTEXT_S = 'Created By'.

      WHEN 'CHG_NAME'.

        <fs_fcat>-DD_OUTLEN = 20.

         <fs_fcat>-SCRTEXT_L = 'Changed By'.

         <fs_fcat>-SCRTEXT_M = 'Changed By'.

         <fs_fcat>-SCRTEXT_S = 'Changed By'.

      WHEN 'QMTXT'.

        <fs_fcat>-DD_OUTLEN = 20.

         <fs_fcat>-SCRTEXT_L = 'QM Note Description'.

         <fs_fcat>-SCRTEXT_M = 'QM Note Description'.

         <fs_fcat>-SCRTEXT_S = 'QM Note Description'.

 

 

      WHEN 'TNAME'.

         <fs_fcat>-REPTEXT = 'QSB Techn Name'.

         <fs_fcat>-SCRTEXT_L = 'QSB Techn Name'.

         <fs_fcat>-SCRTEXT_M = 'QSB Techn Name'.

         <fs_fcat>-SCRTEXT_S = 'QSB Techn Name'.

      WHEN 'BIIND'.

         <fs_fcat>-REPTEXT  =  'BI.Ind'.

         <fs_fcat>-SCRTEXT_L = 'BI.Ind'.

         <fs_fcat>-SCRTEXT_M = 'BI.Ind'.

         <fs_fcat>-SCRTEXT_S = 'BI.Ind'.

    ENDCASE.

 

 

  ENDLOOP.

CREATE OBJECT G_CUSTOM_CONTAINER

EXPORTING CONTAINER_NAME = G_CONTAINER.

 

 

*Create TOP-Document

CREATE OBJECT O_DYNDOC_ID

EXPORTING STYLE = 'ALV_GRID'.

 

 

*Create Splitter for custom_container

CREATE OBJECT O_SPLITTER

EXPORTING PARENT  = G_CUSTOM_CONTAINER

ROWS    = 2

COLUMNS = 1.

 

 

  CALL METHOD O_SPLITTER->GET_CONTAINER

    EXPORTING

    ROW = 1

    COLUMN = 1

    RECEIVING

    CONTAINER = O_PARENT_TOP.

 

 

  CALL METHOD O_SPLITTER->GET_CONTAINER

    EXPORTING

    ROW = 2

    COLUMN = 1

    RECEIVING

    CONTAINER = O_PARENT_GRID.

 

 

*Set height for g_parent_html

  CALL METHOD O_SPLITTER->SET_ROW_HEIGHT

    EXPORTING

    ID = 1

    HEIGHT = 30.

 

 

CREATE OBJECT G_GRID

EXPORTING I_PARENT = cl_gui_container=>default_screen."O_PARENT_GRID.

*Set height for g_parent_html

CREATE OBJECT G_HANDLER.

SET HANDLER G_HANDLER->TOP_OF_PAGE FOR G_GRID.

 

 

*Calling the Method for ALV output

 

 

CALL METHOD G_GRID->set_table_for_first_display

    EXPORTING

      is_variant                    = w_variant

      i_save                        = 'A'

      is_layout                     = w_layout

    CHANGING

      it_outtab                     = gt_final

      it_fieldcatalog               = i_fieldcat

    EXCEPTIONS

      invalid_parameter_combination = 1

      program_error                 = 2

      too_many_lines                = 3

      OTHERS                        = 4.

 

 

 

 

  CALL METHOD O_DYNDOC_ID->INITIALIZE_DOCUMENT

    EXPORTING

    BACKGROUND_COLOR = CL_DD_AREA=>COL_TEXTAREA.

 

 

*Processing events

  CALL METHOD G_GRID->LIST_PROCESSING_EVENTS

    EXPORTING

    I_EVENT_NAME = 'TOP_OF_PAGE'

    I_DYNDOC_ID = O_DYNDOC_ID.

 

 

 

 

 

 

 

 

CLASS LCL_EVENT_HANDLER DEFINITION .

PUBLIC SECTION .

METHODS:

*Event Handler for Top of page

TOP_OF_PAGE FOR EVENT TOP_OF_PAGE

       OF CL_GUI_ALV_GRID

       IMPORTING E_DYNDOC_ID.

ENDCLASS.             "lcl_event_handler DEFINITION

CLASS LCL_EVENT_HANDLER IMPLEMENTATION.

METHOD TOP_OF_PAGE.

*Top-of-page event

PERFORM EVENT_TOP_OF_PAGE USING O_DYNDOC_ID.

 

 

ENDMETHOD.                            "top_of_page

 

 

 

 

FORM EVENT_TOP_OF_PAGE USING   DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.

 

 

DATA : DL_TEXT(255) TYPE C.  "Text

  CALL METHOD DG_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = 'Flight Details'

    SAP_STYLE = CL_DD_AREA=>HEADING

    SAP_FONTSIZE = CL_DD_AREA=>LARGE

    SAP_COLOR = CL_DD_AREA=>LIST_HEADING_INT.

 

 

  CALL METHOD DG_DYNDOC_ID->ADD_GAP

    EXPORTING

    WIDTH = 200.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_PICTURE

    EXPORTING

    PICTURE_ID = 'ENJOYSAP_LOGO'.

 

 

*Add new-line

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

 

 

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

 

 

 

 

CLEAR : DL_TEXT.

 

 

*program ID

DL_TEXT = 'Program Name :'.

 

 

  CALL METHOD DG_DYNDOC_ID->ADD_GAP.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_HEADING_INT.

 

 

CLEAR DL_TEXT.

 

 

DL_TEXT = SY-REPID.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_NEGATIVE_INV.

 

 

*Add new-line

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

 

 

 

 

CLEAR : DL_TEXT.

 

 

 

 

CLEAR : DL_TEXT.

 

 

*program ID

DL_TEXT = 'User Name :'.

 

 

  CALL METHOD DG_DYNDOC_ID->ADD_GAP.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_HEADING_INT.

 

 

CLEAR DL_TEXT.

 

 

DL_TEXT = SY-UNAME.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_NEGATIVE_INV.

 

 

*Add new-line

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

 

 

 

 

CLEAR : DL_TEXT.

 

 

*Run Date

DL_TEXT = 'Run Date :'.

 

 

  CALL METHOD DG_DYNDOC_ID->ADD_GAP.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_HEADING_INT.

 

 

CLEAR DL_TEXT.

 

 

*Move date

WRITE SY-DATUM TO DL_TEXT.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_NEGATIVE_INV.

 

 

*Add new-line

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

 

 

CLEAR : DL_TEXT.

 

 

*Time

DL_TEXT = 'Time :'.

 

 

  CALL METHOD DG_DYNDOC_ID->ADD_GAP.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_HEADING_INT.

 

 

CLEAR DL_TEXT.

 

 

*Move time

WRITE SY-UZEIT TO DL_TEXT.

 

 

  CALL METHOD O_DYNDOC_ID->ADD_TEXT

    EXPORTING

    TEXT = DL_TEXT

    SAP_EMPHASIS = CL_DD_AREA=>HEADING

    SAP_COLOR = CL_DD_AREA=>LIST_NEGATIVE_INV.

 

 

*Add new-line

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

 

 

 

 

PERFORM DISPLAY.

 

 

ENDFORM.                    " EVENT_TOP_OF_PAGE

 

 

FORM DISPLAY.

 

 

*Creating html control

  IF O_HTML_CNTRL IS INITIAL.

    CREATE OBJECT O_HTML_CNTRL

         EXPORTING

              PARENT    = O_PARENT_TOP.

  ENDIF.

  CALL METHOD O_DYNDOC_ID->MERGE_DOCUMENT.

  O_DYNDOC_ID->HTML_CONTROL = O_HTML_CNTRL.

*Display document

  CALL METHOD O_DYNDOC_ID->DISPLAY_DOCUMENT

    EXPORTING

      REUSE_CONTROL      = 'X'

      PARENT             = O_PARENT_TOP

    EXCEPTIONS

      HTML_DISPLAY_ERROR = 1.

  IF SY-SUBRC NE 0.

  MESSAGE I999(00) WITH 'Error in displaying top-of-page'(036).

  ENDIF.

ENDFORM.                    " display

authorization of sq01 report does not work

$
0
0

Dear experts

 

hi,

i have created a report in sq01 based on the settings in sq02 and sq03 and assigned it to a role maintained in t.code pfcg. however, the report does not work based on the authorizations defined in this role. to be more specific, the user who the role is assigned to him should be limited for a report based on a determined field entry value but he is not limited. note that the limitation works in other transactions where the user should enter the specified value for him in the role. it the standard of the reports created by sq01 or i miss something?

Please give me guidance on this issue.

Thanks in advance

 

Regards

majid

How to get latitude & longitude from Google map or itouch map into ABAP ?

$
0
0

HI Expert,

 

I need your help on one development,

i want to develop a program in SAP ABAP to get latitude & longitude of a particular place,

I have a street name, city, pincode & country which i pass it to http://itouchmap.com/latlong.html

and get Latitude & longitude of the User but I am performing this activity manually and i want to do it through ABAP program.

 

i need a way to fetch Lat Long from web link & show as a output of the ABAP report.

 

Please check the attcahed file which contain manual process of my current activity.

 

Thanks & Regards,

 

Subhanshu Shrivastava

Sap script printing redundant lines

$
0
0

Hi All,

 

I am trying to print many pages of script. Each page contains should contain 1 item, but the script is printing 1 line on 1st page, 1st and second line on second page, 1st 2nd and third line on third page and so on. not able to sort out the problem. could anyone please help me?

 

regards,

Lavanya

How to Passing dynamic internal table to FM using RFC

$
0
0

Hi ,

 

 

 

I have implemented RFC FM , in the function module dynamic internal table.

 

my problem  is how to export dynamic internal to other system.

 

 

 

 

Please suggest me ..

 

 

 

Regards,

Balakrushna Gajula

select statement or providers to fetch data from hr tables?

$
0
0

Hi experts,

 

working on HR abap and would like to know which one is recommendable  to fetch data from the following statements,

 

 

* provider statement on  infotypes   or

 

*  select statement on tables

 

what is the difference and how will one increases the performance compare to other.

 

 

Thanks in Advance

 

regards

 

satish

Performance Issue with select statement

$
0
0

Hi ,

 

I come across some select statement which is little bit different from what i regularly see which is taking 14 sec to fetch 1200 products in the system..Here is the select statements..I analysed little bit and need your suggestions..

 

Please find the attachment for select statement..

 

SELECT *

           APPENDING CORRESPONDING FIELDS OF TABLE lt_product PACKAGE SIZE 10000

              FROM comm_product AS p

                  INNER JOIN comm_pr_frg_rod AS "org

                  ON  r~product_guid = p~product_guid

                  INNER JOIN comm_prprdcatr AS c

                   ON p~product_guid = c~product_guid

                  INNER JOIN comm_pr_frg_rod  AS v

                   ON p~product_guid     v~product_guid

                  INNER JOIN  crmm_pr_salesg AS w

                  ON v~fragment_guid  = w~frg_guid

             FOR ALL ENTRIES IN lt_productguid_exch

             WHERE p~product_guid     = lt_productguid_exch-product_guid

               AND p~product_type     IN ls_mdo_input_vals-it_product_type_ra->*

               AND p~product_type     IN ls_dof_filter_vals-product_type->*

               AND p~product_id       IN ls_mdo_input_vals-it_product_id_ra->*

               AND p~product_id       IN ls_dof_filter_vals-product_id->*

               AND r~sales_org        IN ls_mdo_input_vals-it_org_id_ra->*

               AND r~sales_org        IN ls_dof_filter_vals-org_id->*

               AND r~distr_chan       IN ls_mdo_input_vals-it_distr_chan_ra->*

               AND r~distr_chan       IN ls_dof_filter_vals-distr_chan->*

                AND v~sales_org        IN ls_mdo_input_vals-it_org_id_ra->*

               AND v~sales_org        IN ls_dof_filter_vals-org_id->*

               AND v~distr_chan       IN ls_mdo_input_vals-it_distr_chan_ra->*

               AND v~distr_chan       IN ls_dof_filter_vals-distr_chan->*

                AND c~category_id    IN ls_dof_filter_vals-category_id->*

               AND w~acctgrp_prod   IN ls_mdo_input_vals-it_prd_act_grp_ra->*

               AND w~acctgrp_prod   IN ls_dof_filter_vals-acctgrp_prod->*.

           ENDSELECT.



1) Open cursor is not used for this select does it required and improve the performance if I use open cursor..

2) 5 tables are Inner joined not sure splitting up the code will help to improve performance and find out view CRMV_PROD_SALESG for the three tables..

3) COMM_PRODUCT we have fields PRODUCT_GUID&PRODUCT_TYPE,PRODUCT_ID fields we have standard Index with PRODUCT_ID,PRODUCT_GUID,OBEJCT_FAMILY,LOGSYS fields...does this index useful here or it's better to create separate index with PRODUCT_TYPE&PRODUCT_ID..

4)some of the fields used twice and with different tables in select criteria like r~sales org & v~sales_org..does it has any impact..

5)For teh same table also same field used twice like r~sales org is used twice not sure how the select statement behaves in this case..

6)Order of the sequence of the fields for tables is not in sequence with inner join sequence..does it has any impact..(Like c table is inner joined as second table and used after v table in where condition.

7)COMM_PR_FGR_ROD table has been used twice not sure why..? I am planning to remove that..



Need your suggestion on this different select to fine tune to get better performance.


I appreciate your help on this.


 

Thanks,

Sanjana.


Transaction Maintained in GUI Connect Parameters is not called in SICF

$
0
0

Hi,

 

I have created a service using SICF transaction code and maintained a standard transaction code for paramters ~TRANSACTION and set the paramter "GUI Link" to "Yes". But the transaction code "CX34" is not called. I tried with other tcodes such as SE11 or SE38, but they did not work either. I tried using class, CL_HTTP_EXT_ITS in Handler tab. But there is no use.

 

Can you help me what I am missing here or what should I do to have the transaction called successfully?

 

Thanks,

Phani

Ref-Node Error when running Simple Transformation

$
0
0

Hi there,

i have a problem with using a simple transformation i can't figure out:

 

Running the code gives me the following error message:

"Fehler bei Zugriff auf Ref-Node 'ORGANIZATION_RATING.ORGANIZATION_RATING_ATTRIBUTE'. Der Ref-Node ist nicht definiert oder hat nicht den erforderlichen Typ."

 

This is my Simple-Transformation:

 

 

  <?sap.transform simple?>

<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">

  <tt:root name="Organization_Roots"/>
  <tt:root name="Organization_Root"/>

  <tt:template>
    <Organization_Roots>
      <tt:loop name="Organization_Root" ref="Organization_Root">
        <Organization_Root>
          <Organization_ID>
            <tt:value ref="$Organization_Root.Organization_id"/>
          </Organization_ID>
          <Organization_Ratings>
            <Organization_Rating>
              <Organization_ID>
                <tt:value ref="$Organization_Root.organization_rating.Organization_id"/>
              </Organization_ID>
              <Rating_Class_Number>
                <tt:value ref="$Organization_Root.organization_rating.Rating_Class_Number"/>
              </Rating_Class_Number>
              <Organization_Rating_Attributes>
                <tt:loop name="z" ref="$Organization_Root.organization_rating.Organization_Rating_Attribute">
                <Organization_Rating_Attribute>
                  <Organization_ID>
                     <tt:value ref="$z.Organization_ID"/>
                  </Organization_ID>
                  <Rating_Attribute_Type_Code>
                    <tt:value ref="$z.Rating_Attribute_Type_Code"/>
                  </Rating_Attribute_Type_Code>
                </Organization_Rating_Attribute>
                </tt:loop>
              </Organization_Rating_Attributes>
            </Organization_Rating>
          </Organization_Ratings>
        </Organization_Root>
      </tt:loop>
    </Organization_Roots>
  </tt:template>

</tt:transform>

 

My Abap (stripped down to the relevant part):

 

 

   TYPES: BEGIN OF organization_rating_attributes,        organization_id TYPE i,        rating_attribute_type_code TYPE string,       END OF organization_rating_attributes,       tt_organization_rating_attr TYPE TABLE OF organization_rating_attributes.    DATA: BEGIN OF ty_test,    organization_id TYPE i,    BEGIN OF organization_rating,      organization_id TYPE i,      rating_class_number TYPE string,      organization_rating_attributes TYPE tt_organization_rating_attr,    END OF organization_rating,     END OF ty_test.    DATA: xml_string TYPE string,      lt_result  LIKE TABLE OF ty_test.       CALL TRANSFORMATION z_traf_cfg_orga      SOURCE XML xml_string      RESULT organization_root = lt_result. 

And finally the XML-File i'd like to process:

It consists of several <Organization_Root> and several Organization_Rating_Attribute - and the later one is where the problem occurs.

 

 

<?xml version="1.0" encoding="utf-8"?><Organization_Roots><Organization_Root action="NoAction">  <Organization_ID indicator="_">148050</Organization_ID>  <Organization_Ratings>   <Organization_Rating action="NoAction">    <Organization_ID indicator="_">148050</Organization_ID>    <Rating_Class_Number indicator="_">-2</Rating_Class_Number>    <Organization_Rating_Attributes>     <Organization_Rating_Attribute action="NoAction">      <Organization_ID indicator="_">148050</Organization_ID>      <Rating_Attribute_Type_Code indicator="_">5156627</Rating_Attribute_Type_Code>     </Organization_Rating_Attribute>     <Organization_Rating_Attribute action="NoAction">      <Organization_ID indicator="_">148050</Organization_ID>      <Rating_Attribute_Type_Code indicator="_">5156627</Rating_Attribute_Type_Code>     </Organization_Rating_Attribute>         </Organization_Rating_Attributes>   </Organization_Rating>  </Organization_Ratings></Organization_Root></Organization_Roots>

Actually ma problem can be proken down to: How to adress nested table correctly?

Any hint is greatly appreceated.

Thanks in advance,

Daniel

not able to trigger SF with template

$
0
0

Hi

 

I am using Smartform for delivery and for the same i have created a template with 2 column and 11 rows.

 

Dont know what is happened but not able to display the sf output.

 

For some deliveries i am able to print the sf and for some other deliveries i am not able to do it.

 

Please suggest where i am missing, i tried to find the thread in scn but not got any such.

 

Regards

Ravi

How to read RIWO00-GEWRK in EXIT_SAPMIWO0_020?

$
0
0

Hello developers,

 

I need to know the content of the field RIWO00-GEWERK (Main work place) while saving the notification.

 

Depending on the work center some settings should be done.

 

But I have no idea how i can read this field from memory or buffer.

 

I've already tried some function modules like  IQS1_GET_BUFFER_DDB or READ_NOTIFICATION, but they only give me the value from the database but not the current user input.

 

Thanks in advance.

Andrea

 


Adding header to alv(factory) in container

$
0
0

Hi frends!

 

How can I add a header to alv in container using factory method?

Performance in a Select with OR Clause

$
0
0

Dear Experts,

 

I've a doubt about the performance of a select when there's an OR in the where clause, I've read that SAP do not recommend to have an "OR" clause inside the select, but, could you please let me know why the first SELECT is incorrect and the second one is correct or with better performance? What will be the best way of reading tables if we need an OR clause?

 

SELECT value_new FROM cdpos
         INTO TABLE it_table
         FOR ALL ENTRIES IN it_table1
         WHERE objectid = it_modif-objectid AND
                 changenr = it_modif-changenr AND
                 ( fname = 'MAKTX' OR   fname = 'LVORM' ).

 

SELECT objectid fname value_new FROM cdpos
         INTO TABLE it_mat_mod
         FOR ALL ENTRIES IN it_modif
         WHERE ( objectid = it_modif-objectid AND
                 changenr = it_modif-changenr AND
                 fname = 'MAKTX' ) OR
               ( objectid = it_modif-objectid AND
                 changenr = it_modif-changenr AND
                 fname = 'LVORM' ).


Thank you so much in advance


Regards,


Rebeca

Call BAPI BAPI_FIXEDASSET_CHANGE within a user EXIT

$
0
0

Hi experts,

 

I'm trying to call a bapi  BAPI_FIXEDASSET_CHANGE within an EXIT to change "useful life of an asset", but after call bapi i can`t call bapi_transaction commit because i think the main program will finish if i use commit explicit.

 

Then i leave the implicit commit update the bapi but this is not happening (working). Anyone have any suggested solution?


SXMB_MONI in sap ABAP

$
0
0

Hi Experts,

 

After execution proxy service, I am checking messages in SXMB_MONI in sap ECC system & it is inbound proxy. It is showing dump Short dump occurred when executing message in qRFC queue : Date/time , user , runtime error:

And getting CX_XMS_SYSTEM_FAILURE exception. Providing one screen shot also -

 

Capture.JPG

Guessing, it is not related to our ECC side. We need to check with PI team. Kindly provide some resolution to ignore this thing when PI will execute the proxy service.

 

Thanks & Warm Regards,

Arindam Samanta.

Oracle performance in Abap program

$
0
0

Dear Sirs,

 

 

I have an ABAP program that writte an Oracle Database using DBlink and using the following code.

 

 

l_prepstmt_ref->set_param_struct( l_dref ).

         l_prepstmt_ref->execute_update( ).

         CLEAR l_wa.

         COMMIT WORK.

 

We would like to improve the performance of the process and the database writting. What are the best practices to do this? And what about on Oracle side? Can we customize the database with some best practices?

 

 

Thank you and Best Regards

 

 

João Lages Fernandes

F110 - one spool request number per payment order --URGENT

$
0
0

Hi folks,

 

  I am ABAPer working for ECC6 upgrade project when i am running F110 payment run for customers to generate payment orders i am getting all the orders in one spool request no, But i need to generate one spool request no. per payment order.

 

  thanks in advance for you valuble inputs

 

regards,

ramahari

WBS Element - Conversion of CONVERSION_EXIT_ABPSP_OUTPUT function

$
0
0

Hello dear all,

 

I am trying to format the POSID field using only SQL, to show it then in a specific table that i'm creating.

 

I searched and found that this function CONVERSION_EXIT_ABPSP_OUTPUT is the responsible to format the field as needed.

 

Is there any information that I can use to create the same result given by that function, using only SQL?

 

Thank you for you time.

Fetch data from dynamic table

$
0
0

REPORT ztest_dytab.

 

 

DATA: lr_data TYPE REF TO data.

FIELD-SYMBOLS: <fs_data> TYPE ANY TABLE.

 

 

CREATE DATA lr_data TYPE ('Namespace_t_table_k'). "table_type & node_name provided dynamically

ASSIGN lr_data->* TO <fs_data>.

 

 

lr_magic_sm->retrieve(                  " use service method for data retrieval

         EXPORTING

           iv_node_key             = '1234567890123456'   " Sample Node key too fetched dynamically using constant interface.

           it_key                  = lt_key               " Sample Key Table

           iv_fill_data            = abap_true

         IMPORTING

           et_data                 = <fs_data>     " table gets loaded with data

       ).

 

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" At this point <fs_data> gets filled with data.

"

" How to access lines of this table? I need to read first line of table

" and store in work area/structure

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Viewing all 8332 articles
Browse latest View live


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