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

Regarding ALV output export to Excel

$
0
0

Hi All,

 

Am displaying few fields in ALV using REUSE_ALV_GRID_DISPLAY FM. Till ALV Output we are able to achieve the user requirement. But while exporting the output to excel using LIST-->EXPORT-->LOCAL FILE-->SPREDSHEET the header of two fields are coming up with 3 extra spaces. Fields are of character type and we have cheked it in fieldcatalog also. inside Filecatalog the text dont have any extra spaces.

 

Could anyone please suggest some ideas to remove those trailing spaces from the header. Kindly note that the system is ECC4.6.

 

Thanks In Advance

Arun


Response on double click in table control (subscreen)

$
0
0

i know response on double click in normal screen table control... but i don't know in subscreen..

 

i have tab strip in normal screen. (screen no 1000).

In tab strip i have subscreen area.

i have table control in subscreen.(screen no 1001).

 

e.g i have EKKO details in table control.. when user double click the EBELN value i need to display the EKPO details in another screen or dialog box...

BAPI_RESERVATION_CREATE

$
0
0

Hi everybody when I call the BAPI_RESERVATION_CREATE in the program as follow,

it failed with the message:

An error has occurred in enhancement EXIT_SAPLMEWB_001 (please check)

 

I'm working on ECC 6.0.4

 

refresh t_lis.

     refresh errmsg.

     refresh t_lis_res.

 

     clear itab_archivo.

     loop at itab_archivo.

 

         resehead-plant     = itab_archivo-var4.

         resehead-res_date  = p_fecha.

         resehead-move_type = itab_archivo-var3.

         if itab_archivo-var3 = '201'.

           resehead-cost_ctr  = itab_archivo-var1.

           resehead-func_area = itab_archivo-var2.

         endif.

         if itab_archivo-var3 = '261'.

           resehead-order_no = itab_archivo-var1.

         endif.

         n_req_sica = itab_archivo-var6.

       else.

         itab-material   = itab_archivo-var1.

         itab-plant      = resehead-plant.

         itab-quantity   = itab_archivo-var2.

         itab-short_text = n_req_sica.

         append itab.

       endif.

       call function 'BAPI_RESERVATION_CREATE'

         exporting

           reservation_header = resehead

           no_commit                =  wk_no_commit

         importing

           reservation        = b_res_no

         tables

           reservation_items  = itab

           return             = errmsg.

endloop.

Need business Object and Events for CJ30?

$
0
0

Hi Workflow Masters,

 

I need business object and Event for CJ30 Transaction.

 

I have checked SWELS and Event trace is switched on.

I have Ran the CJ30 transaction and the document is posted.

I have checked SWE2 tcode but I unable to find the events for CJ30 for perticular date.

Please find attached screen shot also.

Module Pool - Delete Button

$
0
0

Hi Experts,

 

   I have this requirement, I need to display some set of data in form of a table control as soon as the transaction is entered and those data will be in disabled mode.Its clear that, this will happen in PBO.

 

Only thing that the user can do is, just delete the entries

 

  Now, if the user selects any entry from the given display list and presses the Delete button, then that entry has to be deleted from the table control list, with a pop-up information message like "Are sure to delete this entry" .

 

Can anyone share some lines of code regarding this ?

 

 

Thanks

Chandan

How to get latest value of ALV Grid on subscreen

$
0
0

There are two subscreens on my main screen. And there is an ALV Grid on every subscreen. After I changed some cells of these two ALV Grids, when I pressed a button on toolbar of main screen, the table values of the ALV Grids were still the values before I changed. What should I do to get latest value of ALV Grid on subscreen. If source code is provided, I will be very thankful.

Statement is not accessible

$
0
0

Hi all,

I'm trying to use SMARTFORMS but when I check my program I display an error when I call the first function: "Statement is not accesible". What I can do?

This is my code:

 

REPORT  ztest_001

.


TABLES zfi_employee1.
DATAls_employee1 TYPE zfi_employee1,
       lt_employee1
LIKE zfi_employee1 OCCURS 0 WITH HEADER LINE.DATAfname TYPE rs38l_fnam.
*&---------------------------------------------------------------------*SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.SELECTION-SCREEN SKIP 1.PARAMETERS: p_soc LIKE zfi_employee1-sct,
            p_twkr
LIKE zfi_employee1-twkr.SELECTION-SCREEN SKIP 1.SELECT-OPTIONS s_wkr FOR zfi_employee1-wkr.
SELECTION-SCREEN END OF BLOCK a1.*&---------------------------------------------------------------------*
START-OF-SELECTION.

 
IF p_soc IS INITIAL AND p_twkr IS INITIAL.

   
SELECT * FROM zfi_employee1 INTO TABLE lt_employee1
            
WHERE wkr IN s_wkr.

 
ELSEIF p_soc IS INITIAL .

   
SELECT * FROM zfi_employee1 INTO TABLE lt_employee1
            
WHERE twkr = p_twkr
            
AND wkr IN s_wkr.
 
ELSEIF p_twkr IS INITIAL.

   
SELECT * FROM zfi_employee1 INTO TABLE lt_employee1
            
WHERE sct = p_soc
            
AND wkr IN s_wkr.
 
ELSE.
   
SELECT * FROM zfi_employee1 INTO TABLE lt_employee1
            
WHERE sct = p_soc
            
AND twkr = p_twkr
            
AND wkr IN s_wkr.
 
ENDIF.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
 
EXPORTING
    formname                
= 'Z_SMART01'

*   VARIANT                  = ' '

*   DIRECT_CALL              = ' '

IMPORTING
   FM_NAME                 
= fname
EXCEPTIONS
   no_form                 
= 1
   no_function_module      
= 2
  
OTHERS                   = 3
         
.IF sy-subrc <> 0.
 
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
         
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.ENDIF.
CALL FUNCTION fname

* EXPORTING

*   ARCHIVE_INDEX              =

*   ARCHIVE_INDEX_TAB          =

*   ARCHIVE_PARAMETERS         =

*   CONTROL_PARAMETERS         =

*   MAIL_APPL_OBJ              =

*   MAIL_RECIPIENT             =

*   MAIL_SENDER                =

*   OUTPUT_OPTIONS             =

*   USER_SETTINGS              = 'X'

* IMPORTING*   DOCUMENT_OUTPUT_INFO       =

*   JOB_OUTPUT_INFO            =

*   JOB_OUTPUT_OPTIONS         =

* EXCEPTIONS*   FORMATTING_ERROR           = 1

*   INTERNAL_ERROR             = 2

*   SEND_ERROR                 = 3

*   USER_CANCELED              = 4

*   OTHERS                     = 5
         
.

IF sy-subrc <> 0.

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

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

ENDIF.

 

 

 

 

 

Thank you all.

 

Regards,

Andrea.

How to Block ALV Layout 'Default' from change

$
0
0

We have standard SAP ALV report. When users execute this report and try to save their layout sometimes they save as default. This changes default layout for other users causing support issues. Is there a way I can lock the Default layout settings so no body can change it?

 

Thanks in advance.

 

Jitendra


SAP TM POPUP

$
0
0

Hi Experts,

 

I need your help regarding displaying a pop up error message in webui of SAP TM 9.0 .

My requirement is that on the Edit Freight Order screen, under the Charges tab, when user enters the amount manually and press enter.... then if that amount exceeds the maximum limit... then a popup error message should be displayed on the web ui (you have exceeded the max limit).


I just need to know how to display a popup error message on TM web ui... What is the procedure to get a popup error message on freight order screen ???


Please suggest your answers!!!


Thanks and regards,

Ashish Goyal

How to get changes values in Table Control in a Subscreen

$
0
0

Hi,

 

I have a big challenger: get changes values in TC in a subscreen.

 

someone told me I should put a loop screen  inside the loop that populates the table , but gives error " nested loop error".

 

Are there any method that can i use ??

 

How can I do that??

 

pls  detail code. ,  i´m a new abap´s development.

 

Best Regards.

How to distinguish whether a TIMS type variable is 00:00:00 or initial?

$
0
0

For example, when I wrote:

 

DATA a TYPE tims.

/

...............

/

CHECK a is initial.

 

I found when I declared a, then a have a initial value 000000. So I wonder how could I distinguish a is assigned the time 00:00:00 or it is initial?

Could anybody tell me the way?

doubt about DEMO???

$
0
0

Hi,

 

I'm trying to understand how the  DEMO_SEL_SCREEN_WITH_TABSTRIP works.

 

but I can´t see where the values ​​are moved from one tab to another.

 

can someone help me ??

 

thank you in advance.

ALV Grid complex requirement

$
0
0

Dear Team,

 

I am facing difficulty in designing attached ALV Grid format.

 

Please help me with some sample to achieve attached requirement.

 

Thanks in advance,

 

Regards,

Reddy

0 is not displayed and the field is blank

$
0
0

Hi Friends,

 

I  have ans issue, when i give  the value 0 in the screen filed and press enter key the value 0 is not displayed and it's left blank.

 

The thing is working in Staging client. (0 is displaying).  Data type is 'DEC'

 

Please anyone can guide me for the above issue?

 

Thanks in Advance

Viji.

 

Ref Image.jpg

HRFORMS_CALL_PDF using form_object_list

$
0
0

hi,

 

Im trying to call the FM HRFORMS_CALL_PDF using an hrform ref table but i only get the pdf from one of the hrforms. My code is parcilally this:

 

lo_hrform             TYPE REF TO object,
lt_hrform_list        like TABLE OF lo_hrform


(...)

loop on pernr.

(...)

     CALL FUNCTION 'HRFORMS_CALL_PERNR'
              EXPORTING
                form_object        = lo_hrform


     append lo_hrform to lt_hrform_list.

endloop.

(...)

CALL FUNCTION 'HRFORMS_CALL_PDF'
         EXPORTING
"          form_object = lo_hrform
            form_object_list = lt_hrform_list

IMPORTING
           pdf_xstring = ls_pdf

(...)


Ls_pdf always return the pdf belonging to only one of the hrform. The lt_hrform_list seems to have all the several hrforms inside. Even if i call 'HRFORMS_CALL_DISPLAY'

     IMPORTING

     FORM_OBJECT_LIST  = lt_hrform_list'

i can see all the hrform pdfs. Can anyone help me understand this?


Enhancing Business Partner Sales Area Data within ECC6 not CRM

$
0
0

Hi

 

I had an issue with enhancing the BP Transaction within ECC6.

 

Everything I looked up in SDN, dealt with CRM. Which wasn't much use.

 

I was particularly trying to update the Sales Area Data( KNVV) of Customer from the BP transaction. So I decided to enhance structure KNVV with my append fields.

 

I then created my enhancement section within BP and added the new fields with the GS_KNVV field name, hoping that a Move-corresponding transaction would take care of my field transfer from screen to database.

 

However this would not work, and after a hefty de-bug session, I found that within Class CMD_EI_API_MAP_STRUCTURE=>EXTERN_FORMAT_SALES_DATA there is indeed the move-corresponding command I had hoped for, sadly though the structure it was moving from CMDS_EI_SALES_DATA did not contain my append fields from KNVV.

 

But once I enhanced that structure, the fields flowed from screen to database easily.

 

So just putting this info out there in case it can help someone else.

 

Cheers

Change dropdown values in ALV at runtime

$
0
0

Hi,

 

i have an ALV table which contains a column formatted as dropdown. The possible dropdown values are dependend of the value of another column, almost like in the demo report BCALV_EDIT_07. There column CLASS is the dropdown formatted column whose values depend on the value in the SMOKER column.

 

My problem now is that the dropdown values don't become updated, if the referenced value (in SMOKER column) changes. I've tried this by copying BCALV_EDIT_07 and setting the SMOKER column editable:

 

line 101 ff.:

if ls_fcat-fieldname eq 'SMOKER'.
  ls_fcat-col_pos = 11.
  ls_fcat-outputlen = 10.
  ls_fcat-edit = 'X'. " <= line inserted
  modify pt_fieldcat from ls_fcat.
...


Does anyone have an idea how to update the dropdown list in the CLASS column at the changed line?


Regards

Stefan

How to display date field in ALV in format 'YYYY-MM-DD'?

$
0
0

Hi experts,

 

I am not getting displayed the date field in ALV in the format 'YYYY-MM-DD' if it is different than my user setting's format (DD.MM.YYYY).

Tried with the edit mask

LVC_S_FCAT-EDIT_MASK = '____-__-__'  but it does not work.

I could not find the conversion routine for this. Is it possible to write customer conversion routine?

I have to use DATE field, otherwise if I display this format in CHAR10 field , sorting in ALV does not work for this field.

 

PLEASE ANY HELP!

 

Kind regards,

Danijela

Selectable row table control

$
0
0

Dear experts,

 

I've a table control with an insert button. I want to enable one row when the button "insert" is pressed but disable the rest of data.

 

With this code I can do this, but the problem is that when the the insert is done, I cannot select any other row, the row is not longer selectable because the input is marked as '0'. Do you know how can I solve this problem?

 

LOOP AT SCREEN.
       IF wa_data-code IS INITIAL.
         screen-input = '1'.
       ELSE.
         screen-output = '1'.
         screen-input = '0'.
       ENDIF.
       MODIFY SCREEN.
     ENDLOOP.


Thanks in advance,



Regards,

 

Rebeca

cl_gui_docking_container doubt ???

$
0
0

Hi, everybody.

 

I define 2 ALVs in the same screen with Header Html.

I split the container usint cl_gui_docking_container.

     doc_at_top = header

     doc_at_left = alv1

     doc_at_right = alv2

 

It works, but i have a big challenge now.

 

is possible to put one on top of another??? using cl_gui_docking_container

 

     top       = header

     middle = alv1

     bottom = alv2

 

 

Thank you in advance

Viewing all 319 articles
Browse latest View live


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