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

I have one internal table which have 400 records ,i need to group these records in set of 10 records .

$
0
0

for example:

ID value

2 100

1 95

3 90

4 85

6 80

7 75

8 70

10 65

9 60

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

Total : 720---------------------------------------1st group

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

11 59

13 58

12 55

14 54

15 52

18 51

16 50

17 49

19 40

20 39

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

Total : 507 -----------------------2nd Group

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


ALV display in reports displays gibberish

$
0
0

hello all

one of our users, whose logon language is english, has display problems in ALV reports such as transaction ME5A

here is a screenshot: any idea?

IW81 - Create refurbishment order - BAPI/FM

$
0
0

Hi all,

 

is there a BAPI or function module available where I can create refurbishment orders?

 

I have tried the FM BAPI_ALM_ORDER_MAINTAIN.

 

But there I get the return message: "Refurbishment orders cannot be processed using BAPIs"

 

Is there another FM where I can create these order types?

 

regards

Arabic invoice smart form print issue.

$
0
0

Hi All,

 

I have developed an Arabic invoice Smartform, I am able see the PDF print preview properly in /dbm/order03.

 

but after successful print I found Arabic letters printed with space.

 

I have used the below.

1) Device type: ARSWIN

3) Printing logon language : English

 

Please let me know Is there any thing with character format  or paragraph format.

 

Thanks in Advance.

 

Siva

 

 

 


MASSN Logic in ABAP HCM

$
0
0

Hi Team,



We would like to display the number of leave (Other / Pl Leave of employees) on the basis of MASSN status. If employees is confirmed, s/he is eligible for Other Leave =12, if not confirmed then Other Leave =06.

 

 

We have multiple field entry in MASSN in different BEGDA & ENDDA. On the basis of this we would like to display the status & finally display of leave.

 

Please suggest the logic.

 

Regards,

Rakesh

Dynamic itab as output/export parameter in RFC FM

$
0
0

Dear Experts,

 

Can anyone help me in how to define dynamic itab as export parameter in RFC FM.

 

My scenario is as below.

 

I have two import parameter to FM and based on import parameters output will vary.

 

For 1st import parameter, the output will have 97 Columns

For 2nd import parameter, the output will have only 2 columns.

 

This requirement is for consuming webservice methods. In the output of the RFC FM, i need Field name, field value.

Pls help me achieve this requirement.

 

 

 

Thanks

Santhosh

CIC0 message issue using BOR object.

$
0
0

Hi All,

I have a requirement in R/3 : In CIC0 send BP number to sxmb_moni , when user will enter BP number & will go to info section in right & will click GIS button.

 

 

This configured in EWFCO (zero) tcode.

Behind this one CUSTOM bor object & one method is there,

Method using one BAPI.

BAPI contains outbound proxy code.

 

Issue is: BP is successfully going to SXMB_MONI,but they want a INFORMATION messages when BP going.

I have written code in BOR & BAPI , but it is not showing.

 

Anyone knows How to show messages here i.e CIC0 ?

 

Thanks

Gourav.

ME22n PO item updation

$
0
0

Hello,

 

My requirement is that if I make change to one of the Z-fields of a PO item then I need to make those changes in all items of that PO.

 

I am unable to find the place where I can make these changes.
I have checked in post method of badi 'ME_PROCESS_PO_CUST' and also checked customer exits for enhancement 'MM06E005'. but could not do that.

 

Kindly let me know if someone has any idea.

 

Regards,

Suchender


ALV - Conditional Decimal in ALV column

$
0
0

Hello All,

 

I need to display data like this in ALV column :

 

100

100.67

489.90

200

 

How to remove decimal fields for certain rows only? I need to sum them too. So can not write using character/ string.

Call report painter from abap program

$
0
0

Hi Guru,

 

I am new in Report Painter.Can I call report painter report from ABAP executable program ?

 

Please help!

 

Regards,

 

NP

How to use user exit EXIT_SAPLMV01_002 with multiple extensions?

$
0
0

Hey,

 

 

I have two extensions on MATMAS: ZMATMAS_P1 and ZMATMAS_P2, each containing different z-segments. Partner 1 has to receive ZMATMAS_P1, partner two has to receive ZMATMAS_P2.

 

 

The problem is in user exit EXIT_SAPLMV01_002 where we fill the z-segments. How do I determine the value of IDOC_CIM? I need something like this:

If partner = partner1.

  fill z-segments for ZMATMAS_P1

  idoc_cim = 'ZMATMAS_P1'

elseif partner = partner2.

  fill z-segments for ZMATMAS_P2

  idoc_cim = 'ZMATMAS_P2'

endif.

 

 

But nowhere I'm finding the partner so it's not possible to do this. Does anyone has any solution? Thank you.

DMS Upload Problem

$
0
0

Hello Experts,

 

I have to this code

 

ls_doc-documentnumber = doknr.

ls_doc-documenttype = dokar.

ls_doc-documentversion = dokvr.

ls_doc-documentpart = '000'.

ls_doc-statusintern = 'W1'.

ls_doc-description = 'Testing document'.

ls_doc-username = sy-uname.

ls_doc-validfromdate = sy-datum.

ls_doc-laboratory = '001'.

REFRESH lt_files1.

CLEAR lt_files1.

 

         lt_files1-storagecategory = 'SAP-SYSTEM'.

         lt_files1-docpath = p_file.

         lt_files1-wsapplication = 'PDF'.

*        lt_files1-description = 'Testing document'.

         lt_files1-originaltype = '001'.

*        lt_files1-checkedin = 'X'.

         APPEND lt_files1.

         CLEAR lt_drat.

*        REFRESH lt_drat.

 

*        lt_drat-language = 'EN'.

*        lt_drat-description = 'Testing document'.

*        APPEND lt_drat.

 

         CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'

           EXPORTING

             documentdata         = ls_doc

*           HOSTNAME             =

*           DOCBOMCHANGENUMBER   =

*           DOCBOMVALIDFROM      =

*           DOCBOMREVISIONLEVEL  =

*           CAD_MODE             = ' '

*           PF_FTP_DEST          = 'SAPFTPA'

*           PF_HTTP_DEST         = 'SAPHTTPA'

*           DEFAULTCLASS         = 'X'

           IMPORTING

             documenttype         = lf_doctype

             documentnumber       = lf_docnumber

             documentpart         = lf_docpart

             documentversion      = lf_docversion

             return               = ls_return

           TABLES

*           CHARACTERISTICVALUES =

*           CLASSALLOCATIONS     =

*            documentdescriptions = lt_drat

*           objectlinks          = lt_drad

*           DOCUMENTSTRUCTURE    =

             documentfiles        = lt_files1.

*           LONGTEXTS                  =

*           COMPONENTS                 =

       ENDIF.

 

       IF ls_return-type CA 'EA'.

         ROLLBACK WORK.

         MESSAGE ID '26' TYPE 'I' NUMBER '000'

         WITH ls_return-message.

 

         CLEAR ls_return.

       ELSE.

 

         COMMIT WORK.

         CLEAR ls_return.

 

       ENDIF.



This code is able to create a CV01N entries, but it is unable to upload the files, plzzzz help me is there anything additionaly i have to pass.


Thanks and regards


Karthik

how to add screen below of item in iw51 with three custom fields and it should be updated in Ztable how to do this ?

$
0
0

how to add screen below of item in iw51 with three custom fields and it should be updated in Ztable how to do this ?

Bapi creating empty spool

$
0
0

Dear all,

 

I have made a program to create an HANDLING UNIT number from a bapi_hu_create. its working good but after generating HU number its generating an empty spool. I even debug the bapi but not able to get how spool is getting triggered from it.

 

Please let me know if someone knows the solution of the empty spool problem.

 

Regards,

which event will be triggered on selecting the checkbox after maintaining layo-sel_mode = 'D'

$
0
0

Hi all,

        i am having two grids side by side i am using lvc_s_layo-sel_mode = 'D'   for selection checkbox now if i select the check box of first grid which event will be trigerred so that based on that i can display item details in the other grid.

 

                  i even accessed protected method CLICK_ROW_COL but it is also not triggering.any help?


Unable to Change the Order Qty VA01/VA02 based on shipping Condition

$
0
0

Hi All,

 

My requirement is, when ever Shipping Condition changes in the Header->Shipping, the order qty should also be changed based on Z-Table entered quantities and the same ordered qty should reflect at Schedule Lines also.

 

So for this I used MV45AFZZ->userexit_move_field_to_vbak & userexit_move_field_to_vbap and I am facing problem that the Ordered Qty field becomes un editable.

So please help me to achieve this.

 

Cheers,

Bharat

How to generate generic internal table output in a FM using Field Symbols

$
0
0

Hello all

 

I will try to explain my requirement here.

 

I want to create a (RFC) function module which accepts a couple of input parameters and update an internal table which can be called by another FM.

 

Here is my FM (changed something for privacy purpose):

FUNCTION ZFM_TEST.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(PARAMETER1) TYPE  SOMETHING "changed for the SCN discussion
*"     REFERENCE(PARAMETER2) TYPE  SOMETHING
*"  TABLES
*"      IT_OUTTAB
*"----------------------------------------------------------------------   DATA: TAB_NAME TYPE STRING.   DATA: R_TABLE TYPE REF TO DATA.   FIELD-SYMBOLS: <TAB> TYPE STANDARD TABLE.   FIELD-SYMBOLS:  <WA_TAB> TYPE DATA.
" some code to know the table name based on import parameters   CREATE DATA R_TABLE TYPE TABLE OF (TAB_NAME).   ASSIGN R_TABLE->* TO <TAB>.   CREATE DATA R_TABLE LIKE LINE OF <TAB>.   ASSIGN R_TABLE->* TO <WA_TAB>.   SELECT * FROM (TAB_NAME) INTO TABLE <TAB>.   IT_OUTTAB = <TAB>.
ENDFUNCTION.

My code successfully populates <TAB>. I need to update the records in that <TAB> in the IT_OUTTAB. The code fails at line IT_OUTTAB=<TAB>. I have also tried GET REFERENCE statement but that fails too.

 

I have searched a lot of field symbols and internal table and dynamic internal table but nothing is providing me the desired result.

 

My requirement is that whatever fields and records are there in <TAB>, the same thing gets replicated in IT_OUTTAB. When I call this FM and pass parameters, I should be able to get IT_OUTTAB filled for subsequent processing.

 

My apologies if I could not search correctly. ABAP is not my core skill. Some links that I tried:

**************** - Dynamic Internal Table

Google

Google

Google

 

Hope the requirement is clear.

Problem implementing OSS Note 1846506 - Colombia Legal Change for Withholding Tax adjustment

$
0
0

Hi masters, im implementing the SAP OSS Note 1846506 but i have the next error:

 

 

Problem.jpg

 

I already review all the note steps and i realice all the steps correctly i dont know if i can continue or what can i do. the problem is with the class CL_WT_SETTLEMENT_VENDORREBATE method IF_WT_SETTLEMENT_VENDORREBATE~ADD_TAXAMOUNT, please can you help me to review in your system what information is in this method to review what happened in my system

 

And what problems i have if i continue implementing the SAP Note?

 

thanks.

pop up message for F-43

$
0
0

Hi All,

 

In tcode F-43, after entering the details if hte user hits enter it should display a pop up information message "Multiple bank accounts available for this Vendor ! "

 

I have followed the same steps as in the below link. But from F-43, But it is not triggering my code. Am I missing any other configuration. Please help me.

 

Adding Validation to F-43

 

GGB0-> created a Validation.

 

ggb0.jpg

ggb0.jpg

ggb0.jpg

Go back ad clicked on Form builder, it is showing Rules

ggb0.jpg here.

 

 

OB28->

ggb0.jpg

In my system there are two programs ZGGBR000 and ZGGBS000. I have added the below code in both the programs.

 

  exits-name  = 'U128'.

  exits-param = c_exit_param_none.

  exits-title = text-128.

  append exits.

 

form u128 changing account.

 

 

  types : begin of ty_lfbk.

          include structure lfbk.

  types : end of ty_lfbk.

 

 

  data : t_lfbk type table of ty_lfbk.

  data : w_lines type i.

 

 

  select *

        from lfbk

        into table t_lfbk

        where lifnr = bseg-lifnr.

  if sy-subrc = 0.

    describe table t_lfbk lines w_lines.

    if w_lines gt 1.

      message i000(zfi) with

                 'Multiple bank accounts available for Vendor !'.

    endif.

  endif.

endform.

 

 

Thanks,

Haritha

Upload and download Code Inspector variants via XML

$
0
0

Code Inspector variants are technically saved as ABAP programs using data clusters,variant.png

 

This makes it difficult to move the data between systems, and tell what exactly the variant contains without installing it. The project https://github.com/larshp/upDOWNci tries to address this issue by allowing upload and download of Code Inspector variants in XML format. It analyzes the ABAP code inside each check to determine the structure of the check settings and exports it to XML, the checks must  use class attributes with direct data dictionary for this to work, most of the checks use this approach, but expect errors and bugs in the program.

 

Start the program via report ZUPDOWNCI,

selection.png

and enter the variant, this will upload or download the variant to the frontend PC. Leave username blank for global variants.

 

Downloaded XML files will look like the following,

example.png

 

Upload will show a log for the imported check variant. The check variant will be created if it does not exist, and add additional settings to existing check variant if the check version in the XML matches the check version in the system.

result.png

 

Project page: https://github.com/larshp/upDOWNci

Issue list: https://github.com/larshp/upDOWNci/issues

Viewing all 8332 articles
Browse latest View live


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