Quantcast
Channel: SCN : Discussion List - User Interface Development in ABAP
Viewing all 319 articles
Browse latest View live

Customization of BAPI_EQUI_CREATE and BAPI_EQUI_CHANGE

$
0
0

Hi GURUs,

 

My customer has a legacy system from which he wants to send data to SAP. Whenever an equipment record is crated or changed in the legacy system, it’ll automatically update the record in SAP with the help of the 2 BAPI’s BAPI_EQUI_CREATE and BAPI_EQUI_CHANGE. The input which will come from the legacy systems are-

 

•             Product ID

•             Serial Number or License Key Number

•             Sold-to Customer

•             Ship-To Customer

 

I’ve to modify the BAPI in such a way that it’ll append the Product ID and Serial Number/License Key Number to create an unique number. Based on this number, it’ll check if the equipment already

Exists, if not then it’ll create a new entry(BAPI_EQUI_CREATE), if yes then it’ll modify the existing entry(BAPI_EQUI_CHANGE).

 

Since I’m new to BAPI, can you please advise how to achieve this functionality? Also will these 4 parameters be enough for the BAPI’s to work?

 

Thanks,

Sarif


UI technologies used in ABAP?

$
0
0

I want to know whether the UI technologies used to develop transational reports in ABAP responsive...?

 

Responsive in the sense, can the ABAP reports be made to adapt to mobile screens??

write data table control

$
0
0

Gentlemen, good night

 

 

I am creating a module pool and screen has a table control with 7 columns but no data, the User will enter the material in the first column of the table control, and the other six columns must be filled.

however, I can not do the control table to record the data that the User digit, so I can record the data if data have already filled in the table control, but I can not empty it.

 

 

Thank you

F4 Help in Reuse Alv Grid Display

$
0
0

Hi,

 

I am working on Function Module 'REUSE_ALV_GRID_DISPLAY'  to display some 10 fields. Here in this

display i want a F4 help for a particular Field, How to get that F4 help ? could any one help me.

 

Regards,

Jayarama Krishna M.

Need to convert SRM BSP application SRMSUS into a WEBDYNPRO application

$
0
0

  Hi Gurus,

 

Our project requirement is to convert SRM 7.2 BSP applications

 

               1. SRMSUS and

               2. SRMSUS_SELFREG

 

          into WEBDYNPRO application.

 

     I am not aware of BSP .

 

               a. Could you please let me know the TIME it will take to complete this requirement. 

               b. What should be the approach for this requirement.

               c. Skill sets requierd for this requirement.

 

 

Thank you for you time and efforts,

Rajesh.

How to convert BSP to Webdynpro

$
0
0

Hi Gurus,

 

I have a requirement where I need to convert BSP Application into a Web Dynpro application.

 

How to achieve this reverse engineering.

1. From a given browser screen of a BSP application, how do we identify the corrosponding page or view and respective back end coding.

 

I would like to know the approach i should follow to achieve this requirement.

 

My object is SRMSUS , which the user and copied into a ZSRMSUS bsp application and have a few custom BSP application in it.

I need to convert these custom BSP application into Web Dynpro applications.

As it is a copy of standard abject , it has many standard controllers, views, pages along with the custom entites.

 

How do I identify the controllers, pages , views belonging to my cusotm BSP application.

so that I can look at them and develop similar Web Dynpro application.

 

 

 

Thank you,

Rajesh.

Dynamically assign function keys to gui-status

$
0
0

Hi all,

 

I have a function module pretty much like "POPUP_TO_CONFIRM". I would like to ask if it is possible to dynamically assign function keys to the buttons on the popup dialog. The assigned function keys would have to change according to the question / button coding, see the examples below

 

Example 1:

Question: "Do you want to execute?"

Button 1: Execute (Function key should be F8)

Button 2: Abort (Function key should be F12)

 

Example 2:

Question: "Do you want to save?"

Button 1: Yes (Function key should be F5)

Button 2: No (Function key should be F3)

 

So: Is it possible to change the linked function key in the gui status dynamically?

 

Thanks a lot

 

Cheers

 

Jens

Email Program - Batch Job Completion

$
0
0

Hi

 

My requirement is that I have a batch program and as soon as it is completed, an email needs to be sent to user informing that the job has been completed.

 

My questions are below

 

1. Do i need to create a Z program that sends email and add it in the steps of the batch job ?

 

2. Is there a possibility of any alert settings done for specific job to trigger email rather than Z program?

 

3. Can I develop the Z program as generic so that it can be added as a step to any batch job and that it needs to capture the batcj job name and send it in email? if so, how do i do this

 

4. Any other ideas are also appreciated.

 

Regards

Sam


Webapplication UI5 or XSapp

$
0
0

Hi,

 

I have a table called ZMATERIAL,

If I want to insert the data into this table I have to write a SQL query, INSERT INTO ZMATERIAL VALUES ('Material1')

My client requirement is, they want a web application like below and want to create the materials through the same.

User.png

What is the best approach to achieve the same? 

- UI5 or XSapp?

UI5_731 vs UI2_731 on ECC 6.0 Ehp6 - System

$
0
0

Hello Experts

 

 

Referring this link :

User Interface Add-On for SAP NetWeaver - SAP Library

 

Under - ABAP, we can see -

 

UI5_731; can be installed -

>>> SAP NetWeaver 7.3 EHP1,

>>> SAP NetWeaver 7.0 EHP3,

 

 

Our ECC System is with below components, we tried many times to generate XML for installation of UI5_731. it is never picking / showing UI5_731 component for add-on installation. In this context can we really install UI5_731 on SAP_BASIS 731/SP8 System or not. i

 

if yes - why MOPZ is not pikcing

if no -  why URL link referering UI5_731

 

I have one more observation .

Under - UI ADD-ON 1.0 FOR NW 7.03 (Support Packages and Patches)

i do not see UI5_731 component at all.

 

 

In this Juncture -

Can we really install UI5_731 component on below system or not + with some gyan on the same thing is highly appreciated

 

Pl Help

 

PR

 

 

 

 

Our System SP level info

------------------------------------------

 

 

SAP_BASIS        731    0008    SAPKB73108

SAP_ABA            731    0008    SAPKA73108

PI_BASIS              731    0008    SAPK-73108INPIBASIS

IW_BEP            200    0006    SAPK-20006INIWBEP

SAP_BW            731    0008    SAPKW73108

UISAPUI5    100    0004    SAPK-10004INUISAPUI5

UI2_SRVC    100    0004    SAPK-10004INUI2SRVC

UI2_FND        100    0004    SAPK-10004INUI2FND

UI2_731        100    0004    SAPK-10004INUI2731

UI2_702        100    0004    SAPK-10004INUI2702

UI2_701        100    0004    SAPK-10004INUI2701

UI2_700        100    0004    SAPK-10004INUI2700

UI_INFRA    100    0004    SAPK-10004INUIINFRA




Dynamic documents: disable two input fields results into error

$
0
0

Hello experts,

 

I used the first time dynamic documents, to put input fields into containers. If i want to disable both input fields with the Method set_display, the one on the bottom will not be rendered.

 

Unbenannt.PNG

If i disable only one input field, both will be displayed correctly. I searched for sap notes already, but couldn't find one.

 

Here is the code i'm using:

 

METHOD initialize_document.

  DATA: lo_form  TYPE REF TO cl_dd_form_area,

        lo_input TYPE REF TO cl_dd_input_element.

 

  DATA: lo_table    TYPE REF TO cl_dd_table_element,

        lo_column_1 TYPE REF TO cl_dd_area,

        lo_column_2 TYPE REF TO cl_dd_area.

 

  CREATE OBJECT go_document.

 

  CALL METHOD go_document->display_document

    EXPORTING

      parent = go_split->get_container( row    = 1

                                        column = 1 ).

 

* Create Table

  CALL METHOD go_document->add_table

    EXPORTING

      no_of_columns = 2

      border        = '0'

    IMPORTING

      table         = lo_table.

 

  CALL METHOD lo_table->add_column

    IMPORTING

      column = lo_column_1.

 

  CALL METHOD lo_table->add_column

    IMPORTING

      column = lo_column_2.

 

* Create first row

  CALL METHOD lo_column_1->add_text

    EXPORTING

      text = 'Gruppe'(003).

 

  CALL METHOD lo_column_1->add_gap

    EXPORTING

      width = 2.

 

  CALL METHOD lo_column_2->add_form

    IMPORTING

      formarea = lo_form.

 

  CALL METHOD lo_form->add_input_element

    EXPORTING

      value         = go_gname->get_gname( )

      name          = 'GNAME'

      size          = 30

      maxlength     = 20

    IMPORTING

      input_element = lo_input.

 

  CALL METHOD lo_input->set_display

    EXPORTING

      disabled = abap_true.

 

* Create second row

  CALL METHOD lo_table->new_row.

 

  CALL METHOD lo_column_1->add_text

    EXPORTING

      text = 'Bezeichnung'(001).

 

  CALL METHOD lo_column_1->add_gap

    EXPORTING

      width = 2.

 

  CALL METHOD lo_column_2->add_form

    IMPORTING

      formarea = go_form.

 

  CALL METHOD go_form->add_input_element

    EXPORTING

      value         = go_gname->get_text( )

      name          = 'TEXT'

      size          = 90

      maxlength     = 60

    IMPORTING

      input_element = go_input.

 

  CALL METHOD go_input->set_display

    EXPORTING

      disabled = abap_true.

 

* Merge and display document

  CALL METHOD go_document->merge_document.

 

  CALL METHOD go_document->display_document

    EXPORTING

      reuse_control      = abap_true

      reuse_registration = abap_true.

 

* Hide document border

  CALL METHOD go_document->html_control->set_ui_flag

    EXPORTING

      uiflag = cl_gui_html_viewer=>uiflag_no3dborder.

ENDMETHOD.

Custom Program in BTE

$
0
0

Hi,

 

I have a requirement to use BTE functionality for FI invoice.

A custom program has been created to achieve the invoice output which is a smartform.

Can we link custom program with BTE?

Kindly advice.

 

Thanks & Regards

Brijo.

GOS: How to display attachment?

$
0
0

Hello,

 

I want to display the first attachment. I found the function GOS_ATTACHMENT_LIST_POPUP, but I haven't found a possibility to display an attachment directly. Does anybody know how to do this?

 

Please help.

 

Have a nice day. Bye.

 

Frank

How I can use one submit report with an specific Tcode when exists more than one for same report?

$
0
0

Hi,

 

I have one report (rmcb0300) with five tcodes differently and tcode by default when I execute by SE38 is MCBE. I need execute the tcode MC.9 when I use the submit report (SUBMIT rmcb0300 EXPORTING LIST TO MEMORY  AND RETURN), but I  can't this.

Someone have one idea whow can do it?

 

Regards,


Sérgio Silva

DYNP_VALUES_READ & DYNP_VALUES_UPDATE at Selection-Screen Output

$
0
0

Hello Friends

 

I've noticed that if I invoke either of FM's DYNP_VALUES_READ & DYNP_VALUES_UPDATE that they do not work during the event At Selection-Screen Output.

 

The Scenario

 

I created a class that provides F4 help to the user to open and/or save files either to the file server or on the local machine.  When the user invokes F4 help, the F4 help object already knows which file the user is asking help for.  At this time, the object invokes DYNP_VALUES_READ and pre-populates fields in a dialog box.  When the dialog step is complete, the object invokes DYNP_VALUES_UPDATE to return the values back to the selection screen.

 

So far so good.

 

The Problem

 

We use logical files for files located on the file server.  What I would like to do is pretty much the same thing as above except without the dialog step in between.  In other words, take the screen defaults (i.e. logical file + filename) determine the full path using FILE_GET_NAME and populate the full path on the screen.  If the user wants to change this later, s/he can do so using F4 help.

 

But when I use DYNP_VALUES_READ during At Selection-Screen Output it doesn't return the current screen parameter values, so I replaced it with FM RS_REFRESH_FROM_SELECTOPTIONS.  This works, but then DYNP_VALUES_UPDATE did not update the screen even though I can see the internal table for DYNPFIELDS is populated.  The function appears to work correctly and SY-SUBRC = 0, but the field is blank.

 

I know the code works because I invoke the same methods during F4 and this does populate the screen.

 

Is what I am doing not possible during At Selection-Screen Output?


ORDCHG Extension Idoc problem

$
0
0

Hi SAP GURU'S

 

I did below steps for extension of ORDCHG Message type 

 

 

 

1. WE31 - Created A segment(YTEST) with additional fields.

2. WE20 - Created the Extension(ZORDERS05) for the given Basic type ORDERS05.

        2.1    added the custom segment(YTEST) as the child segment to the segment ( E1EDP01)

 

3. Released the custom segment (YTEST) and the Extension (ZORDERS05).

 

4. WE82 - Assigned Basic type to extension / messages( For Both messages ORDCHG&ORDERS)

 

5. WE30 - Checked and Transported IDoc extension

                 5.1  Given the Extension Name(ZORDERS05)

                 5.2 In the menu Path :  Development Object -- >Check (Ensure that there are no errors or warnings)

 

6. WE20 - Now in the Partner Profile  added the Extension(ZORDERS05) in the Message control data and Saved it(For Both messages ORDCHG&ORDERS).

 

 

I added code In BADI (IDOC_DATA_INSERT)  for YTEST Segment .

 

case control-direct.
     when '1'.                         " Outbound
       case control-rcvprn .
         when 'XXXXX'.             " Partenr
           case control-mestyp.
                 when 'ORDERS' or 'ORDCHG'.           " Message type


If Control-cimtyp = 'ZORDERS05.


loop at data into ls_data where segnam = 'E1EDP01'.
                     ls_seg_num-segnum = ls_data-segnum.
                     append ls_seg_num to lt_seg_num .
                   endloop .

                   lv_count = 1.
                   loop at lt_ekpo into ls_ekpo.
                     read table lt_seg_num into ls_seg_num index lv_count.
* filling Maximo PR field name and value
                     ls_y1mm_maximo_pr-item = ls_ekpo-bnfpo.
                     ls_y1mm_maximo_pr-bednr = ls_ekpo-bednr.
                     ls_y1mm_maximo_pr-banfn = ls_ekpo-banfn.

                     clear ls_new_segment1.
* Data inserting into zsegments
                     ls_new_segment1-segnam = lco_zsegment1.
                     ls_new_segment1-counter = '000' .
                     ls_new_segment1-sdata = ls_y1mm_maximo_pr.
                     ls_new_segment1-segnum = ls_seg_num-segnum.

                     if ls_new_segment1  is not initial.
                       have_to_change = 'X'.
                       append ls_new_segment1 to new_entries.
                     endif.
                     clear : ls_y1mm_maximo_pr.
                     lv_count = lv_count + 1.
                   endloop.


     Endif.
Endcase.


Note : This is working for PO Creation( ORDERS Msg) , I can See the "Control-cimtyp = 'ZORDERS05'"  , But it is n

ot working for ORDCHG Msg type , I did the above config for  both message types .


When ever PO change I could nt see the extension Idoc( ZORDERS05) , Even in WE05 Tcode , But Idoc is tiggering with out adding adding additional segment(YTEST) .


Please kindly help me out .,


Thanks in advance,

Krishna Kothaluru.


               


Error: input/output field not defined in subscreen.

$
0
0

Hello Experts,

 

I have defined a subscreen for transaction MM41 and when I try to put the statement: 'FIELD: MARA-ZZPARENT'

there is an error saying input/output not defined. I already declared this in layout and it is there in element list.

 

What causes this error? Thank you guys!

Screen text erea

$
0
0

Hi,

I using screen text erea for application!

Screen text erea used to import value.

When I first entered it ok, but the second entry, the old value of the first not delete.

I have used the class to remove but it still can not delete the original input value!

How to provide collapse / expand functionality to alv grid display

$
0
0

I want Icon in alv grid display as one of the column and when i click on that icon i works same as like like expand / collapse option.Suppose i want to display header and item details of po ,i want alv grid with header details with one column as icon when i click on that icon it wil display related item details based on header on same grid display and again i click on that icon data will disappear.

Viewing all 319 articles
Browse latest View live