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

Re: SE16 - TIMESTAMP CONVERSION

$
0
0

Hi,

 

Try to change the default Date n Time formats as required in transaction SU3 and check the values in SE16.. Hope this helps..

 

-SS-


no objects shows up in BAPI explorer

$
0
0

Dear friends.

 

When I open BAPI explorer, there is no objects under hierarchical column. why so?  By the way, I am using sap gui in chinese version. however when i change it into english version, it works fine. 

 

Thanks TP.

 

截图01.jpg

SAP Invoice print missing VF01

$
0
0

Hi Guys

 

have you ever been faced the below issue ???:

 

when VF01 giving mass print of invoice to front printer some document got missed !!!(not printed required re print the documented))

 

My frontend printer access method is G...

please provide me the solution... if anyone know...

 

Thanks

engli

Adding new record to ZTABLE from 2 ITAB

$
0
0

hi everyone,

 

I have requirement, where i have to add new records into ztable based on 2 condition.

 

for the 1st condition i am using itab1  and getting value into it.

for the 2nd condition i am using itab2 and getting value into it.

 

My wa1 and wa2 contains same fields.

 

But the values in ITAB1 will be different from ITAB2.

 

Currently i am inserting ztable seperately each time for this ITAB1 and ITAB2.

 

 

Now i wanted to know whether it's possible to combine this itab1 and itab2 into a final itab (ITAB_FINAL), If so explain me, With Ex.

 

 

With Regards,

Kishan Raj.K

debugging

$
0
0

Hi gurus

 

how to debug the standard t.code me51n(PR) to find out which badi is triggering for my requirement and how to change the code in the badi.

 

Thanks in advance.

Re: debugging

$
0
0

Hi Enoch,

 

Navigate to SE24 and give the class name  CL_EXIT_HANDLER and then put break-point there and then run transaction ME51n, or go to SE80 and then select enhancements and there provide the package name and then execute.

 

Regards,

Dinesh

Re: Adding new record to ZTABLE from 2 ITAB

$
0
0

Hi Kishan,

 

The best is to combine both the tables into one common table and then insert the record into final Ztable.

 

SORT ITAB1 and ITAB2 by primary keys.

 

Loop at ITAB1 into WA1.

 

Read Table ITAB2 into WA2 with key WA1-fieldname (common in both the tables).

 

IF sy-subrc eq 0.

 

WA3-fieldnames = WA1/WA2- fieldnames.

Append WA3 to ITAB3.

 

endif.

Clear: WA1,WA2,WA3.

Endloop.

 

Regards,

Dinesh

Re: Adding new record to ZTABLE from 2 ITAB

$
0
0

hi dinesh,

 

But in my case 2 itab contains 2 different values.

 

there is no common field here in this 2 ITAB.

 

1st ITAB is to calculate Storage Cost.

2nd ITAB for procurement cost.

 

What should be done in this case.

 

With Regards,

Kishan Raj .K


Re: debugging

$
0
0

Hello Enoch,

 

go to tcode SE24. put class CL_EXITHANDLER in input. press on display button. you can see a method named GET_INSTANCE under method tab. doble click on GET_INSTANCE method. you have to put a break point at :

 

CALL METHOD cl_exithandler=>get_class_name_by_interface.

 

in command field you have to put /nme51n. press ENTER.  debugger screen will open. double click on

exit_name. exit_name = badi name.

 

CALL METHOD cl_exithandler=>get_class_name_by_interface
     EXPORTING
       instance                      = instance
     IMPORTING
       class_name                    = class_name
     CHANGING
       exit_name                     = exit_name
     EXCEPTIONS
       no_reference                  = 1
       no_interface_reference        = 2
       no_exit_interface             = 3
       data_incons_in_exit_managem   = 4
       class_not_implement_interface = 5
       OTHERS                        = 6.

 

you have to press F6 button for debugging...... you dont have mentioned your exact requirement in your question. For that reason i give an example. suppose you have to find out badi name when you press save button...i think you understand my example.. in time of debugging, after creating of purch. req , you press on save button for save purpose. when you press save button, at that time you find a badi name ....thats means this is the badi name which is triggered at pressing SAVE button after activating this badi...

 

 

actually which you find out this is the badi definition... go to SE18. put this badi name. press DISPLAY.

next you have to implement this badi....means badi implementation. for this, go to SE19 tcode...go to CREATE IMPLEMENTATION block. select radio button classic badi. put your badi definition name.

press on create implementation. give a implementaion name(starts with Z or Y). give short text. press on INTERFACE tab. one or many methods you can see. choose the correct method which fullfill your requirement.....

double click on your required method.. give packae name..and save the object.

 

just for example you see like this:

 

method IF_EX_BADI_MATERIAL_CHECK~CHECK_MASS_MARC_DATA.
   break-point.
  
endmethod.

 

between method ... endmethod you have to put your logic which you want.....

save it and finally activate the implementation....

 

go to tcode me51n.. after creating purch req. press save button...then this badi(Activated) will be called....for test purpose, put a breakpoint between method and endmethod in badi.... you can understand...cheers...

 

your problem will be solved... if any problem revert back..close your thread according to SCN rules....obey this rules..

 

Thanks

Sabyasachi



Re: debugging

$
0
0

  

Hello,

 

dinesh writes:

Dinesh Ailawadi wrote:

 

Hi Enoch,

 

Navigate to SE24 and give the class name  CL_EXIT_HANDLER and then put break-point there.

i beleive that this class name is CL_EXITHANDLER. You wrote that put break point there..my question to you where??? i think your answer is not so clear for a learner........ when you post in SCN , be carefull about your answer and mistake......

Thanh Tam Nguyen Thi 

likes this answer.....

Hello

Thanh Tam Nguyen Thi

did you notice this class name when you click on LIKE button....????????

 

 

Thanks

Sabyasachi

Re: Record into the new z field in BKPF from transaction MIRO

Re: Record into the new z field in BKPF from transaction MIRO

Re: SAP memory, SMO, singleton classes related to each user's activity

$
0
0

Hello Matteo,

 

In your scenario I would use a data cluster to IMPORT and EXPORT.

Create a key that is aligned with the user specifics.


The data cluster will be guaranteed over multiple sessions.

 

From  ABAP Keyword Documentation->ABAP Reference->Processing External Data->Data Cluster->EXPORT->EXPORT - medium:

Example

 

An internal table itab with the name tab and the ID "TABLE" is exported to the area "SQ"  of
the database table DEMO_INDX_TABLE,
filling the freely selectable components from the structure wa_indx.

 

 

TYPES:
  BEGIN OF tab_type,
    col1
TYPE i,
    col2 TYPE i,
  END OF tab_type.

DATA:
  wa_indx
TYPE demo_indx_table,
  wa_itab TYPE tab_type,
  itab  TYPE STANDARD
TABLE OF tab_type.

WHILE sy-index < 100.
  wa_itab-col1 =
sy-index.
  wa_itab-col2 = sy-index ** 2.
  APPEND wa_itab TO itab.

ENDWHILE.

wa_indx-timestamp = sy-datum && sy-uzeit.

wa_indx-userid    = sy-uname.

EXPORT tab = itab
  TO DATABASE
demo_indx_table(SQ)
  FROM wa_indx
  ID 'TABLE'.

Regards,

Kim

Re: user exit message only once

$
0
0

Hi Edgar,

 

right, i will try that and let you know. yeah i am in CST zone.

 

regards,

NK

Re: Table event

$
0
0

Hello Venkrat,

 

To find the events, go to SE11 to display/change the view.

 

Once in the view, follow menu path Utilities->Table Maintenance Generator.

 

In the next screen,  follow menu path Environment->Modification->Events.

Any events that have been customized will be listed.

 

Also, you can look at the drop down list for the table column "Table maintenance dialog event" for all possible events.

 

Regards,

Kim


Re: FM to convert ABAP list spool to PDF

USING FIELD (DATE AND TIME) IN ZTABLE

$
0
0

Hello Guys,

 

I am creating a ZTABLE with different fields. One of the fields will be creationdatetime (will have date amd timestamp).

What data type can I use for this field?

 

Thanks,

 

James

Direct Access to Underlying DB

$
0
0

Hello all,

 

What are the community's thoughts on directly updating custom tables in the underlying RDBMS, outside of the SAP Application Layer? I understand that updating SAP Standard Tables outside of the provided FM's and programs is verboten, but how much flexibility are we given with Z-tables?

 

Our data is hosted in a DB/2 database, and I'd like to connect directly to the DB to populate a z-table that was created within SAP. The table doesn't have any dependencies on other SAP tables.

 

Thanks in advance for your input,

Jarrod

Re: SO_DOCUMENT_SEND_API1 without attachment

Re: USING FIELD (DATE AND TIME) IN ZTABLE

Viewing all 10425 articles
Browse latest View live


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