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

Search help exit

$
0
0

Hello All,

 

I am Developing a Search Help Exit.

 

In CALLCONTROL-STEP = 'DISP'  ,For some reason i have to refresh RECORD_TAB with entries and fill the RECORD_TAB with some other Entries that i have fetched in CALLCONTROL-STEP = 'SELECT'.


Now when i am filling the RECORD_TAB there are some QUANTITY and CURRENCY values that also need to be displayed.

 

So i am filling these Values in normal way as i am filling other values in Record_Tab.

 

But somehow they are not getting displayed with correct Values but are Displaying some Garbage value.

 

Kindly Help.It will be rewarded and appreciated.

 

Thanks,


Restrict certain Doc. Types in Purchase Req. ME53N

$
0
0

Hi All,

 

My requirement is to restrict display of document types with descriptions "Do Not Use" in the ME53N drop down list .

I know we can have authorization object " M_BANF_BSA " but this will not allow user to select Doc types and these doc types will appear in drop dawn.

 

Is there any way to filter out doc types from appearing in ME53N drop dawn list for document types.

 

I tried with implicit enhancement where I delete the Doc type  details if they contain pattern "Do Not Use" after selecting from T161T but it's still appearing

in drop down.

 

 

Does anybody know how to achieve this..

 

 

Regard,

Sachin

Using the Standard Status Management in Custom Developments

$
0
0

A few weeks back I was debugging some issue with the status management of an order in SAP CRM. That was the first time that I noticed, that the general status management functionality is part of the core functionality of SAP Netweaver. As I like to use SAP standard whenever possible I was wondering whether it is possible to use the standard status management in custom development.

Status management in custom developments is a requirement I encountered regularly in the past. Most of the time I implemented a basic status management myself on the basis of some custom domain with numerical status values. This basic status management notable lagged most of the features the standard status management provides, like e.g.

  • the possibility to have different system and user status
  • the ability to have multiple system status active
  • or customizable and extendible status values.

 

Searching SDN I could only find little information regarding the standard status management. While there is a wiki page in the CRM area of the SDN wiki (Status Management - CRM - SCN Wiki) and a few threads on the topic (e.g. Integrating a Z Business Object with SAP Standard general status mangement?

with some very helpful comment by Rüdiger Plantiko) I couldn't find any complete example or tutorial on the topic. Therefore, I decided to create one myself. I this blog I'll provide a complete example consisting of creating a custom status object, customizing the status schema and finally using it in a simple example program.

 

Creating a custom status object

For the purpose of this blog I create a simple database table ZCD_D_STATUS_OBJ as an example business object. This table only contains the three field MANDT, OBJECT_ID and OBJECT_TEXT.

status1.png

The first thing that is needed to create a new status object for this table is a new object type including the necessary control parameters. The control parameters basically specify in which database table the custom object is stored and which are the key fields identifying an entry. For this example I create an new object type "Z1" with the value "ZCD_D_STATUS_OBJ" for the fields "Table" and "Ref.Struc." and "OBJECT_ID" for the field "Key Field":

status2.png

Next a new object type needs to be created using transaction BS12. For this example I created the object type ZT1. No further customizing is needed here for this example.

status3.png

With this basic setup in place, it is now possible to customize the status schema for our new status object. Customizing the status schema is done via transaction BS12. I created a test status schema ZCDT0001 for this example. The status schema consists only of the following three status:

  • CREA - Created
  • PROC - Processes
  • FINI - Finished.

CREA is set as the initial status value. The lowest and highest status numbers are set up in such a way that it is always only possible to go to a higher status, e.g. from PROC to FINI.

status4.png

Now all the customizing is in place to use the custom status object.

 

Test program for the custom status object

The function modules necessary to use the standard status management are locate in the function group BSVA in the package BSV. The following simple test program shows how to use these function modules to create and update the custom status object. The test program consists of the following parts:

  • First in lines 18-31 I simply use the BP number range to create an unique key for the entry in the custom table.
  • After that in lines 33-68 the custom status object for the object type ZT1 and the status schema ZCDT0001 is created.
  • In lines 70-98 the initial status values are read and printed to the output.
  • Finally in lines 100-163 some external and internal status values are set and then read and printed to the output again.

 

REPORT zcd_test_status_object.
TYPES: BEGIN OF object_key,        object_id TYPE char10,       END OF object_key.
DATA: status_test_obj TYPE zcd_d_status_obj,      object_key TYPE object_key,      status_obj_nr TYPE j_objnr,      object_type   TYPE j_obtyp,      status_schema TYPE j_stsma,      status_number TYPE j_stonr,      status_table  TYPE ttjstat,      s             TYPE string.
FIELD-SYMBOLS: <status> TYPE jstat.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Initialize the object key with an unique value
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
CALL FUNCTION 'NUMBER_GET_NEXT'  EXPORTING    nr_range_nr = '01'    object      = 'BU_PARTNER'  IMPORTING    number      = status_test_obj-object_id.
status_test_obj-object_text = 'Test Status Obj ' && status_test_obj-object_id.
INSERT zcd_d_status_obj FROM status_test_obj.
object_key-object_id = status_test_obj-object_id.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Creation of the status object
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
CALL FUNCTION 'OBJECT_NUMBER_GET_GENERIC'  EXPORTING    i_obart               = 'Z1'    i_objectkey           = object_key  IMPORTING    e_objnr               = status_obj_nr  EXCEPTIONS    number_already_exists = 1    obart_invalid         = 2    objectkey_missing     = 3    OTHERS                = 4.
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 'STATUS_OBJECT_CREATE'  EXPORTING    objnr                        = status_obj_nr    obtyp                        = 'ZT1'    stsma                        = 'ZCDT0001'  EXCEPTIONS    obtyp_invalid                = 1    status_object_already_exists = 2    stsma_invalid                = 3    stsma_obtyp_invalid          = 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.
COMMIT WORK AND WAIT.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Read the initial status values and print it
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
CALL FUNCTION 'STATUS_READ'  EXPORTING    objnr            = status_obj_nr  IMPORTING    obtyp            = object_type    stsma            = status_schema    stonr            = status_number  TABLES    status           = status_table  EXCEPTIONS    object_not_found = 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.
WRITE / 'Initial status values'.
s = |Object Type: | && object_type && | - Status Schema: | && status_schema && | - Status Number: | && status_number.
WRITE / s.
WRITE / 'Status Table:'.
LOOP AT status_table ASSIGNING <status>.  s = |Status: | && <status>-stat && | - Inactive: | && <status>-inact.  WRITE / s.
ENDLOOP.
ULINE.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Set some external and internal status values and print it
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
CALL FUNCTION 'STATUS_CHANGE_EXTERN'  EXPORTING    objnr               = status_obj_nr    user_status         = 'E0003'  EXCEPTIONS    object_not_found    = 1    status_inconsistent = 2    status_not_allowed  = 3    OTHERS              = 4.
IF sy-subrc <> 0.  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR status_table.
APPEND INITIAL LINE TO status_table ASSIGNING <status>.<status>-stat = 'I0098'.
CALL FUNCTION 'STATUS_CHANGE_INTERN'  EXPORTING    objnr               = status_obj_nr  TABLES    status              = status_table  EXCEPTIONS    object_not_found    = 1    status_inconsistent = 2    status_not_allowed  = 3    OTHERS              = 4.
IF sy-subrc <> 0.  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR status_table.
CALL FUNCTION 'STATUS_READ'  EXPORTING    objnr            = status_obj_nr   " Objektnummer  IMPORTING    obtyp            = object_type   " Objekttyp    stsma            = status_schema    " Statusschema    stonr            = status_number    " Statusordnungsnummer  TABLES    status           = status_table " Tabelle der Einzelstatus zum Objekt  EXCEPTIONS    object_not_found = 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.
WRITE / 'New Status values'.
s = |Object Type: | && object_type && | - Status Schema: | && status_schema && | - Status Number: | && status_number.
WRITE / s.
WRITE / 'Status Table:'.
LOOP AT status_table ASSIGNING <status>.  s = |Status: | && <status>-stat && | - Inactive: | && <status>-inact.  WRITE / s.
ENDLOOP.
ULINE.

Running this program produces the following result:

status45.png

After the status object has initially been created the user status E0001 is automatically set for the status object. This is the status that was defined in the status schema ZCDT0001. After setting the internal status I0098 and the user status E0003, the status E0001 is set to inactive.

 

I hope this blog provides an useful introduction for anyone trying to use the standard status management in a custom development.

Christian

ABAP data in PDF

$
0
0

Hello Experts,

I am working on program to display the invoices data in PDF through ABAP program. For this i have used cl_gui_html_viewer and ALV grid. everything works fine but one. When I click on the PDF preview button on screen then for first PDF its working fine, but when i click on the another PDF preview button then it displays same PDF as per first. In case of rerunning the program it again works fine only for first PDF preview. if anybody have idea regarding this issue please share it with me. FYI i am attaching necessary code with this. The code stated below is for displaying PDF in HTML viewer.

 

METHOD on_link_click.

    DATA : l_str_content TYPE zebd_send_content.

    READ TABLE m_tab_content INDEX row INTO l_str_content.

 

 

    DATA: l_xml  TYPE REF TO cl_xml_document.

 

 

    CREATE OBJECT l_xml.

 

 

    CASE column.

      WHEN 'PRVW'.

        g_attachment_string = l_str_content-attachment.

 

 

        CALL FUNCTION 'Z_EBD_PDF_SHOW'

          EXPORTING

            i_id = l_str_content-id

            i_pdf_string = g_attachment_string.

 

 

        CREATE OBJECT g_rcl_html_control

          EXPORTING

*            shellstyle         =

            parent             = g_rcl_html_container

*            lifetime           = lifetime_default

*            saphtmlp           =

*            uiflag             =

*            name               =

*            saphttp            =

*            query_table_disabled = ''

*          EXCEPTIONS

*            cntl_error         = 1

*            cntl_install_error = 2

*            dp_install_error   = 3

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

 

 

 

 

 

 

FUNCTION Z_EBD_PDF_SHOW .

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     REFERENCE(I_PDF_STRING) TYPE  STRING

*"     REFERENCE(I_ID) TYPE  STRING

*"----------------------------------------------------------------------

 

 

  g_attachment_string = i_pdf_string.

  g_id = I_ID.

 

 

  call screen 0101 STARTING AT 5 5.

 

 

 

 

ENDFUNCTION.

 

 

 

 

 

 

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

***INCLUDE LZ_EBDO01 .

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

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

*&      Module  STATUS_0100  OUTPUT

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

*       text

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

module STATUS_0100 output.

 

 

  set pf-status '100'.

*  SET TITLEBAR 'xxx'.

 

 

  clear: g_url, g_tab_pdf_data,g_attachment_binary.

  free: g_rcl_html_container, g_rcl_html_control.

 

 

  create object g_rcl_html_container

    exporting

      container_name = 'PDF'.

 

 

  create object g_rcl_html_control

    exporting

      parent = g_rcl_html_container.

*      lifetime = cl_gui_html_viewer=>lifetime_dynpro.

 

 

*    CREATE OBJECT g_rcl_pdf_control

*      EXPORTING

*        parent            = g_rcl_html_container

**        lifetime          =

**        shellstyle        =

**        autoalign         =

*      EXCEPTIONS

*        cntl_error        = 1

*        cntl_system_error = 2

*        create_error      = 3

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

 

 

* Convert xstring to binary table to pass to the LOAD_DATA method

  clear g_attachment_binary.

  call function 'SSFC_BASE64_DECODE'

    exporting

      b64data = g_attachment_string

    importing

      bindata = g_attachment_binary

    exceptions

      others  = 8.

 

 

  clear g_tab_pdf_data.

  call function 'SCMS_XSTRING_TO_BINARY'

    exporting

      buffer     = g_attachment_binary

    tables

      binary_tab = g_tab_pdf_data.

 

 

* Load the HTML

  clear g_url.

  CONCATENATE g_id '.pdf' into g_id.

 

 

  g_rcl_html_control->load_data(

     exporting

       url          = g_id

       type         = 'application'

       subtype      = 'pdf'

     importing

       assigned_url         = g_url

     changing

       data_table           = g_tab_pdf_data

     exceptions

       dp_invalid_parameter = 1

       dp_error_general     = 2

       cntl_error           = 3

       others               = 4 ).

 

 

*     CALL METHOD g_rcl_pdf_control->open_document

*    EXPORTING

*      url               = g_url

*    EXCEPTIONS

*      cntl_error        = 1

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

 

 

 

 

 

 

** Show it

  g_rcl_html_control->show_url( url = g_url

    in_place = 'X' ).

 

 

 

 

 

 

endmodule.                 " STATUS_0100  OUTPUT

 

 

Thanks,

Avadhut

PM Notification create bapi with refrence

$
0
0

I want to create a PM  notification with reference with another notification number.

 

iam calling the bapi ALM_PM_NOTIFICATION_CREATE , able to create the notification but the

 

reference notification number data is not copied.

Smart Forms and adobeforms in one job

$
0
0

Is it possible to mix Smart Forms and PDF based (Adobe) forms in one job ???

Conversion_Exit_ALpha_Input NOT APPENDING ZEROES

$
0
0

Hi Friends,

 

I have faced a very critical situation were the Conversion_Exit_Alpha_Input FM is not appending zeroesinspite of passing a char20 STRUCTURE. The Input parameter is string while the O/P structure is char20.Capture.PNG

 

As you can see in above screenshot even after running the Conversion_Exit FM the ZEROES have not been appended TO LV_OUTPUT . This is causing huge problems. Please can you help me out with this.

Smartforms vertical text right alligned - ZEBRA printers

$
0
0

Dear Friends,

 

 

I have this requirement where I need to have a vertical text next to the right margin of the label. I have managed to rotate the text via ZEBRA commands but now i have a new issue: the text is too far away from the right margin and I can't get it closer.

 

The text is rotated 270 degrees clockwise from the UP LEFT corner as you can see in the attached picture. Due to the length of the text there is a big distance between the text and the right margin. How can i shift this text to the margin?

 

I can't move it more to the right because I will be out of the window with the text definition .. so I am out of options right now. Please adivse.

 

Thanks and BR,

Cristian


Check Box (Data Element XFELD) in Search Help Restriction Window

$
0
0

Hi Experts,

 

I have created one search help with dialog value restrictions. Search help contains 6 fields.

 

Out of which three fields has length one character(Data Element XFELD).

 

As soon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 6 fields.

 

I would like to show that fields(with Data Element as XFELD) as Check Box in search help restrictions pop-up window.

 

Pls help... How can we acheive this.

 

Thanks

Vinod

Internal table treatment

$
0
0

Hi,

 

How could we delete from an internal table of strings, data that starts with  a letter ( a - z ) ??

 

Cordialy,

Issue with simple transformation code

$
0
0

Hi Folks

 

I am working on developing a custom simple transformation, the requirement is convert the upload the file(unknown columns text file) into xml code.

 

here columns text has not been mentioned so while uploading this data using "upload" function module we can get into string table, so now I want to pass this data into transformation to convert into below format, can you please suggest me how can I do this.

 

<Template1>

<Name>first 10 characters in the file line1</Name>

<Address>character 11 to 40 in the file line1</Address>

<Salar>character 41 to 50 in the file line1</Salary>

.

.

.

Etc.,

</Template1>

 

Please suggest me how to split the file line 1 data based on my tags in the simple transformation.

 

 

Appreciate your help on this.

 


Regards,

Naresh.

BTE 1030 - we use for AP documents, create an event that triggers a workflow

$
0
0

Hello all,

 

We use SAP's program RFBIBL00 to post AP documents.  We coded a function module that is called when BTE 1030 is reached.  Our FM creates an event that triggers a workflow.

 

We are now doing some testing with an external vendor who is creating AP documents by doing an RFC  using function module BAPI_ACC_DOCUMENT_POST.

 

It seems that this BTE, 1030, is not being triggered when the IDOC created by this function module posts the AP document.

 

Has anybody else seen this issue and found a way to deal with it?

 

Thanks

Bruce

Delivery block status text

$
0
0

Hi,


I need to get text for the field "DELIVERY BLOCK STATUS" under the tab "Shipping" in transaction VA03.

The delivery block status is saved in VBUP-LSSTA and possible values for this are space,A,B and C.

However in tarnsaction it is displayed as BLOCKED,Not blocked as shown in below fig.I want to know where these values for staus text are saved in system and how to retrieve them?

 

Del block status textgif.gif

Error executing CO_SF_CAUFVD_GET

$
0
0

Hi, I'm getting the following error executing the function module, I need to get the information from structure CAUFVD.

Any idea ?

 

Error: intern: Prg-error in LCOSFU21 reading AFPO

Limiting weight values to be transferred to target system

$
0
0

Hi All,

 

I have a requirement according to which I need to reduce the number of digits being passed to IDOC segmnet fields Z1BP_J_1BNFDOC-BRGEW and Z1BP_J_1BNFDOC-NTGEW. This IDOC will transfer data to a non-SAP target system. In the target system, the gross weight & net weight (BRGEW& NTGEW respectively having total length 13 with 3 decimal places in SAP) have mask: 9999999.99999 (7 digits before decimal and 5 digits after decimal). So the total digits that should be transferred to the target system should not be more than 12.

 

The method to achieve this, as suggested by functional, was to divide the weight values by 1000 instead of directly truncating the values so that there is no loss of data. For example, if the value in weight field is 123,234,432.000 KG, then on dividing it by 1000, it will result in 123,234.432KG, which is correct. But using this method, if the number of digits in the weight field is less than 4 digits, for example, 123.000 KG, then on dividing this value by 1000, it will result in 0.123 KG, which is incorrect. And to avoid such a situation, if I apply a condition that the weight values should be divided by 1000 only when the number of digits before the decimal is more than 3, then I am facing the following issue:

Say, there is one value 123,4.000 KG, then in this case since the number of digits is more than 3 before the decimal, it will be divided by 1000, so we get: 1.234 KG. Now, there is another value say, 123.000 KG, then since in this case the number of digits before the decimal is 3, it will not be divided by 1000, so it will remain the same, that is, 123.000 KG. But comparing the two values, initially: 123,4.000 KG > 123.000 KG; and after applying the above logic: 1.234 KG < 123.000KG, which is again incorrect.


Please suggest an appropriate solution.  

 

Thanks & Regards,

Ankit


Check Box in search help restriction dialog for XFELD Data Element.

$
0
0

Hi Experts,

 

I have created one search help with dialog value restrictions. Search help contains 6 fields.

 

Out of which 3 fields has length one character(Data Element XFELD).

 

As soon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 6 fields.

 

I would like to show that 3 fields(with Data Element as XFELD) as Check Box in search help restrictions pop-up window.

 

Pls help... How can we acheive this.

 

Untitled.png

 

Thanks

Vinod

Error on deserialize json

$
0
0

Hi experts !

 

I'm developing a webservice communication with external product and SAP. I send data to him sucessful, but when i call the response, this not deserialize.

 

This webservice works with JSON and his response (not deserialized is: {"retorno":{"ids":[600,608],"rpss":[{"nota":{"aliquotaServicos":0.10,"tipoRps":"1","codCidade":"4209102","idProcessamentoLote":null,"numeroProtocolo":null,"status":100,"numeroNfe":4,"situacaoRps":"1","siafiPrestador":"8179","serieRps":"NF","tipoAmbienteSistema":2,"docNum":null,"descricaoStatus":"Erro Geral no E-mail, não foi possível enviá-lo null","dataEmissaoRps":"2012-08-07T09:28:07","numeroLote":null,"valorDeduzir":0.00,"codigoVerificacao":"49BI6IB2","cnpjPrestador":"00910509000171","urlConsulta":null,"valorServicos":500.00,"inscricaoPrestador":"12345678","idProcessamentoRps":600,"numeroRps":4},"referencia":"arquivo_integrador_20120807111309.txt"},{"nota":{"aliquotaServicos":0.10,"tipoRps":"1","codCidade":"4209102","idProcessamentoLote":null,"numeroProtocolo":null,"status":100,"numeroNfe":2,"situacaoRps":"1","siafiPrestador":"8179","serieRps":"NF","tipoAmbienteSistema":2,"docNum":null,"descricaoStatus":"Autorizado o uso da NFS-e","dataEmissaoRps":"2012-08-07T09:28:07","numeroLote":null,"valorDeduzir":0.00,"codigoVerificacao":"49BI6IB2","cnpjPrestador":"00910509000171","urlConsulta":null,"valorServicos":500.00,"inscricaoPrestador":"12345678","idProcessamentoRps":608,"numeroRps":6},"referencia":"arquivo_integrador_20120807152107.txt"}]}} )

 

Can i put this response into itab?

 

I'm using 2 custom classes of CL_TREX_JSON_SERIALIZER and CL_TREX_JSON_DESERIALIZER.

 

Thanks,

help with conversion

$
0
0

Hi,

 

 

Please, can anyone help me?

I have a smartform and inside a program line I have the following code:


DATA: NUM TYPE i.

     NUM = WA_LIPS-LFIMG.

     WRITE NUM TO V_LFIMG .

     SHIFT V_LFIMG LEFT DELETING LEADING SPACE.

     V_CONT_LOTE = V_CONT_LOTE + 1.

 

The problem is about to show the result number with decimals like '12.345'. I try to add 3 decimals in the result number but the following line of code

"write num to v_lfimg" the result round to next higher number just like in:

"write NUM TO v_lfimg decimals 3" but this way

 

 

How can I show the result number with the correct decimals?

 

 

 

PS: wa_lips (input parameter)

       v_lfimg type char17 (Output parameter)

       LFIMG type quan length 13 decimals 3 (LIPS table).

Send an Excel Attachment as mail to a list of recipients

$
0
0

Hello everyone,

 

My query is as follows.

 

My report runs certain conditions to get data into an internal table. I am displaying this data using ALV.
After this, I am trying to download the internal table data as an excel file using GUI_DOWNLOAD.
And it works fine till here. My file is getting downloaded with all headers and columns.


However I would also like to mail this excel as an attachment to 3 recipients.
I have been trying to use SO_NEW_DOCUMENT_ATT_SEND_API1. And I am not able to figure out what exactly should be done. Can I pass the internal table directly here? Or can I attach the excel file directly? Or should I use a different function module.

 

Kindly help. Thanks in advance.

 

 

Regards,
-Monica

all cutom developed objects in a client system

$
0
0

Hi Guys

 

can you provide me simple method for following work

 

Please provide a list of all customizations and custom developed objects in the SAP P02 instance.

 

List should include

 

1. description of the customization or developed object. what is it used for

 

2. type of object - configured parameters, report or extract, interface, conversion object, forms, enhancement (user exit) - under enhancements... sub categorize as custom table, function module, BAPI, BADI, processing reports (report program that includes updates to databases), routines,

 

3. technical object id.

 

 

I was planning to use TADIR table ,,, with z* and Y* in obj_name not sure ... if it will be precise approach

as you can see i need even classes and methods

 

Thanks in advance

Viewing all 8332 articles
Browse latest View live


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