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

ALV using SALV classes problem

$
0
0


Hi ABAP gurus,

I am in need of help, I have create my ALV using SALV classes which works fine.

But when i want to export to Excel by clicking Microsoft Excel button(Ctrl+Shift+F7) on the PF-Status, it will call Excel in SAP, The header title doesnt appear unlike traditional REUSE_ALV_GRID_DISPLAY. Am I missing any steps? I do not want to change all my code back to using the FM style.

My header already appeared in top of page, but it is missing in excel. Appreciate your help here.

 

My example code for top of page:

lo_h_label = lo_header->create_label( row = 1 column = 1 text = gv_title ).
lo_header->create_header_information( row = 1 column = 1 text = gv_title ).
lo_h_label->set_text( gv_title ).

lo_alv->set_top_of_list( lo_header ).
lo_alv->set_top_of_list_print( lo_header ).

 

Many thanks!

.


column to row

$
0
0

Hi ,

 

I have the requirement to convert Columns into row in table:

 

Input file

------------

Col1      Col2   Col3     Col4 ....     .... Coln

101       102     103      104  --- ---- ----

201        202     203     204 -----------

301        302     303     304 -----------

401        402     403     404 ------------

.....

-----

In the table out put should be

 

Col1

101

201

301

401

Col2

102

202

302

402

Col3

103

203

303

403

Col4

104

204

304

404

---

----

 

Please suggest/advise how to achieve this in ABAP

Automatic Transfer posting after MIGO

$
0
0

Hi,

My requirement is Automatic Goods movement after MIGO.

I used BADI MB_MIGO_BADI~POST_DOCUMENT. but some time it done the automatic transfer posting and sometime show the lock for material or Sales order  stock SO ITEM does not exists.

 

Is there any BADI in sap system to hit after MIGO process or any way to achieve the requirement.

Customer Tab in MIGO overlapping standard excise tab .

$
0
0

Created custom tab at item level in MIGO transaction using MB_MIGO_BADI  and my problem is while executing the MIGO transaction after the implementation of BADI the standard EXCISE INVOICE tab is getting overlapped by my custom tab , So kindly help me to solve the problem ..

 

Code written under method PBO_DETAIL is

 

 

method if_ex_mb_migo_badi~pbo_detail.

 

 

   DATA : gf_class_id TYPE migo_class_id.

  DATA :g_no_input TYPE xfeld .

  DATA : g_line_id TYPE goitem-global_counter.

  DATA :gt_extdata TYPE ty_t_extdata.

  DATA : gv_inspect(42).

 

      

    gf_class_id = 'MIGO_BADI_IMPLEMENTATION _CIN'.

     e_cprog  =   'SAPMZ_MIGO_INSPECT'.

     e_dynnr  = '9990'.

     e_heading = 'Inspection Details'.

     g_line_id = i_line_id.

 

    

endmethod.

Refresh button in ALV grid display

$
0
0

Hi All,

 

How can I add a refresh button in alv display.Through that  refresh button i have to change the data time to time in the report .

 

 

Regards,

Siva jyothi

Translation of a GUI status

$
0
0

Below you can see how to translate the components of a GUI status.

 

1. Go to transaction SE41 and enter the report and the GUI status you would like to translate:6.jpg

 

2. Choose the option translation in the menu bar:

 

7.jpg

 

3. Choose the language and make the tranlsation of the component you would like to translate:

8.jpg

 

9.jpg

Add translation to transport request with report RS_LXE_RECORD_TORDER

$
0
0

When a repository object is translated it will not automatically be added to a transport request if no

further changes were made.

 

To add the translation of the object you need to run report RS_LXE_RECORD_TORDER.

 

1. Go to SE38 and execute report RS_LXE_RECORD_TORDER

 

2. In the screen enter the following data:

10.jpg

 

3. After execution of the report informs you which translations were added:

11.jpg

The translation is now added to the requested transport request:

 

12.jpg

How to create registration table hrp100, hrp1028, hrp1208 with function?

$
0
0

Hi Experts,

 

I'm trying to create records OM object and I need a function to record in hrp1000 hrp1028 hrp1208 tables.

 

I used the RH_PNNNN_MAINTAIN functions, also HR_INSERT_INFTY,

but these functions take as parameter the field Objid, Indicating that the OBJID field should be generated automatically by the function.

 

Example:

 

CALL FUNCTION 'RH_PNNNN_MAINTAIN'

   EXPORTING

     act_fcode           = 'INSE'  " AEND to modify, INSE to insert

     act_otype           = gwa_hrp1000-otype

     act_objid           = '271263'   should be generated automatically

     act_infty           = '1000'

     act_pnnnn           = gwa_hrp1000

     suppress_dialog     = '0' " you can use 0 if you want Dialog mode

   TABLES

     act_hrtnnnn         = gt_hrp1000

   EXCEPTIONS

     infty_not_valid     = 1

     no_plvar            = 2

     object_not_defined  = 3

     otype_not_valid     = 4

     no_authority        = 5

     action_rejected     = 6

     no_gdate            = 7

     fcode_not_supported = 8

     OTHERS              = 9.


Sapscript issues

$
0
0

Hi All,

 

I have this requirement to add a new page in existing Z Sapscript,I added it and its appearing in Printing test.

I have to print the last page 'Terms & Conditions' based on a certain company code.

For example:- if my company code is 'ABCD' then it should show 'Terms & Condition' page else it should appear without it.

 

Please guide me how to modify the driver program accordingly.

 

Thanks in advance.

How to access SCN in Smartphones

Can any one please help me on this RMA(Return material authorization) report

$
0
0

Hi All,

 

Can any one please tell me the relation between new RMAs /closed returns,GL account and SAP movement type.I need to develop a report by taking parameters as GL account and SAP movement type for BOH and InTransit , how to differentiate BOH and InTransit in table level and how can we check whether it is a new RMA or closed return in table level.

 

Thanks,

Anusha.

Database table not getting updated occassionally

$
0
0

Hi All,

 

As part of some requirement we have created a normal function module which calls MIRO using call transaction. After the call transaction is performed we are getting the invoice number and fiscal year using get parameter id and storing those values into our custom table for later use. Code is like the below.  The subroutine is inside the custom function module.

 

FORM calltr_miro.

  SET PARAMETER ID 'RBN' FIELD invoice_no.

  SET PARAMETER ID 'GJR' FIELD l_fyear1.

 

  CALL TRANSACTION 'MIRO'.

 

  GET PARAMETER ID 'RBN' FIELD invoice_no.

  GET PARAMETER ID 'GJR' FIELD l_fyear1.

 

UPDATE zheader SET belnr = invoice_no  gjahr = l_fyear1 WHERE <condition>

COMMIT WORK AND WAIT.

 

ENDFORM.                " CALLTR_MIRO

 

Now the problem is some times the custom table zheader is not getting updated with the invoice and fiscal year. Could help in solving the problem.Also could give some tips to use commit work and wait statements  in function modules.

 

Thanking in advance,

 

Regards,

Ram.

Delete or change rows in dictionary table in webdynpro.

$
0
0

Hi All.

 

I want to add function to delete rows from dictionary table and update or change data as well in my webdynpro application. I looked over other forums but I did not find any solution. Any valuable information or hints even some links or references to study material will be very helpful for me.

 

Thank you all and Best Regards

Images in CSS - BSP application

$
0
0

Hello everyone,

 

I am facing a problem in BSP application.

Actually, i am creating a page (with flow logic) and using the .css files in my layout like,

 

<link rel="stylesheet" href="style.css" />

<link rel="stylesheet" href="normalize.css" />

<link rel="stylesheet" href="responsive1.css" />

 

I have already imported these .css files and the images used in the MIME objects,

but the Problem is that there is an image been used in the responsive1.css which is not visible on my page at the time of execution,

Please help me out regarding this and tell me do i have to import that image somewhere else (other than MIME objects).

 

thanks,

Aayush

Hide or supress standard collective search help

$
0
0

Hi All,

 

I want to hide or suppress collective differnt search criteria and use of custom elementry search rather than standard on certain condition.

 

I am able to add search help using append but unable to hide. Hidden option is available but i need to hide on condition.

 

for Field PSPNR WBS elemenent. PRPM search help.

 

Please lt me know how to do? Is there any enhancement / exit for that.

 

Please suggest.

 

Thanks

Dipak


User Exist or BADI for F-04

$
0
0

Hi,

 

We have a requirement to insert the column check number for f-04 clearing we go the column check number in the format but the data is not flowing to that column,Kindly let us know how to get the check information (check number) to F-04 layout.

 

Are any BADI or user exist to do this?

cheers

Poorna

Capture.JPG

is it possible to do User authorization testing using SAP Ecatt?

$
0
0

    Hi guys.

 

          i am new to SAP Ecatt. i want to do authorization testing in user level.

    

          I don't have idea about Authorization testing using ECATT. Whether is it possible to do User authorization testing using SAP Ecatt?

 

     Thanks in Advance.

Runtime error in class based transaction creation

$
0
0


Hi experts,

 

I have created a global class which has a method in it. Now I want to go to se93 and create a class based transaction for my global class. However, on creating the transaction and executing it, I am getting a runtime error stating "A mandatory parameter was not populated when dyn. calling a method".  Please tell me the cause of this error and how I should rectify it. I have attached the screen shots for your reference.

 

Regards.

 

Manish.

 

Below is my class with method get_data having the following 3 parameters.

pic1.png

 

I created a transaction in se93 .

pic2.png

 

I am getting the following runtime error.

pic3.png

 

I have also attached the code for my method .

editable output field

$
0
0

hii,

 

how do you convert an output field(write statement) into an editable dropdown.

Syntax Error - Division 0 type P

$
0
0

Hi Gurus,

 

Can you help me with this? Error was Division 0 type p.

 

 

Thanks for your BIG HELP!!

 

 

untitled.JPG

Viewing all 8332 articles
Browse latest View live


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