Quantcast
Channel: SCN : Unanswered Discussions - ABAP Switching, Enhancing, and Adapting Standard Programs
Viewing all 716 articles
Browse latest View live

User-Exit Delete Button VT02N and Save Button VF11

$
0
0

Hi everyone, have a nice day.

 

I have a requeriment where we need to put a validation when the user push the delete button for the transaction VT02N and other validation when the user push the save button for the transaction VF11.

 

The question is, ¿Is it an user-exit or another way to put a "z" code to make this validation?


in RE80 tcode How to add extra folder in assignment tab for rental unit?

$
0
0

Hi Guys,

 

I've requirement to add extra(PERNR) folder/node with "Asset Assignment and Functional Location Assignment", in "Assignments" tab for rental unit in RE80 transaction code. it seems like screen enhancement. First we have to crate a folder/node to key in PERNR detail and then that node should have screen to capture the details. For your reference please find the attached screenshot.

 

Is there any BADI available for this requirement.

 

Note: Useful tips will be awarded.

 

Thanks,

K.Safiq

problem with Scroll Down of vertical scroll bar in BDC. I am using transaction VL02N to add serial numbers for delivery line items. In default mode it let's you add 20 serial numbers but i need to more than 20

$
0
0

Dear Experts,

I am having a problem with catching Scroll Down of vertical scroll bar in BDC.

I am using transaction VL02N to add serial numbers for delivery line items. In default mode it let's I add 20 serial numbers but I need  to add more then 20 . i have to scroll down the scroll bar . BDC catches the event as "BDC_OKCODE = '=RWS" but when I execute the BDC from my program it adds the first 20serial numbers but after 20 serial numbers  new page is not coming and numbers are  overlapping from 1st serial number.

is there any bapi for solve this problem ?

 

this code i am getting for page down.

 

               perform bdc_dynpro      using 'SAPLIPW1'  '0300'.

             perform bdc_field       using 'BDC_CURSOR'  'RIPW0-SERNR(01)'.

             perform bdc_field       using 'BDC_OKCODE' '=RWS'.

 

Thanks in advance for you suggestions.

 

Regards

Ztable not getting updated after reaching some limit

$
0
0

Dear Experts,

 

We are updating the ztable by scheduling background job for a customized program on daily basis. We used modify statement in the program to update it.

 

But the problem is, up to 1,11,000+ records are getting updated and remaining records are not updated. We checked the technical settings of the ztable. The following are the details  

 

Data class           APPL1   Transaction data, transparent tables

Size category       9            Data records expected: 1,200,000 to 48,000,000

 

We are unable to find the reason because, the program will take more time to execute.

 

Please suggest.....

 

Thanks

Chaitanya M

Update Ztable data at IW31/IW32

$
0
0

Dear Experts,

 

We'd like to update Ztable data at Enhancemet tab of IW31/IW32 with IWO10018.

Because we require another long text field for Work order header, LCHR field is added to the Ztable with key AUFNR.

 

To update DB, I assume that command to update should be in the IWO10009. Is this correct?

If you conceive any matters or tips, please kindly advise me.

 

Regards,

Tamaki

How to delete field from Append Structure?

$
0
0

Hi,

 

I have appended 'Z' structure with 6 fields to VBAK but business asked to remove one field from it but I am not sure about the steps can I directly delete that particular field? And do I need to do some other step to remove that field.

 

Note: 5 Fields from that append structure contain data in table and field which I want to remove does not contain any data.

 

Best Regards,

Pushkar

How to read material# from the screen when creating PO

$
0
0

I've used the exit MM06E005 for adding custom fields at header and item levels on the purchase order screens. I want to populate certain custom fields at item level based on the material number entered by the user. I tried using DYNP_READ_VALUES but the FM is giving an error all the time even when I tried passing different values for DYNAME and DYNUMB. The FM is called from different screens in different situations, so i'm not sure what value to pass for DYNNR. Once i get the value of material number entered by the user at the current line item i want to read a z-table to populate the custom fields i've added. Below is my code written in the Items PAI function module EXIT_SAPMM06E_017:

 

data: scr_fields type table of dynpread WITH HEADER LINE.

 

scr_fields-fieldname = 'EMATN'.

append scr_fields.



CALL FUNCTION 'DYNP_VALUES_READ'

   EXPORTING

 

     DYNAME                               = 'SAPLXM06'

     DYNUMB                               = '0014'

*   TRANSLATE_TO_UPPER                   = ' '

*   REQUEST                              = ' '

*   PERFORM_CONVERSION_EXITS             = ' '

*   PERFORM_INPUT_CONVERSION             = ' '

*   DETERMINE_LOOP_INDEX                 = ' '

*   START_SEARCH_IN_CURRENT_SCREEN       = ' '

*   START_SEARCH_IN_MAIN_SCREEN          = ' '

*   START_SEARCH_IN_STACKED_SCREEN       = ' '

*   START_SEARCH_ON_SCR_STACKPOS         = ' '

*   SEARCH_OWN_SUBSCREENS_FIRST          = ' '

*   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '

  

TABLES

     DYNPFIELDS                           = scr_fields

 

   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

     DOUBLE_CONVERSION                    = 9

     STEPL_NOT_FOUND                      = 10

     OTHERS                               = 11

           .

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.


Any valuable leads will be greatly appreciated.

How to add a print_layout button in custom control screen in module pool programming

$
0
0

Hi Experts,

          I have developed a report for payment proposal using ALV grid display. Now i need to add a button in the custom control menu. How could i create?

 

Thanks&Regards,

Prasanth.


translation for own transaction

$
0
0

Hello,

 

I have created an customer Transaction with SE93  and integrated that to SAP Menu (SE43). I also have translate the Transaction in SE63 -> S3 -> TRAN.

I have translated transaction in SE93 from originale language to english but when i log on System with english the transaction appear in german in SAP Menu not in english. What is wrong?

BADI in ME21N to change cost center (EKKN-KOSTL) and also show in the screen

$
0
0

Hi All

 

Please, I need some help.

 

There is a requirement to update the cost center (field KOSTL table EKKN) - when Account Assignment Category equal 'F'.

 

And also the cost center should appear at ME21N/ME22N/ME23N screen. The functional analyst already customized KOSTL at the screen.

 

I am using BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM

 

 

data: ls_mepoitem type mepoitem.

data: lt_account type purchase_order_accountings.

data: wa_items type purchase_order_accounting.

data : lt_exkn type mepoaccounting.

 

ls_mepoitem = im_item->get_data( ).

lt_account    = im_item->get_accountings( ).

 

loop at lt_account into wa_items.

 

lt_exkn = wa_items-accounting->get_data( ).

 

* obtain cost center from COAS

data: l_kostv type coas-kostv.

clear l_kostv.

select single kostv

          into    l_kostv

          from   coas

          where aufnr = lt_exkn-aufnr.

 

if sy-subrc ne 0.

   clear l_kostv.

endif.

 

ls_mepoitem-kostl = l_kostv.

im_item->set_data( ls_mepoitem ).

 

endloop.

 

 

The problem is that EKKN-KOSTL is not been update and also the cost center at the ME21N is not displaying the cost center data.

 

 

Could you please advise?

 

Thanks in advance.

Joao Gaia

Error in SAP Netweaver gateway

$
0
0

Dear Experts,

I am using demo sap system and I Created one SAP Netweaver gateway project and created the service maintenance as GW_HUB

My configuration

Manage SAP System Aliases

SAP System Alias: LOCAL

Description:  Local Gateway

Local Gw: X

For Local App: X

RFC Destination:  NONE

Software Version:  Default

System ID: EH7

Client: 800

 

Gateway setting : (SAP NetWeaver Gateway Settings)

Destination system: GW_HUB

Client : 800

System Alias:  EH7

RFC Destination:  NONE

 

But I am getting below error () attached file

 

please help me on this..

BAPI ACC document post dump

$
0
0

Hello, experts.

 

Could you help me with the following problem:

We are using BAPI ACC DOCUMENT POST for an outgoing invoice. To get tax line item posted we are passing accounttax.


LT_Return shows that the document was created. It displays its number.

But when performing COMMIT WORK we get a RAISE_EXCEPTION dump.


RAISE_EXCEPTION

SAPLF005

FI-AP-AP-PT

Exception condition "E_CURRD_MISSING" raised.


A RAISE statement in the program "SAPLFDIS" raised the exception

condition "E_CURRD_MISSING".

Since the exception was not intercepted by a superior

program, processing was terminated.

 

 

Short description of exception condition:

 

For detailed documentation of the exception condition, use

Transaction SE37 (Function Library). You can take the called

function module from the display of active calls.





~~~

*clear: wa_acctx.

*       wa_acctx-itemno_acc   = '30'.

*       wa_acctx-gl_account   = t_mwt-hkont.

*       wa_acctx-tax_code     = 'RR'.

*       wa_acctx-tax_rate     = t_mwt-msatz.

*       wa_acctx-itemno_tax   = '020'.

*       wa_acctx-cond_key     = t_mwt-kschl.

*       wa_acctx-acct_key     = t_mwt-ktosl.

*       append wa_acctx to lt_acctx.

*

*clear: wa_curr.

*       wa_curr-itemno_acc =  '30'.

*       wa_curr-curr_type  = '10'.

*       wa_curr-currency   = 'KZT'.

*       wa_curr-amt_doccur = - abs( t_mwt-kawrt * t_mwt-msatz ) / 100.

*       wa_curr-amt_base   = - abs( t_mwt-kawrt ).

*       wa_curr-tax_amt    = - abs( t_mwt-wmwst ).

*       append wa_curr to lt_curr.

FB03 Sales Document field empty

$
0
0

Hi, good day to everyone.

 

 

 

I have an issue, when we do the billing process with the vf04 transaction. (individual or collecting billing document) at the end of this process a billing document was created, when we display the document in the document flow, the FB03 transaction in the details, the sales document is filled, because we added code in the userexit zxvvfu02, we fill the field in the source code: xaccit-kdauf = cvbrp-aubel.

 

But we have one scenario where the sales document is empty and i dont know why. I debbuged the process and detected when the function "call function 'AC_DOCUMENT_CREATE'" is called in the include LV60BU01, the field xaccit-kdauf is deleted in this scenario, the others scenarios work correctly.

 

 

 

Can someone help me to know why this is happening?

 

 

 

Regards.

Runtime error while creating sales order

$
0
0

Hi All,

 

I am getting runtime error while creating the sales order,if we give the amount more than 8 digits,like Runtime Errors:COMPUTE_BCD_OVERFLOW,

Except.CX_SY_ARITHMETIC_OVERFLOW,ABAP Program : SAPLV60F,Application Component:SD-BIL.

 

 

An exception has occurred which is explained in more detail below. The

exception is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW' and was not caught

in procedure

"FAKTURAWERT_PERIODISCH" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated this

exception, the current program was terminated.

The reason for the exception is:

In the current arithmetic operation with operands of type P, an

overflow has occurred. Possible reasons:

 

1. The result field of type P is too small to store the result.

 

2. The total or a subtotal has more than 31 decimal places.

 

Source Code Extract

 

>>>>>   add-corresponding  *kompax to kompaxa.

 

So kindly let me know,how we can resolve this issue,its an urgent issue.

 

 

Regards,

Shivashankar

Pros/Cons of B2MML or IDoc when Transferring Files SAP --> MES

$
0
0

Hello,

 

What are the advantages and disadvantages of using B2MML or IDoc formats when transferring files from a SAP to MES system?

 

Thanks! I know this is a broad question, but any information could help.


Hide Column in alv grid of factory method

$
0
0

Hi All,

 

I have alv grid using factory method with classes salv* . In grid multiple coloumn and rows .

 

I want to hide my coloumn which has zero value .

 

In my grid all column and rows comes dynamically . Now my problem is how to find which column has zero value .

Once i got column with zero value , i know how to hide (using properties false ) .

 

 

 

Pl share if any idea .

 

thanks in advance .

 

Regards,


Alter

Populate field values into intypes dynamically while Hiring

$
0
0

Hi Gurus,

 

I have requirement where in PA40 screen , before hiring action pop-up should come, which will asked for first name and last name. and using these fileds we have to search employee in system whether is it already present or not, if yes display in ALV and on user confirmation go for new hire or hire with selected criteria.

 

Now i am facing problem problem if user selected existing employee, then while doing hiring when i am coming on IT0002, requirement is to employee's first and last name should be display automatically. like how start date and end date is coming in the infotypes dynamically .

 

I tried dynamic action , also tried to implement badi, which will update PA0002 after saving IT0001 . i even tried to change infogroup , for IT02, from insert

 

Is there any user exit or any way to display fields dynamically.

 

Thanks,

 

Dinesh .

hi

$
0
0

hi, can any one tell how add two fields in VTO1N tcode, when click the deliveries button for the output displayed ALV.

please do needful

F4 help in column of output of alv from domain - using SALV*

$
0
0

Hi All ,

 

I have alv grid in which A,B,C column . Column A and B refer form standard field and table but C refer to custom .

 

I put my input and all three field are come as output .

 

Now i need to f4 on column C using domain .

 

I am using SALV* classes for alv .

 

Thanks in advance .

 

Regards,

Alter

WPUBON modify Account assignment group

$
0
0

Hi gurus.

 

Mi issue is that I´m creating a billing since the process of an IDoc WPUBON01. The requirement of my client is to modify the account assignment for the material depending on a field inside the idoc's structure.

I can´t find the place where is triggering the post of the document. This in order to make a trace and change the account assignment in that moment.

I hope someone can help me.

 

Thanks in advance.

Viewing all 716 articles
Browse latest View live