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

Call transaction VA01 from html page.

$
0
0

hello guys.

I created a transaction that calls my html site but I want to click a button on my site and then must call transaction VA01. Is it possible?

See attached image.

 

Thanks.


How can I enable color selector option on an abap report?

$
0
0

I have a requirement to color alv report lines based on a dynamic color selector option. I referred DEMO_COLORSEL, but this does not give me an option to choose just 7 colors (the basic ALV colors, and not intensified or inversed) and just calls a standard routine to display the colors in a dropdown fashion.

My need is to get a dropdown of colors and when I click on the color, I should be able to grab the return code so I may use it to do further processing like color the alv lines with the selected color.

Any ideas, anybody? Thanks and appreciate your replies.

Completing Notification along with order using BAPI ALM ORDER MAINTAIN

$
0
0

Maintenance orders are getting completed using bapi_alm_order_maintain method 'Technically complete'. Order has a header notfiication. Notifications are not completed unlike IW32. In Iw32, we get a new screen to complete notfications. Is there any way to complete header notificationg along with order using BAPI_ALM_ORDER_MAINTAIN.

ALV Grid set_table_for_first_display is displaying the wrong data

$
0
0

Hi,

 

please tel me what I can do here. I defined my own structure. All the fields are displayed but the value in the two last fields are wrong. I looked at the table before displaying in debug mode. All data are correct. What can I do here? I deletd the structure and created a new one. It didnt help.

 

Help!!!

Express document "Update was terminated"

$
0
0

Dear All,

 

I have done a development for me51n which will get the standard error message through mail,

 

Every thing is fine but I am getting the below said screen when ever I checks the PR.

 

Please Suggest me to solve the Problem...

 

And the same thing I am getting through mail..

 

as below.

 

 

 

 

 

 

 

I also tried in ST22 But I am unable to solve ...

 

 

Please Solve the Issue.

 

Thanks & Regards

 

Siva

AGR_USERS table record deletion impact

$
0
0

Hello all,

 

I need to purge some role to user associations. I'd like to do this deleting records that reflect this association at Oracle level in AGR_USERS table, within PL/SQL procedure. This procedure :

- calculate all role that are allocated to the same user several times.

- delete corresponding records in AGR_USERS table

 

I'd like to know :

 

- potential side effects of such a solution and if there's no one :

 

     - SAP system behavior in this case : does it implicitly delete these associations in su01 ? PFCG ?

     - Is it practicable online ?

 

Here's my config :

 

SAP ECC 6.0 kernel 700

Oracle 11.2.0.3.0

HP-UX B.11.23 U ia64

 

Thanks in advance

 

Emmanuel

ME53n - call via web link in Web SAP Gui - banf number was not passed

$
0
0

Hi All,

 

I am currently implementing a webdynpro application in which I call the transaction ME53n

 

But when I want to pass the paramter to the transaction over the link - the correct BANF number was not used - always the last changed banf number was used.

 

Maybe somebody can help me?

 

Thanks!

 

Best,

Christoph

Serial number

$
0
0

Hi,

 

    Is there any User Exit or any Option to get the serial number from respective production order while creating the Outbound delivery.

 

Regards


How to modify field catalog of a copied standard report program 'RFIDYYWT'.?

$
0
0

Hi All,

 

I have made a Z copy of standard report program 'RFIDYYWT'.

I need to modify the output of this program by adding a field to display

'Clearing document number' for all the vendor line items already paid.

 

Please let me know how to modify the field catalog of this program so

that I can add a new column at line item level ?

 

Thanks and Regards,

Tejaswini

Restrict parameter only enter numerical character

$
0
0

Hi expert,

 

I have Parameter of 30 field but i want to give user f4 help so user can select customer number and name will be attached and showed into parameter but when he want manually enters only number(customer number ) he can enters not name.

 

 

Thanks

how to keep the error screen tab and courser to the error screen field ?

$
0
0

i made a change for XD01 transaction using bapi's if i.e region is mandatory for some country customers while creating, for this i found the suitable badi for this and the write the code to raise the error message in the specific method. up to here every thing is fine but after the error message is raised it is  moving to next tab which is default. so how can i display the same tab after the error message and cursor to the error field?

SD: BAPI_SALESORDER_CREATEFROMDAT2 run in simulation (testrun set): How to get pricing details/conditions?

$
0
0

Hi there,

 

I advised to to use this BAPI for one to create sales order and 2nd also to 'simulate' the sales order. Simulation is done by setting the testrun flag in the interface.

 

How to get access to pricing elements in simulation running BAPI_SALESORDER_CREATEFROMDAT2?

But the task at hand includes to 'report' the pricing details (XKOMV) to the caller. That works fine in creation in user exits 'USEREXIT_SAVE_DOCUMENT_PREPARE' or 'USEREXIT_SAVE_DOCUMENT' to get access to the pricing details.

 

Unfortunately these exists are not called when the testing flag is set - and what is the best way to get access to the pricing elements/conditions here?

Any idea?

BAPI_SALESORDER_SIMULATE

I am aware of the BAPI_SALESORDER_SIMULATE - but let's assume that this would not be an option here?

Can it be done?

 

Thanks for your input,

CN

dump during alv report execution

$
0
0

Hi Guru's,

 

Please help me out in this issue..

 

Runtime Errors         DYN_TABLE_ILL_COMP_VAL

Except.                CX_SY_DYN_TABLE_ILL_COMP_VAL

ABAP Program           SAPLKKBL

 

 

Program looks as follows

 

REPORT  ZMOD_DEMO1 no STANDARD PAGE HEADING.

TYPE-POOLS : slis.

 

TYPES : BEGIN OF ty_ekko,

          ebeln TYPE ebeln,

          bsart TYPE bsart,

          bstyp TYPE bstyp,

          ernam TYPE ernam,

         END OF ty_ekko,

 

         BEGIN OF ty_ekpo,

          ebeln TYPE ebeln,

          ebelp TYPE ebelp,

          matnr TYPE matnr,

          netwr TYPE netwr,

         END OF ty_ekpo,

 

         BEGIN OF ty_mara,

          matnr TYPE matnr,

          mtart TYPE mtart,

        END OF ty_mara,

 

        BEGIN OF ty_out,

         ebeln TYPE ekko-ebeln,

         ebelp type ebelp,

         ernam TYPE ernam,

         bstyp TYPE bstyp,

         netwr TYPE netwr,

         matnr TYPE matnr,

         mtart TYPE mtart,

        END OF ty_out.

 

DATA : w_ekko TYPE ty_ekko,

        w_ekpo TYPE ty_ekpo,

        w_mara TYPE ty_mara,

        w_out  TYPE ty_out,

 

        t_ekko TYPE STANDARD TABLE OF ty_ekko,

        t_ekpo TYPE STANDARD TABLE OF ty_ekpo,

        t_mara TYPE STANDARD TABLE OF ty_mara,

        t_out  TYPE STANDARD TABLE OF ty_out.

 

 

DATA : t_field TYPE slis_t_fieldcat_alv,

        w_field TYPE slis_fieldcat_alv,

 

        t_sort TYPE slis_t_sortinfo_alv,

        w_sort TYPE slis_sortinfo_alv,

 

        w_layout TYPE slis_layout_alv,

        w_disvariant TYPE disvariant.

 

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

SELECT-OPTIONS : s_ebeln FOR w_ekko-ebeln.

SELECTION-SCREEN END OF BLOCK b1.

 

START-OF-SELECTION.

 

   SELECT ebeln

          bsart

          bstyp

          ernam

     FROM ekko

     INTO TABLE t_ekko

     WHERE ebeln IN s_ebeln.

   IF sy-subrc = 0.

     SELECT ebeln

            ebelp

            matnr

            netwr

       FROM ekpo

       INTO TABLE t_ekpo

       FOR ALL ENTRIES IN t_ekko

       WHERE ebeln = t_ekko-ebeln.

     IF sy-subrc = 0.

       SELECT matnr

              mtart

         FROM mara

         INTO TABLE t_mara

         FOR ALL ENTRIES IN t_ekpo

         WHERE matnr = t_ekpo-matnr.

     ENDIF.

   ENDIF.

 

END-OF-SELECTION.

 

   LOOP AT t_ekko INTO w_ekko.

     READ TABLE t_ekko INTO w_ekko WITH KEY ebeln = w_ekpo-ebeln.

     IF sy-subrc = 0.

*      w_out-vbeln = w_vbak-vbeln.

 

       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

         EXPORTING

           input  = w_ekko-ebeln

         IMPORTING

           output = w_out-ebeln.

 

       w_out-bstyp = w_ekko-bstyp.

       w_out-ernam = w_ekko-ernam.

 

       w_out-ebelp = w_ekpo-ebelp.

       w_out-matnr = w_ekpo-matnr.

       w_out-netwr = w_ekpo-netwr.

 

       READ TABLE t_mara INTO w_mara WITH KEY matnr = w_ekpo-matnr.

       IF sy-subrc = 0.

         w_out-mtart = w_mara-mtart.

       ENDIF.

     ENDIF.

     APPEND w_out TO t_out.

   ENDLOOP.

 

 

   PERFORM fill_fieldcatlog USING : 'eBELN' 'Purchase Order',

                                    'bstyp' 'PO Type',

                                    'ernam' 'Created by',

                                    'eblep' 'Item',

                                    'NETWR' 'Net Qty',

                                    'MATNR' 'Material',

                                    'NETWR' 'Net price',

                                    'MTART' 'Mat Group'.

 

 

   w_sort-fieldname = 'eBELN'.

   w_sort-up = 'X'.

   w_sort-subtot = 'X'.

   APPEND w_sort TO t_sort.

 

   w_layout-colwidth_optimize = 'X'.

 

   DATA : lv_prog TYPE sy-repid.

 

   lv_prog = sy-repid.

 

   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

*   I_INTERFACE_CHECK                 = ' '

*   I_BYPASSING_BUFFER                = ' '

*   I_BUFFER_ACTIVE                   = ' '

    i_callback_program                = lv_prog

*   I_CALLBACK_PF_STATUS_SET          = ' '

*   I_CALLBACK_USER_COMMAND           = ' '

    i_callback_top_of_page            = 'TOP_OF_PAGE1'

*   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '

*   I_CALLBACK_HTML_END_OF_LIST       = ' '

*   I_STRUCTURE_NAME                  =

*   I_BACKGROUND_ID                   = ' '

*   I_GRID_TITLE                      =

*   I_GRID_SETTINGS                   =

    is_layout                         = w_layout

      it_fieldcat                       = t_field

*   IT_EXCLUDING                      =

*   IT_SPECIAL_GROUPS                 =

    it_sort                           = t_sort

*   IT_FILTER                         =

*   IS_SEL_HIDE                       =

*   i_default                         = 'X'

    i_save                            = 'X'

    is_variant                        = w_disvariant

*   IT_EVENTS                         =

*   IT_EVENT_EXIT                     =

*   IS_PRINT                          =

*   IS_REPREP_ID                      =

*   I_SCREEN_START_COLUMN             = 0

*   I_SCREEN_START_LINE               = 0

*   I_SCREEN_END_COLUMN               = 0

*   I_SCREEN_END_LINE                 = 0

*   I_HTML_HEIGHT_TOP                 = 0

*   I_HTML_HEIGHT_END                 = 0

*   IT_ALV_GRAPHICS                   =

*   IT_HYPERLINK                      =

*   IT_ADD_FIELDCAT                   =

*   IT_EXCEPT_QINFO                   =

*   IR_SALV_FULLSCREEN_ADAPTER        =

* IMPORTING

*   E_EXIT_CAUSED_BY_CALLER           =

*   ES_EXIT_CAUSED_BY_USER            =

     TABLES

       t_outtab                          = t_out

* EXCEPTIONS

*   PROGRAM_ERROR                     = 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.

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

*&      Form  FILL_FIELDCATLOG

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

*       text

*----------------------------------------------------------------------*

FORM fill_fieldcatlog USING : p_pos TYPE sy-cucol

                               p_field TYPE slis_fieldname

                               p_text TYPE dd03p-scrtext_m.

 

 

   w_field-col_pos = p_pos.

   w_field-fieldname = p_field.

   IF p_field = 'NETWR'.

     w_field-do_sum = 'X'.

   ENDIF.

   w_field-seltext_s = p_text.

   APPEND w_field TO t_field.

   CLEAR w_field.

 

ENDFORM.                    " FILL_FIELDCATLOG

 

 

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

*&      Form  top_of_page1

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

*       text

*----------------------------------------------------------------------*

FORM top_of_page1.

 

   DATA : lt_list TYPE slis_t_listheader,

          lw_list TYPE slis_listheader.

 

   lw_list-typ = 'H'.

   lw_list-info = 'Purchase Order Details'.

   APPEND lw_list TO lt_list.

 

   CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

     EXPORTING

       input  = s_ebeln-low

     IMPORTING

       output = s_ebeln-low.

 

 

   lw_list-typ = 'S'.

   lw_list-key = 'Purchase Order'.

   CONCATENATE s_ebeln-low 'to' s_ebeln-high INTO lw_list-info SEPARATED BY space.

   APPEND lw_list TO lt_list.

 

   CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

     EXPORTING

       it_list_commentary       = lt_list

*   I_LOGO                   =

*   I_END_OF_LIST_GRID       =

*   I_ALV_FORM               =

        .

ENDFORM.                    "top_of_page1

Printer should support to print both sides on page?by using smartform

$
0
0

Guru's,

 

For printing both sides by using smartform, Printer should support to print both sides on page?

i have made print mode has D.
now my doubt is it will print automatically or we need to change the printer settings.

Thanks in advance.

BR,
Shabareesh

is there any FM to get last date requisition?

$
0
0

Hello,

I want to get get the last date requesition, but I can't I dont know if you know any function module to get this.

In ME53N I cant see:

last.PNG

Could anyone can tell me where wich fm I need to use?

Regards


Convert .itf format to Barone label format

$
0
0

Hi,

 

We have lost some of our label formats in Barone but

have the itf formats in SAP. is it possible to convert

back to BarOne format (.lbl) of these labels?

 

Thanks in advance!

Disable BADI Implementation

$
0
0

Dear all

 

I am facing a problem with Material description being changed by implementation of BADI . I dont know which BADI, neither do I Know how to disable this implementation

 

Example: I create a material with MM01 and enter the material description ( I entered Bicycle) in Basic Data 1 view. As soon as I save it I get this info message

Material Description changed from BADI and I acknowledge it and the mat description changes to 500 GB HDD.

 

Can anyone please guide me with the steps of finding the BADI and disabling it

 

Thanks in advance

How to convert an accounting model to a key figure model

$
0
0

Hello all,

 

I've got a table modelled as an accounting model. That's means I've got a separate column per month (= 12 columns). I want to convert this accounting model to a key figure model. That means the months are arranged one below the other in the same column. 

 

How can I implement it in ABAP?

 

Regards,

Sergio

BAPI_MATERIAL_MAINTAINDATA_RT not updating table

$
0
0

Hello Experts,

I have beeing trying to find the solution for this stange problem,

I have this BAPI : BAPI_MATERIAL_MAINTAINDATA_RT which i ma using  to update the table.

now the issues is when i run the IDOC that does this update, it is not updating the table every time, instead it does it at some random time.

But when I go into debug mode, it does updates the table every time.

I konw the debugg has something called implicit commit which updates it.

after the BAPI call I have call BAPI_TRANSCATION_COMMIT with wait = 'X' and once with wait = '5' as well.
also tried using wait up to 5 seconds insted of above call & tried commit and wait too

but its of no use.

It does not updates the table, it does but at very random time, but in dubug it always does.

Is that any soultion to this problem?

Any help is highly apreciated.

Thanks,

Abhijeet

How will I correct syntax error in standard SAP ABAP program?

$
0
0

I want to know how can i correct standard program in SAP ABAP as it gives syntax error. That program has a name BC430_CHECK. This program is provided in IDES system which i have. This program helps you check your answers with regard to creating Tables in ABAP dictionary and fill the created tables with sample data. Now that I get syntax error I am unable to check my exercises and get the tables filled with sample data. Without this I cannot continue with further exercises in my practical. Please help me on this issue

 

 

thanks

Viewing all 8332 articles
Browse latest View live