Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all 10425 articles
Browse latest View live

Re: Undo functionality in ALV grid after refreshing

$
0
0

Hi Paulo,

 

You might consider to store the begin state at another global variable in your program?

 

This user friendlier SM30, is also going to insert/update/delete key fields? Then you might also consider a back up table with fields like: tablename, timestamp, ernam and a string, which contains the original data of the table they just altered in XML or a ZIPPED XML string or ZIPPED XML xstring, to be more sufficient.

 

Good luck!

Best, Sander


Re: Joining three tables with inner join and for all entries

$
0
0

I understand it can be done with one inner join, but I'm trying to do it with for all entries

Re: Indexes not deleted after DELETE FROM dbtab

$
0
0

Hi Kris,

 

not sure on what database type you are. But my recent experience with an Oracle database are, that during mass deletion, also the INDEX is checked again and again - since the database seems not to be aware that a full table scan will not be part of the performance of executing the statement. On an Oracle database this can be avoided using %HINT and a reference to FULL_INDEX. << I will check the correct ABAP syntax tomorrow >>

 

Some segmentation like Thomas Zloch was already stating is also a very good idea. It looks like a big lost in performance - moving data from database server to application server and back - but it's a winner for real...

 

Best,

 

Sander

Re: Getting field label from select-options, Parameters etc.

$
0
0

You can use FM 'PRINT_SELECTIONS' to store selection screen data into a table and then use the table rows to fit your needs.

 

-Amit.

Re: SAP ECC Upgrade - Issue with PDF Font

$
0
0

Hi Milind,

 

I had a similar problem during an Upgrade! We solved this issue applying SAP Note 1243485.

 

I think do you need find a SAP Note for solve issue.

 

Regards,

Re: Indexes not deleted after DELETE FROM dbtab

$
0
0

Sure, but OpenSQL looks like a far much better idea. I don't want to build database specific solutions - even not for the client which probably will never switch to another database vendor - otherwise I would not build SAP solutions either, right ?

Re: SAP ECC Upgrade - Issue with PDF Font

$
0
0

Thanks Dave,

 

I've searched a lot on OSS. Didn't come across any. Let me know if you find one which meets my situation. Also opened OSS message for SAP to look into. No response yet.

 

Thanks,

Milind

SQ02 ABAP Coding

$
0
0

Hi All,

 

I am new to ABAP and am using SQ02 to add coding to select data from a table here is what I have so far:

 

Select single KNUMH from KONV

into Z_KONV_COND

where

KNUMV = EKKO-KNUMV

and

KPOSN = EKPO-EBELP

and

KSCHL='XX00'

 

===================

 

The problem is in table KONV, there are some records where the field KNUMH is blank I do not want these records to show in the query, what additional code do I need to add to the above section?

 

thanks

 

Joe


Re: Club multinple rows into single row in an internal table

$
0
0

Yes, call cl_salv_table=>factory method. Put in the the database table, retrieve the alv object instance, set the parameters to have the necessary toolbar functionality (out of the box), and use the alv object instance ->display( ). method and you will be able to have the subtotals in the same view.

Re: How to create a PDF file on backend ?

$
0
0

Hi,

 

If you want to create a pdf in background you have two options:

 

1.       1.Create a PDF from spool with function module  CONVERT_ABAPSPOOLJOB_2_PDF like explained in the following thread https://scn.sap.com/thread/1501009

2.        2.   Or create an SMARTFORM and convert it to pdf  like in the following wiki http://wiki.scn.sap.com/wiki/display/Snippets/Convert+Smartform+to+PDF+format

 

To print you need to configure the user which runs the job the proper printer (this is more system configuration).

http://help.sap.com/saphelp_nw04/helpdata/en/9f/760ddd102d11d290a40000e8292d60/content.htm

Re: Club multinple rows into single row in an internal table

$
0
0

Hi,

can you pls share your internal table structure. because other than quantity filed should be character.

 

With Regards

Sathish Raji

Re: Not able to pick files with file name length greater than 40 chars using EPS_GET_DIRECTORY_LISTING function module in SAP CRM 7.0

$
0
0

Hi Samuli Kaski

 

Thanks for the response. I will check with my Basis team and get back on this.

Re: Club multinple rows into single row in an internal table

$
0
0

collect will add up all  the numeric fields with the same key, the key is made of all the character fields.

 

if material batch reason are of type char, and quantity is a numeric field, collect will work.

 

the reason for not working could be that material is type n and not char or quantity is not a numeric field.

 

The following will make collect work.

 

create a table in the following way:

types: begin of  y_final_collect,

            material(10) type c,

            reason(1) type c,

            batch(10) type c,

            quantity type i,  " must be numeric maybe quantity is a type p with 3 decimals

           end of y_final_collect.

 

data gt_final_collect type table of y_final_collect.

data gs_final_collect type y_final_collect.

data gs_final type line of gt_final.

 

move_corresponding gs_final to gs_final_collect.

loop at gt_final into gs_final,

    move_corresponding gs_final to gs_final_collect.

    collect gs_final_collect to gt_final_collect.

endloop.

How to use RFC modules from VB.net?

$
0
0

Dear experts.

 

I'm looking into how to use RFC modules from VB.net.

I want to avoid using Netweaver Gateway, .Net Connector and Enterprise Service.

 

Is there anyway except for above options?

 

The reasons why I want to avoid above options are like these.

NetWeaver Gateway takes time to develop update function for several entities at once.

.Net connector doesn't support windows 2012 and .net framework 4.5.

Enterprise Service takes time and CPU resource to consume.

 

I'm a beginner for .Net, so I don't know much about .Net world.

 

Regards,

Fukuhara Yohei

Re: BAPI to release production order despite missing parts

$
0
0

I've solved my requirement using this FM's:

 

DATA: lwa_aufnr  TYPE ord_pre,

      lwa_tca11  TYPE tca11,

      lwa_caufvd TYPE caufvd,

      lt_aufnr   TYPE STANDARD TABLE OF ord_pre.

 

   lwa_aufnr-aufnr = g_aufnr.

   APPEND lwa_aufnr TO lt_aufnr.

 

   lwa_tca11-flg_alt  =

   lwa_tca11-flg_seq  =

   lwa_tca11-flg_opr  =

   lwa_tca11-flg_sop  =

   lwa_tca11-flg_aob  =

   lwa_tca11-flg_fhm  =

   lwa_tca11-flg_mst  =

   lwa_tca11-flg_phas = 'X'.

 

   CALL FUNCTION 'CO_ZF_ORDER_READ'

     EXPORTING

       flg_dialog        = space

       flg_enqueue       = 'X'

       objects_imp       = lwa_tca11

       flg_prot_imp      = 'X'

     TABLES

       aufnr_tab_imp     = lt_aufnr

     EXCEPTIONS

       order_not_found   = 1

       release_no_change = 2

       OTHERS            = 3.

 

   IF sy-subrc EQ 0.

 

     CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_KEY'

       EXPORTING

         aufnr_act      = g_aufnr

         no_dialog_info = 'X'

       IMPORTING

         caufvd_exp     = lwa_caufvd

       EXCEPTIONS

         not_found      = 1

         OTHERS         = 2.

 

     IF sy-subrc EQ 0.

 

       CALL FUNCTION 'CO_ZR_HEADER_RELEASE_NEW'

         EXPORTING

           caufvd_imp         = lwa_caufvd

           prot_init_imp      = 'X'

           write_prot_imp     = 'X'

           no_dialog_imp      = 'X'

           no_avail_check_imp = 'X'

         IMPORTING

           caufvd_exp         = lwa_caufvd

         EXCEPTIONS

           free_failed        = 1

           end_task           = 2

           OTHERS             = 3.

 

       IF sy-subrc EQ 0.

 

         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

           EXPORTING

             wait = 'X'.

 

 

       ENDIF.


     ENDIF.


   ENDIF.


Re: Error in creating dynamic structure?

Re: Badi CUSTOMER_ADD_DATA with z tables

$
0
0

Hello Zachary White,

 

Probably you are seaching for Badi :  CUSTOMER_ADD_DATA_CS anc check for method implementation

SET_DATA Data Transfer

GET_DATA Transfer Data

 

Hope this helps,

Thanks Anup D.

Re: SAP - Masking Sensible Data

$
0
0

SAP TDMS is the standard solution. Companies wanting to save costs usually implement their custom ABAP report to do the same.

Re: SAP - Masking Sensible Data

Re: Clean fields in transaction

$
0
0

Hello Brujo Brujo P,

 

Iff you want it to be cleaned why don't you overwrite it with space ?

 

hope this helps,

anup D.

Viewing all 10425 articles
Browse latest View live


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