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

Calling FF.5 through zprogram

$
0
0

Hi All,

 

I have a requirement, according to that I have to pick file from desktop change its format and pass it on to FF.5

I have used gui_upload to pick and converted the file in an itab. Now how do I pass this itab to FF.5 in my zprogram?

 

I  tried

 

  Submit RFEBKA00

    WITH

     SELECTION-TABLE iout

      and return

 

But this gives me a dump. PERFORM PARAMETER TOO SHORT.

 

Any help please.

 

Thanks!


Smartform page break issue.

$
0
0

Dear frnds,

 

     how to move table header in smart forms to next page when table start and page break occurs at same time.

Smartforms: 2nd page mainwidow problem

$
0
0

Hi Friends,

 

In smartforms, I've print the header details in first page and item details in second page.

In my case, the 2nd page mainwindow is not displayed. If i change the mainwindow as secondary window then it displays the data.

I'musing COMMAND statement in the first page to display the second page.

 

Thanks with Regards,

Vallamuthu M

How to run yreport based on condition?

$
0
0

Dear Experts,

 

I have one requirement  to run yreport in background based on condition.

 

For example:

 

if wa_itab-a is intial.

 

The program should run after 30 Mins  (untill wa_itab-a is not initial)

 

Endif

 

It is possible?

 

Thanks in advance...

Link between Appropriation Request No. & Work item id (linked Workflow)

$
0
0

Hi everyone,

 

I have a requirement to display all the comments and list of attachments linked to a workflow against a Appropriation request number. i.e. I want a link between Appropriation request number and the workflow linked against that AR. Independently I have the table for workflow (SWWWIHEAD) and AR (IMAK) but is there any link between these two ?? Please help folks. 

Preparing video tutorials and calling from SAP tcodes

$
0
0

One of the difficult things about learning any new software system is understanding how to use it. SAP is no exception, especially custom tcodes which each customer organization develops based on their custom requirements. To know about standard SAP tcodes, we can SCN-SAP it or GOOGLE it. But for the custom tcodes, unless the ABAPer/Functional guy prepares a pretty decent user manual, it becomes difficult for the end-users to understand how to use them. Also end-users/clients tend to forget how to use a tcode if they don't use it often.This prompted me with an idea of developing video help tutorials for tcodes. I have made use of open source software CamStudioto prepare video tutorials and linked it to the tcodes.

 

Steps:

1) Start the recorder and create demo of the tcode by simulating user actions.

2) Once the complete demo is over, stop the recorder and the video will be saved as an .avi format file.

3) Using the SWF producer that comes with the above software package, convert the .avi format file into flash file .swf.

    Flash files are comparatively smaller in size and can be viewed clearly using a web browser.

4) Once the flash file is prepared, host it in a document server and link it to the Z tcode (Eg:.via a button/hyperlink) by making use of the following function:

      CALL FUNCTION 'CALL_BROWSER'

         EXPORTING

           URL                               = 'URL of the flash file'

         EXCEPTIONS

           FRONTEND_NOT_SUPPORTED = 1

           FRONTEND_ERROR                   = 2

           PROG_NOT_FOUND                  = 3

           NO_BATCH                                 = 4

           UNSPECIFIED_ERROR             = 5

           OTHERS                                    = 6.

 

Sample screen shots of CamStudio software and a video recorded using it:

 

1) CamStudio software screenshots

A.jpg

 

2) Calling video URL on button click

A.jpg

 

3) Screen shots of a recoded video

DEMO1.jpg

DEMO2.jpg

DEMO3.jpg

DEMO4.jpg

 

BENEFITS:

* This will easily teach the end-users compared to lengthy user manual documents.

* This will be very handy for facilitating change in the mindset of users on migration from legacy systems to new SAP implementation.

 

Cheers,

- K.Arun Prabhu.

Is there a way to handle system exception ERROR_MESSAGE?

$
0
0

Hi,

 

I have a program executed in background, which produces a bunch of consecutive documents for a set of Bulk Shipments -> TD Loading and TD Delivery Confirmation. To create those documents I use function modules 'OIGI_LOADING_CREATE' and 'OIGI_DEL_CONF_CREATE'  - both from Industry-Solution Oil-and_Gas (IS-Oil).

In some cases these FM-s produces error messages (E-type) which cancel execution of the program and broke my flow-logic.

Below are few messages recorded in a job log for my task:

 

18.08.2005 15:56:41 Job started                                                                         

18.08.2005 15:56:41 Step 001 started (program /PTRL/TAS_POSTPONDED_SYNC, variant , user name IMUTAFCHIEV)

18.08.2005 15:56:58 Shipment 180753 saved                                                               

18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV                    

18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV                    

18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV                    

18.08.2005 15:57:06 Job cancelled after system exception ERROR_MESSAGE                                  

 

Both function modules are not designed to handle any exceptions, and in owr environment (4.6c) there is no documented system exception 'ERROR_MESSAGE' which to be handled in CATCH-ENDCATCH block.

 

Is there a way to handle this exception and to track the list of error messages produced by some FM into an internal table, log, whatever, as it is done in the log of the background job. I need to find a way write these messages in my log-tables and to proceed further with my flow-logic.

 

FYI: my program executes an RFC call to a remote system and retrieve a list of documents which need to be synchronized with R/3. I loose information, if the R/3 broke my flow-logic.

 

Any help would be highly appresiated.

Many thanks in advance.

 

Ivaylo Mutafchiev

Issue in coping stanard program for PP61 (Change Shift Planning)

$
0
0

Hi Team,

 

For one of our requirement, I have copied the PP61 (Prog name : SAPFH5AH) to ZPP61 (Prog name : ZSAPFH5AH) and made changes accordingly.

 

But some stanard functionality stopped working.

 

After analysis, I have found that at many places program name is hardcoded and also it is calling another Function group, which custom program is unable to call.

 

The main issue is that while calling many forms, it is passing standard prog name instead of custom one.

 

Hence most of global tables are emply.

 

 

For ex

 

In one of include FH5AHF00_GET_MARKED_EMPLOYEE  

 

                                         CALL FUNCTION 'DYNP_VALUES_READ'

                                           EXPORTING

                                             dyname               = 'SAPFH5AH'

                                             dynumb               = i_dynnr

                                             translate_to_upper   = 'X'

                                           TABLES

                                             dynpfields           = dynprofelder

                                           EXCEPTIONS

                                             invalid_abapworkarea = 1

                                             invalid_dynprofield  = 2

                                             invalid_dynproname   = 3

                                             invalid_dynpronummer = 4

                                             invalid_request      = 5

                                             no_fielddescription  = 6

                                             invalid_parameter    = 7

                                             undefind_error       = 8

                                             OTHERS               = 9.

 

Also it is calling perform of another stanard Funt group : SAPLRHEI

 

FH5AHF00_ARRANGE_DATA_FOR_EXPO   

 

PERFORM export_person_record_index(saplrhei)
                       TABLES person_record_index_tab.

 

Please suggest what is best way to handle this situation.

 

I have tried to copied many includes and then change the name.

 

Please suggest.

 

Warm Regards

 

Krishan


Subtitle in alv report

$
0
0

Dear all,

   i am creating an alv report i want to create a subtitle in alv header is it possible???????????????????

for eg.

 

sub1

sub2
mark1mark2mark3mark1mark2mark3

Here Sub1 is my perent title and mark1 mark2 and mark3 is its child title .............

IF Statments or Condition Statements in GUIXT

$
0
0

Hi guys,

 

I am relativley new to GUIXT I was wondering if there is a way to have an if statement in GUIXT.

 

Example if a value of a particualr field Customer = 100050, another field value will be set.

 

Thanks guys and good day.

Need help with excel vba to run R/3 and APO both with the same macro

$
0
0

I am trying to make my existing excel vba macro that works fine with R/3 already, also switch windows to manipulate an APO session that I have already logged into

.

How do I select/change the SAP window that the macro is controlling?

 

Any help or advice would be greatly appreciated!

 

Mike

Script Form - Address Paragraph - City Field Contrain Problems

$
0
0

Hi All,

 

I'm using Script Form with Address Paragraph that by using <CITY>. <CITY> seem have character limitation which will truncate the extra character. Please guide me if you face the same problems or some input is appreciated.    

 

Source Code

 

 

Test Out with Short City 1  + City 2 Text

 

 

Test Out with Long City 1  + City 2 Text

 

 

 

P/S :I'm New to Script Form.

 

Regards,

Trevor Wong.

add rows in table control

$
0
0

Hi Gurus,

 

I want to add new row into my table control.In table control I am using Zee table as refrence for lines.

If I clickk add button then 1 row enabled in the table control.

 

thank u all in advance.

Bhuvana

how to delete material,fl,equipmenr from sap

I have a Custom T-Code with type-Transaction with parameters(Parameter Transaction), How can I have to copy this to new program?

$
0
0

Sap Gurus,

 

I have a Custom T-Code with type-Transaction with parameters(Parameter Transaction).

Now my requirement is to copy the existing program & i need to do some changes, So How can I have to copy this to new program?

What is the purpose of Transaction with parameters(Parameter Transaction).?

Below are the screen shots:

 

 

 

 

 

Thanks

Shabareesh


How to use parallal cursors in the place loop with in the loop

$
0
0

Hi Experts,

 

                In my report there are having loop within the loop statement  so that it is taking so much time to execute the report and i have to increase the performance of the report so that my team lead suggested to use parallel cursors so can u help me how to use parallel cursors in report.

Screen Exit for Service order operations

$
0
0

Hi Gurus,

 

I have a requirement in which I need to add around 24 custom fields at operation level in t-code IW31/IW32/IW33. For each order operation user will enter the data in the custom fields. I didn't find a screen exit at operation level. Could you please let me know if there is any screen exit to add the custom fields at operation level.

 

Waiting for your valuable suggestions.

 

Thanks in advance

 

Regards,

Neelesh

Display Header and items under header level, Header should be editable

$
0
0

Our requirement is to display an ALV with header items and various line items under that header.

Also the Header should be editable.

Tried to set EDIT = 'X' in field catalog, but the FM REUSE_ALV_HIERSEQ_LIST_DISPLAY does not accept it.

Is there any way to achieve this through OOPS (no module pool programming)???

Return Order creation with reference to Billing Doc

$
0
0

Hello Experts ,

 

     I want to create a  Function Module for Return Order Creation with reference to Billing Document .   For this , Which Standard BAPI we need to include to pass the Parameters of Billing Document Information,Invoice Number . And what are the Mandatory Parameters to pass in creation of Return Order . Could Anyone please Update me...

 

 

 

 

 

      Appreciate your help.

 

 

 

 

 

 

 

 

 

Thanks,

Uday.

Abap function of a material stock

$
0
0

Hello,

 

would need to know if there is any function that returns the stock of a material on a specific date such as stock material to 16/03/2013

 

 

Otherwise, how could calculate the stock of a material to a specific date?

 

 

thanks in advance

Viewing all 8332 articles
Browse latest View live