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

Spool problem in ALV report Background job

$
0
0

Hi Guru's,

 

 

I scheduled a report in background it is doing the correct function as we wanted but it is not generating any spool to check it. It is an Oops ALV. Can you please help me.

 

 

Thanks.


RSSCD100 Object Class

$
0
0

I've checked at SU24 for RSSCD100. But the authorization object for it only 4 items

 

How do i insert an authorization object for the RSSCD100 Object Class?

I'm trying to limit my user to be able to search for Object Class [BANF] and [EINKBELEG] in the role.

What is difference between Select Single and Select UPTO 1 rows?

$
0
0

I had search on many sites but got difference answers as Select Single is faster than upto 4 rows or

upto one rows is fatser than select single...

 

one of the answer i have got is like

If you Google, you will see lots of results that will say SELECT SINGLE is faster and efficient than SELECT UPTO 1 ROWS.
But that is 100% incorrect.

SELECT UPTO 1 ROWS is faster than SELECT SINGLE.
If for a WHERE condition, only one record is present in DB, then both are more or less same.
However, If for a WHERE condition multiple records are present in DB, SELECT UPTO 1 ROWS will perform better than SELECT SINGLE.

 

and on this link opposite is Given to this

 

http://wiki.sdn.sap.com/wiki/display/HOME/Difference+between+select+single+and+select+upto.

(mention line: he System test result showed that the variant Single * takes less time than Up to 1 rows)

 

Can any one please tell with simple and presise language...

 

Thanks...


 


How to reset OTR Text to SAP provided standard text

$
0
0


Hi Team,

Need your input in below issue in one Web Dyn Issue.

 

The OTR text for "Report Safety Observation (Application: EHHSS_INC_REC_SFO_QAF_V3) and "Reprot Incident-Simplified (Application: ZEHHSS_INC_REC_QAF) is not reflecting as mainintained in SOTR_EDIT transaction code.

How can we reset to the standard provided.

 

In SOTR_EDIT

Alias                EHHSS_UI_INC_COMMON/INC_QAF_GROUP_TIME
Concept              80215A5C32181DDF8DB721D98D251108
Text                 When did it happen?

While both application "EHHSS_INC_REC_QAF" as well as "EHHSS_INC_REC_SFO_QAF_V3" reflecting a different text.

As per our requirement the text used in application "EHHSS_INC_REC_SFO_QAF_V3" needs to be modified to a new one. So initally I have changed the same in SOTR_EDIT tcode.

But after that I have found that new text is relecting in all the related applications. So I have changed back to the original one.

I have also tried to refresh with "SOTR_DEFAULT_CONTEXT_FLAG_SET" and "/$OTR", but no effect.

However still we are seeing the changed one in both application.


Please suggest:

1. How to reset to original one.
2. How to change the text for a particular screen.

 

Warm Regards,
Krishan

Make fields non-editable in MIRO (user exit, badi, etc)

$
0
0

Hi,

 

I need to have some lines (fields) non - editable in MIRO using user exit, badis, etc. Any of you know any of them could help me?

 

Thanks,

Luis Ganoza

performance query

$
0
0

Hi folks

 

I have the below code and i am getting performance issue on below code.

 

Please suggest

 

      SELECT bukrs belnr gjahr xblnr awkey FROM bkpf INTO
*       TABLE it_bkpf FOR ALL ENTRIES IN it_vbrk WHERE xblnr = it_vbrk-xblnr.
      TABLE it_bkpf FOR ALL ENTRIES IN it_vbrk
                    WHERE bukrs = it_vbrk-bukrs AND
                          XBLNR = it_vbrk-xblnr and
                          awkey = it_vbrk-awkey.

 

it is taking 2 min to excecute this code and some times if data is high it is taking much time and going on dump not able to resolve it.

 

Please suggest.

 

Regards

Ravi

 

SAP technical consultant

$
0
0

Hello evey one...

Well am having a lot of confusion in my carrier.

Right now am working as SAP ABAP JUNIOR CONSULTANT

Its around 9 months I have been working in a company(its just a start up company)

I have finished my engineering in electronics and communication,

I have a great passion towards SAP,and I love programming in ABAP.

But I have not been specialised in any modules like HR,MM,SD.

But I have gained some knowledge about programming.

I have done three projects.

The problem is many of my brothers and friends recommend me to be specialised in any of the SAP Modules or else

There will be no chance for me to get a good job in SAP ABAP.

Please tell me what I should do?

In my company we do SAP Projects like document management system,help desk and all.

I even don't know the standard table used for PURCHASE INVOICE OR SOME OTHER RELATED TO THAT.

Please guide or give me a solution.

Consuming a SAP WebService with VB.NET

$
0
0

Hi all , i need some help with this , i created a WS with abap , not too much trouble there , but when i'm trying to consume it from VB.NET is when all get trouble. The App runs fine but when i'm trying to edit the Web Reference URL (the one that SAP gave me from SOAMANAGER, if i'm not wrong is the WSDL URL) i can see where can i change it by code in run time , can anybody tell me how or have any experience on that , thanks for all.

 

This is what i need to modify


Badi MIRO Get Previous Data

$
0
0

Hi,

 

I need to get in a BADI for MIRO tx the previous data , so I can check if there is a difference with the entered data and trigger an error message.

 

Thanks,

SAP Development Landscape Strategy

$
0
0

Hello ABAP People,

 

I've been implementing SAP solutions since 1996 and this is the first question I have posted to SCN.

I'm hoping for a good experience!  Let me know if you think this question fits into a better area and which one if possible?

 

Recently I met with the Basis Team and we were trying to determine why we have seperate development clients for config, ABAP, & security.

 

Here is an exmaple of our development landscape

DEV 010 - Config only

DEV 020 - ABAP only + Unit Testing (config is SCC1 here)

DEV 030 - Security Development (config is SCC1 here)

 

What I would like to understand is the pros & cons to organizing the development landscape in this manner.

If we were to combine these 3 clients into 1 what problems may that cause?

 

I've seen replies to similar posts but never the reasons why this strategy is a good or bad.

Please do not respond to this post stating "This is an SAP best practice".

I would like to understand why.....

 

Also, what is the purpose of a golden config client?

 

Thanks in advance for anything that you can share with me on this subject.

 

Regards,

Ron Mattson

Table containing Values for Field ERFASSART and relation with record type?

$
0
0

Hi,

 

Help me out to find the table containing values for field ERFASSART and relation to inspection lot or characteristics.

http://help.sap.com/saphelp_470/helpdata/en/26/b43caf506511d182c20000e829fbfe/content.htm

 

Also which table to find the values and relation to inspection characteristics of record type (ref link provided below)

Record type like q71, q72 q73 q54..etc

http://help.sap.com/saphelp_470/helpdata/en/26/b43c06506511d182c20000e829fbfe/content.htm

 

I checked for relation in QPMK with master characteristics i could not find it.but somehow this record type (q71,q72..etc) is associated with it please help me find it.

do_sum in alv grid - insert some field's sum separately

$
0
0

I got three fields - A, B, C.

 

They are P type.

 

I use do_sum = 'X' at A, B.

 

But C = A / B * 100.

 

my question is :

 

I want to use do_sum at A, B.

 

But C is percent that I have to calculate.

 

Can I use do_sum and  insert C field value into a sum row together?

Problem while using the SUBMIT statement to execute a report

$
0
0

Hi all,

 

I tried to call an external program from my program and i wanted to pass certain information to it.

The program i'm trying to call is "rdsmopreducedata" and i need to check "System in all solution" and enter "OTO" then execute it.

 

The method i used was to define a table of rsparams, append my parameters then submit the program after passing that table to it .

exp

 

DATA :rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.

 

wa_rspar-selname = 'ANZ_COMM'.

wa_rspar-low = '1'.
wa_rspar-KIND = 'S'.
wa_rspar-SIGN = 'I'.
wa_rspar-OPTION = 'EQ'.

 

SUBMIT rdsmopreducedata
WITH SELECTION-TABLE rspar

 

The first problme i have is that for certain cells, the information i passed is missing (OTO for example).

The other problem is that the program displays the "rdsmopreducedata" 's screen although i didn't mention it.

Any help?

Thanks

dividing percentage between positions

$
0
0

Hello all,

 

I am adding different positions belonging to a document from the itab and calculating the percentage based on the percentage amount from another document.

 

I am using here at new docnr

                         sum

 

then respective calculations.

 

The above is working fine with one document, but when there are more than one document with additional positions, it is not doing the calculations correctly.

 

is there any other way other than at new and sum? that we can use to sum itab columns.

 

thanks,

Kumar

Detect print preview in smartform

$
0
0

Hello people,

I created smartform and report which calls it. When I am calling this form from report, there is a window with parameters: number of copies, printer,... and two buttons - print preview and print.

 

How I could detect in report which is calling this form, that there is print preview or print action? When using output using NACE, there is a form ENTRY using us_screen (xscreen). This is not accessible when calling form directly from report (without NACE).

 

Could you, please, give me some advice how to recognize print preview or print action in this case? I went through a lot of forums and didn't get any answer.

 

Thank you a lot.

 

David


infoset not being generated - SQ02

$
0
0

Hello Experts,

 

I have made simple code modification to an infoset created with SQ02, but the changes are not getting applied. This infoset is used in a Z Query, which is assigned to a transaction code.

 

So I have,

 

infoset zinfo

query zmmquery

Transaction zexquery

 

I made a couple of changes through the editor in SQ02. The problem is that when generating my infoset in SQ02 I'm getting the message that it was generated successfully, however, if I execute the transaction in debug mode this changes are not taken into account (I mean i still do not see my changes). If I try to execute a test whithin SQ02 the changes are not taken into account either.

 

Any ideas on how to get this generated properly?

 

 

Thanks in advance and regards!!

Emanuel

Featured Content for ABAP Development

$
0
0

ABAP in Eclipse: Why Eclipse wins?

http://scn.sap.com/profile-image-display.jspa?imageID=17269&size=72 What makes working with ABAP in Eclipse more efficient as in SE80? In this blog, Adam Krawczyk shares his practical experience with ABAP Development Tools giving handy tips and advices for optimal usage.April 11, 2013

 

ABAP Code Modularization: Lesson Learned

http://scn.sap.com/profile-image-display.jspa?imageID=3669&size=72It can’t be all Objects all the time! In this blog, Otto Gold shares tips and best practices on how to structure program code depending on the situation. Mine through the comments section and you’ll find more nuggets of wisdom. Mr. Gold provides more nuggets in “My "light" tricks for building more "robust" ABAP code.”March 22, 2013

 

How to Create a Watch Point for a Field Symbol in the ABAP Debugger

http://scn.sap.com/profile-image-display.jspa?imageID=2562&size=72 You can’t create a watch point for a field symbol. You'll get an error. 

 

Try telling that to Brian O'Neill, who said, “Even though I received an error, I do not like being told what I can't do in SAP, so I decided to find a way!” March 18, 2013

 

ABAP for SAP HANA Fitness Contest at DSAG Technology Days

http://scn.sap.com/profile-image-display.jspa?imageID=3662&size=72SAP Mentor Tobias Trapp writes about the ABAP for SAP HANA Fitness Contest at DSAG Technology Days. There 20 customers and partners had the chance to get early insights into what ABAP development on SAP HANA as primary persistence means. March 4, 2013


 

OOALV

$
0
0

Hi All,

 

My requirement is to get the cursor on ALV Grid.

I wrote the following code but its giving only focus in ALV cell not the cursor.

 

How to get the cursor in ALV Cell like field in the module pool SET CURSOR FIELD.

 

Below is the code I wrote but I am not getting the focus on perticuler cell, not the mouse cursor.

 

Please solve my problem.  

 

DATA: lt_cell TYPE TABLE OF lvc_s_ceno.

  DATA: lwa_cell LIKE LINE OF  lt_cell.
  lwa_cell-col_id = 6.
  lwa_cell-row_id = 1.
  APPEND lwa_cell TO lt_cell.



  CALL METHOD go_grid->set_selected_cells_id
    EXPORTING
      it_cells = lt_cell.

  call method cl_gui_cfw=>flush.

*
*  DATA :  wl_is_row_id TYPE lvc_s_row,
*        wl_is_column_id  TYPE lvc_s_col,
*        wl_is_row_no  TYPE lvc_s_roid.




*
*  wl_is_row_id-index = 1.
*  wl_is_column_id-fieldname = 'CHKB'.
*  wl_is_row_no-row_id = 1.
*
*  CALL METHOD go_grid->set_current_cell_via_id
*    EXPORTING
*      is_row_id    = wl_is_row_id           " Row No
*      is_column_id = wl_is_column_id   " Column No
*      is_row_no    = wl_is_row_no.        " Row No.
*
*  DATA : lw_cells TYPE lvc_s_cell,
*         lt_cells TYPE TABLE OF lvc_s_cell.
*
*  lw_cells-col_id = 6.
*  lw_cells-row_id = 1.
**  lw_cells-value  = 'CHKB'.
*  APPEND lw_cells TO lt_cells.
*
*
*  CALL METHOD go_grid->set_selected_cells
*    EXPORTING
*      it_cells = lt_cells.

*    DATA : lw_cells1 TYPE lvc_s_ceno,
*         lt_cells1 TYPE TABLE OF lvc_s_ceno.
*
*  lw_cells1-col_id = 6.
*  lw_cells1-row_id = 1.
**  lw_cells-value  = 'CHKB'.
*  APPEND lw_cells1 TO lt_cells1.
*  CALL METHOD go_grid->set_selected_cells_id
*    EXPORTING
*      it_cells = lt_cells1.

ST03 Data Retention Time Settings

Classification search for no-entry characteristic

$
0
0

I am trying to determine if this is even possible.  We want to be able to search for objects that have no-value specified for a specific characteristic. 

I have not been able to find a way to do this and am beginning to think it may not be possible.

 

Is this possible via CL30N or even better via 'BAPI_CLASS_SELECT_OBJECTS'

 

Thanks

Viewing all 8332 articles
Browse latest View live


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