Quantcast
Channel: SCN : All Content - User Interface Development in ABAP
Viewing all 540 articles
Browse latest View live

Create Dynamic documents without screen.

$
0
0

Is this possible ?

 

Create a dynamic document (CL_DD_DOCUMENT) without creating any screen.

 

Thank you.


Floorplan manager - Subview ID

$
0
0

Hello Experts,

 

I am not able to rename the subview id, long string gets auto generated while saving the configuration.

 

BUS_WKSP_822B59D9EF031EE5D67G54F89CB532CF

My requirement is have subview id of less than 10 char to use somewhere in the SPRO configuration.

 

I don't want red long string in my subview id.

 

Anyone come across such situation, any help would be appreciated.

 

 

 

Thanks,

Sangeeta

ALV Graphs : An Accidental Discovery

$
0
0

ALV Graphs: An Accidental Discovery

 

Foreword

This feature discussed here is applicable to ALVs of custom programs developed through SAP Queries or ABAP codes using fm like 'REUSE_ALV_GRID_DISPLAY'.


The Story

The author have been exploring the ALV graphs since some-time and the graph pictures were used in presentations. One issue was always haunting was about Saving the Graph settings after configuring.  A graph configured for several features like Custom Titles, Show Values, Grid Lines, Modified Chart Types etc. I wasn’t able to save.the settings, except for taking a screen-capture. The next attempt, when I again clicked on ALV Graph icon, I had to start from scratch to have all my desired features listed above.

 

Years ago I’d posted this issue for help in SCN with title ‘Saving Graph Settings in ALV'’ . But I could not receive any replies having solutions and this issue remained unresolved for us. I had been reluctant to accept that SAP had not addressed this aspect of ALV Graphs.

 

Few days ago, we received specifications for a new report on Equipment performance, the ALV of which should be suitable for Graphical representation. We made it and were testing to show it to the customers (End-user). In fact our End-users too accustomed to configure graphs everytime and then take picture to use it in the presentations. (Due to the issue discussed above).

 

Then One day an invention sort of thing happened (atleast for me)

That was the time we were showing the new report to the customers. I had put the values in Selection screen, clicked on Execute button and waiting for the display of ALV report, and thinking about the next step of Configuring the Graph.  I almost shouted with word 'Wow'  to see the thing system presented instead ALV grid values..... The previously Configured Graph was in front of me instead of ALV grid display. The immediate reaction was 'What is happening?'  I had executed the report again and got the graph as output. It is confirmed that the Graph settings made previously are saved. A feeling of Great Discovery...But the question was How this happened? ,, The thing waited for years is appearing all of a sudden in front.

 

During that meeting itself I could understand what happened and could reproduce this effect.  The customers too were immediately made aware of this and told that now on they need not configure the graph everytime..in other words they can save the configured graphs. I’m sure members want to know what was that simple but highly significant Knowledge Piece, the knowing about which took years for me.

 

Before coming to that, I’d like to tell about the reason I believe about why this simple thing has a great probability of remaining unexplored.

  • When we click on Graph icon in the Application toolbar, the Graph appears as a pop-up window on the ALV screen,
  • Our thorough experience about pop-ups in SAP and likely mindset developed out of this, is such that we never try to click the icons behind the pop-up, i.e., the icons of the ALV screen here,...Why? ......because, we know that they will not be accessible until the pop-up is closed. This is the usual experience about pop-ups, Isn’t it?

 

But, here it isn’t like this...

Without closing the Graph pop-up window, you can access the ALV application toolbar icons. What happened was unconsciously I had clicked on 'Save Lay-out' icon on the ALV screen and saved the Layout (into Default Layout) while the Graph window was open.

So that was the secret. If the icon is behind the Graph, move the Graph window below, so that Application toolbar is visible to you, click on Save Layout icon, Give a name and Save.

 

After this, I configured several Graphs in the same ALV screen into Layouts with different chart types . I had restored my Default Layout not to display Graph.

blog1.JPG

Now, when I execute my program with Default layout, ALV grid report appears. If I want to show this information in pre-configured Graphical format, I select layout from above list whereby my fully configured graph appears instantly. I need not tell the readers that, If we want direct Graphs upon execute, then Selection screen variants can be created using these Layouts.

 

It is very likely that few members across different spaces knew about this, but for me unable to reach this information for quite sometime, this is a great relief and not a small discovery. Now we are able to show the graphs directly from the system itself.

 

Hope this post serves its intended purpose of scatter knowledge across SCN.

Useful Related document:Explore ALV Graphs

 

 

Thank you

Jogeswara Rao K

Automatic user locking and logout then unlock process.

$
0
0

Dear Sap Gurus,

 

We have a requirement that we need to lock particular users at some particular time and kill the logged in users from the system ,

then we need to run our scheduled process and after completion the process, we need to unlock the users.

 

We tried to find some tcode or program but we are unable to find that.

 

Please suggest.

 

Regards

RJ

ALV Tree: match node to object reference

$
0
0

Hello,

 

could anyone help me with matching the node shown in the ALV tree with the object reference that contained the data.

In my program I create a hierarchie of objects of different local classes. Then I show this hierarchie using cl_gui_alv_tree on the UI. When someone clicks on one of the nodes I want to show more attributes of the object that is represented by the node. My problem is that I do have a node_key but no way to find out which object the node represents. Is there any way to match the two?

In a different programming language they solved the problem this way: Every node has an attribute called "data" where I can put in whatever I want, for example a reference to an object. Is there any such thing in ABAP or is there any other best practise on how to match the data source withe the node showing the data?

 

Thank you in advance.

Best regards,

Fenja

MIRO select all column items on PO Reference tab

$
0
0

I have a user running 4.6C that wants to select all items in a specific column at the same time rather than having to select each one individually.  I have found the documentation to change the column sequence but I can not find anything regarding how to do this.  Is there a way to do this other than creating a customized user exit or ABAP code?  Thanks

How to trak button content?

$
0
0

Hi Expert!,

                  in step loop i have created 6 buttons and i'm printing PO  number on the button insted of button text(Purchase order is printed as text label).Now i have been asked to retrieve the PO from selected button. I'm unable to retrieve value(PO number),where as if i would have taken input output field, I could retrieve PO number  easily through GET and Set CURSOR.

button b1      0000000045 (on button as text in step loop)

button b2      0000000046

button b3      0000000047

 

Now please help me out .

 

Thanks In Advance.

how to trigger dropdown list click in editable alv?

$
0
0

I have an editable alv - and wehn a certain field is changed - I want to force the user to update a 2nd field, which is filled via a dropdown list.

 

Ive trapped the change of the first field, in the handle_data_changed method, but need to from there - call an event to simulate a click onthe 2nd dropdown field, and can not figure out how to do that. the method modify_cell wont work as it expects a value to be passed in and I need to use my dropwdown.

 

How is this done?

 

Do I have to change it from a dropdown to an f4 event? I woudl really rather not.


Reg: problem with Vertical scrolling in module pool table control.

$
0
0

Hi experts,

 

I am currently facing trouble with table control Vertical scrolling. But table control working fine for horizontal scroll bar. i have tried all the attributes. But i am not succeeded.  Please suggest me and provide valid inputs.  surely awarded for the right answer.

 

 

Regards,

Sreenivasa sarma

Data validation in maintenance view

$
0
0

I have a maintenance view which is just simply a projection of a database table.

I'm trying to add a validation before user save the data, what I have done is add a standard event by using 'Table Maintenance Generator', there is an event 'Before saving the data in the database' which I think is proper place to do the validation.

Now the problem is if the user input is invalid, after validation and message displayed on the screen, the entry user is editing will be locked, and cannot be back to editable even you click 'Change<->Display' button, user have to back to SM30 screen and re-enter again.

The idea behavior is the screen stays and the entry is editable, user can correct his input immediately.

 

So someone can provide any advice regard this problem?

 

Thanks in advance.

Ben

CL_GUI_HTML_VIEWER: how to hide scrollbar?

$
0
0

Hi there,

 

I am using the class CL_GUI_HTML_VIEWER to display an HTML document on a dynpro.

By default there is a scrollbar on the right side of the control, even if the document is small

enough to fit completely into the area.

 

Is it possible to hide this scrollbar?

 

Thanks, Karsten

ALV SALV OOP - Number alignment

$
0
0

Experts I've been struggling with this one I have a report for Workflow approval that displays data in a ALV SALV OOP grid. The data column for field type wrbtr displays the numbers as such not aligned.

number not align.jpg

I know I could display as a char field and create a exit routing to format correctly, but the users need to use the calc functions of the ALV so my understanding is that this would not work for char fields.

 

need this to format the numbers like so as in FB03 display.

 

correct.jpg

Any help on direction would be appreciated.

Can we place a Tool Bar at the Bottom of the List GUIBB ?

$
0
0

Hi All,

 

 

I have a requirement to place buttons, Link-to-Action's at the bottom of the ListUIBB.

 

By default we will get the Tool Bar at the Top of the List, but in my requirement few actions are at the bottom.

 

 

Is it possible to place Tool Buttons at the Bottom of the LIST ?

 

 

Thanks in Adv.

 

 

Thanks,

Kranthi 

Suggest me on SAP ABAP

$
0
0

Hi

this is Uday from hyderabad ...im a B.TECH Mechanical Graduate

i'd like to Start my Carrer in ABAP ...Can a Mechanical Engineer can Undergo ABAP Training

i don't have any prior Knowledge on Pragramming Languages .....Is it Compulsary to have Knowledge in Programming Languages to Learn SAP ABAP

 

 

Plsss suggest me taking right decision regarding my CARRER

Automatic user locking and logout then unlock process.

$
0
0

Dear Sap Gurus,

 

We have a requirement that we need to lock particular users at some particular time and kill the logged in users from the system ,

then we need to run our scheduled process and after completion the process, we need to unlock the users.

 

We tried to find some tcode or program but we are unable to find that.

 

Please suggest.

 

Regards

RJ


smartforms graphic

$
0
0

Hello experts,

 

i have a graphic in smartforms and i need to 'translate' it.

If the user logged into the system with EN. It should print the english version of the graphic otherwise it should print another language and so on.

 

I've already tryed to implement Form Interface - Import - OUTPUT_OPTIONS - BCS_LANGU  or CONTROL_PARAMETERS-LANGU into my graphic Conditions. But it didn't work.

 

I already translated all the texts via SE63, that worked well but i can't find a solution for the graphics.

 

Regards,

Simon

Is that possible to add button into Logon Screen ABAP GUI;

$
0
0

Dear,

 

I want to add a button named "Password Reset" into Logon Screen under SAP GUI, and when user click the button then they will goto a website; Is there anyway to realize it; Thanks a lot

 

snap01005.png

Change of Logo in SAP Easy Access

$
0
0

Hello All

 

I am trying to change the image seen on the right side of the SAP Easy Access initial screen. I need to display my company's logo there. FOr this reason, I was going through the include LSMTR_NAVIGATIONFOE. In this include, there is a function module NAVIGATION_READ_PARAMETERS. Thsi function module, upon execution is giving me the name of initial image that is getting populated now. It is ZIDESLOGO. I want to know form where this image is getting populated. I have seen SE78 also, but there is no such image available there. I want to know where from this image is getting so that I can change the image there and I will get my own designed image. Please let me know the proces.

 

 

Thanks

M A

 

Message was edited by:

        Mohammed Ahmed

how to modify the logon page

$
0
0

Hi all

 

We have a customer who would like to change the style of logon page, and the following screenshot it the one they want to modify.

 

Capture.PNG

For some reason , they cannot use Single-Sign-On and they think this logon page is ugly, so they want us to find a way to modify this page.

this is the logon page to Sap Screen Personas(an UI product based on WebGui).

 

here is my search:

 

At first, I thought that the logon page is located in the Personas' corresponding BSP pages in SE80, and if I found it, I could edit it.  However, I did not find it there.

 

As a result , I doubt that this page is centrally maintained ,and not specific to any BSP applcations.

 

Am I guessing it right?  and if it is , then  where can I find it.

 

thanks,

Torren

Custom fields to Additional data B tab of sales order.

$
0
0

Hi,

 

I had a requirement to add custom fields to " Additional Data B " Tab of the screens 8309, 8459 for Transx VA01.

I have added the fields but it does not reflect in the transaction VA01.

I have found some OSS notes

398418  User-specific fields on header and item level

386694  Additional data not displayed in screen 8459 and 8

302497  Addit.cust.fields not displayd on 'Addit.data B'

209278  Display of customer-specific fields in sales doc

and made changes likewise, still it does not reflect in the transx VA01.

Moreover on activating the screens 8309, 8459 the status shows "Modified/Active".

 

Can anyone help me.

 

Regards,

Swati

Viewing all 540 articles
Browse latest View live


Latest Images

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