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

Change fields' attributes in customer tab (ME21N)

$
0
0

Hi everybody,

 

I'm trying to change the attributes of a customer field in a new tab in the purchase order. I have used the BAdI's:

 

ME_PROCESS_PO_CUST

ME_GUI_PO_CUST

 

And I've modified the field's attributes in the method FIELDSELECTION_HEADER.

 

Something like that:

 

IF l_persistent EQ mmpur_yes.
     READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_01.
     IF sy-subrc IS INITIAL.
       <fs>-fieldstatus = '*'. " Display
     ENDIF.
   ENDIF.

ENDIF.

 

It works fine, but I have a problem because I want to change the attributes depending of the value of the company code, but this method is not accesible when I change the company code, I mean this method isn't in the call stack.

 

Do you know what is the problem and if it possible to solve that?

 

Thanks in advance

 

Best regards


Sales order Validations before save

$
0
0

Hi ,

 

 

I need to check the customer of the sales order and for the particular customer,only certain materials are allowed.If other materials are entered,then I need to give an error message.I have written the code in USEREXIT_SAVE_DOCUMENT_PREPARE and it is working fine.But now i need to do the same validation after entering the items and before clicking save.Is there a way to do the validations before clicking save (any user exit that will be triggered at item level).

 

Thanks and Regards,

Rohini

How can I carry out new pricing from info record when I adopt from old PO in ME21N.

$
0
0

How can I carry out new pricing from info record when I adopt from old PO in ME21N.

 

When I use the adopt botton to copy item from old PO to new PO, I hope the system can calcuate the material's value automaticly.

I try to use BADI ME_DEFINE_CALCTYPE->DEFINE_CALCTYPE, and change the CH_X_LF_CALCTYPE to 'B', but only when I change the item, the value for material can be calcuate automaticly. If I only adopt the old item, it can't be calcaute automaticly.

Can any one know how can I do it?

 

PS:
  About details, please refer to the attachment.

 

Thanks.

SD Delivery User Exits: MV50AFZ1

$
0
0

Hi experts,

 

At delivery document, some data are stored at the item texts. The user requires to do some calculations based on user inputs at the item texts. So, I modified the user exit MV50AFZ1, and use function module 'READ_TEXT' to read user input into item texts on which calculation is made and 'SAVE_TEXT' to save the calculated number to a new item text. But when I try to delete the delivery document, a system error show which is triggered by the 'REAC_TEXT' and 'SAVE_TEXT'. Did I enhance the transaction correctly? How to tackle the error?

 

Best regards,

ts

ME9F message output issue

$
0
0

Hello Gurus,

 

We are trying to send the message by email by using SHDB (to be able to generate our own Z code)

Then we are using CALL TRANSACTION (ME9F transaction) by giving parameters of required PO number

The email is being sent through SMTP - status OK.

 

But only thing that is missing is the message outputed sign. green arrow. See picture bellow,

 

Any ideas, why is this issue being raised or by which program or ABAP logic produced?

 

Regards

Laurynas Prikockis

accessing methods and variables within an overwrite

$
0
0

Hi,

 

 

I need to condition the logic in a class method, but within the overwrite method I cannot refer to the class instance variables and methods.

 

 

The compiler tells me that the public instance variable (such as m_menulinks) of the class CL_CFX_BORDER_DATA are unknown.

 

I have a basic, actually, poor understanding of what is going on, but I guess there's a way to change the code to get it right for the compiler.

 

I tried to use the ME reference variable by prefixing the variables with "me->" but it didn't work (me->m_menulinks).

 

 

Can anybody explain me why the public variables and methods are not accessible in the overwrite method? and how to change the code to get it compiled?

 

 

Thanks in advance.

 

Marco

Screen layout custom fields QM order - coopa003

$
0
0

Hi,

 

I implemented the Exit coopa003 to display custom fileds in the QM order, which works fine.

 

For the order type category 1 (Internal Order (Controlling))  I can assign a layout under spro -> Controlling -> Internal Orders -> Order Master Data -> Define Order Types

order type1.jpg

 

Unfortunately I cannot assign a layout to the QM order type (category 6) in SPRO, so my additional dynpro is always displayed on tab 4.

order type6.jpg

 

Any hint how I can change the position of my custom dynpro to tab. 1?

 

Thanks in advance,

Marco.

CO15 screen exit !

$
0
0

Hello,

 

I want to add two screen field in transaction CO15 (not CO11N).

 

Please help with proper exits. (for co11n I find them, but not for CO15).

 

Regards,

 

Zava


ME52n - always last banf is selected / parameter with banf number does not work

$
0
0

Hi All,

 

I am currently implementing a webdynpro application - this application calls the transaction ME52n to change a purchase requisition.

 

But always when I call this transaction the last purchase requisition is automatically selected. How can I change this that the transaction gets my parameter as correct number or can I change internal the last used purchase requisition number?

 

Thanks for your help!

 

Christoph

Modify target special gl indicator badi FI_INT_CUS01 method int_post

$
0
0

Hi All,

 

Need some help on this badi FI_INT_CUS01 method int_post. I am using this method to modify the special gl indicator which is is not picking correctly in the standard system. Here there will be two structure one for all line items ct_items, other for accounting post line items ct_accit. Here while changing the interest indicator  i do not have any fields to compare these structures. I need to modify ct_accit-umskz. I tried some code but did not get the correct trick how to read.

 

Regards,

Madhu.

How do you make changes in a SAP Enhancement-Section so that it stays during upgrade?

$
0
0

  I have been looking through SCN and see a lot about enhancements but it is said that SAP will not support any code changes inside of their own enhancement sections and it will be deleted during upgrade.  What is you do an Enhancement->Replace?

 

  I need to modify the following code before the message w049. What should I do so that the change is ok after the next upgrade?

 

 

 

*       Field is not used on any screen in MIGO
        WHEN 8.
ENHANCEMENT-SECTION     lmigokl3_01 SPOTS es_saplmigo.
          IF s_action-display IS INITIAL.                  "1477221
*            issue message only if not in display mode     "1477221
             MESSAGE w049 WITH l_fieldname.
          ENDIF.                                           "1477221
END-ENHANCEMENT-SECTION.

VF01/VF02 Enhancement

$
0
0

Dear Folks,

 

I have a requirement to modify Condition price based on condition type and account key while invoice posting.

 

for this i tried in RV60AFZZ, in this USEREXIT_PRICING_PREPARE_TKOMK.

 

my Requirement is based on Condition type i need to update the Price.

 

in this Exit KONV or XKONV are not filling.

 

Please suggest me is this the right place to modily condition pricing for the Transactions VF01/VF02.

 

Thank you,

Divvi

Exit/Badi CJ20N WBS Element Creation

$
0
0

Hi,

I need to change a wbs element user status at the exact moment it is created.

Do you know any exit or Badi when event create is triggered in CJ20N transaction?

 

Thanks in advance,

Alm.

WORKORDER_DOCLINKS - read master data

$
0
0

Hello,

 

I try to implement the BADI WORKORDER_DOCLINKS.

The parameter IM_ACTION shows where the BADI is called.

C Opening

R Release

N Read Master Data

 

For us it's neccessary to refresh document links in PP-order, when PP-Master-data reading is done.

 

But the BADI's is not called, when you read master data.

 

Thx for an hint

 

Markus Wette

Enhancement COOM0001

$
0
0

Dear Experts,

 

Our client have requirement as system should calculate OH cost on output quantity.

 

for example : production GR is 10 then system has to add the cost 10000/-INR to each output qty (10000*10 = 100000)

 

for this requirement we are trying to  use "Enhancement COOM0001" but we are not getting the expected result from this enhancement.

 

as you aware "Enhancement COOM0001" have three function module like

1. EXIT_SAPLKASC_001

2. EXIT_SAPLKASC_002

3. EXIT_SAPLKASC_003

 

We did coding as below for your advice correction

 

Code in Function Module 01. EXIT_SAPLKASC_001

  &---------------------------------------------------------------------*

*&  Include           ZXKSCU01
*&---------------------------------------------------------------------*
TABLES: cosl.

FIELD-SYMBOLS: <actty>,
               <qunty>.
DATA: aname(6),
      qname(6),
      abw_menge  LIKE cosla-lst001,          " Istmenge
      abw_meinh  LIKE cosla-meinh,           " Mengeneinheit
      abw_poper  LIKE kks00-poper,           " Periode bis
      abw_gjahr  LIKE kks00-gjahr.           " Geschäftsjahr von

CLEAR sy-subrc.
CLEAR   t_cossa.
REFRESH t_cossa.

CHECK i_cbase = 'B000'.
IF i_wrttp = '01'OR i_wrttp = '04'.
  SELECT * FROM cosl WHERE lednr = '00'
                     AND   objnr = i_coiob-objnr
                     AND   gjahr = i_yeafr
                     AND   wrttp = i_wrttp.
    CONCATENATE: 'LST' i_perfr INTO aname,
                 'MEG' i_perfr INTO qname.
    ASSIGN: COMPONENT aname OFSTRUCTURE cosl    TO<actty>,
            COMPONENT qname OFSTRUCTURE t_cossa TO<qunty>.
    MOVE: i_yeafr    TO t_cossa-gjahr,
          <actty>    TO<qunty>,
          cosl-meinh TO t_cossa-meinh.
    APPEND t_cossa.
  ENDSELECT.
ENDIF.

 

 

Code in Function Module 02. EXIT_SAPLKASC_002

 

  &---------------------------------------------------------------------*

*&  Include           ZXKSCU02
*&---------------------------------------------------------------------*

break cfi_bhagirap.
CLEAR: sy-subrc,
       e_pcent,
       e_amont,
       e_curcy,
       e_perqt,
       e_qunit.

IF i_coiob-werks = 'TS18'.
  IF i_ohead = 'BULK'.
    e_amont  = '15000'.
  ELSEIF i_ohead = 'CONS'.
    e_amont  = '10000'.
  ENDIF.
ENDIF.

CLEAR sy-subrc.

 

 

Code in Function Module 02. EXIT_SAPLKASC_003

 

*&---------------------------------------------------------------------*
*&  Include           ZXKSCU03
*&---------------------------------------------------------------------*
break cfi_bhagirap.
CLEAR: sy-subrc,
       e_aufnr,
       e_kostl,
       e_kstar.

 

IF i_credt EQ'840'.
  IF i_coiob-werks = 'TS18'.
  e_kostl = '2000010999'.
  e_kstar = '0094100000'.

ENDIF.
CLEAR sy-subrc.

 

 

Please check and reply your valuable suggestions.

 

Thanks & Regards

Bhagirath

 


F5210 error message in MIRO tcode

$
0
0

Hi;

 

I've added a screen exit with badi BADI_FDCB_SUBBAS04, the added field works well in FB60, but in MIRO we get the message F5210 with the dates.

 

Any help.

 

Thanks on advance.

 

 

David Fúnez

Latacunga, Ecuador

SD Delivery User Exits: MV50AFZ1

$
0
0

Hi experts,

 

At delivery document, some data are stored at the item texts. The user requires to do some calculations based on user inputs at the item texts. So, I modified the user exit MV50AFZ1, and use function module 'READ_TEXT' to read user input into item texts on which calculation is made and 'SAVE_TEXT' to save the calculated number to a new item text. But when I try to delete the delivery document, a system error show which is triggered by the 'REAC_TEXT' and 'SAVE_TEXT'. Did I enhance the transaction correctly? How to tackle the error?

 

Best regards,

ts

ME9F message output issue

$
0
0

Hello Gurus,

 

We are trying to send the message by email by using SHDB (to be able to generate our own Z code)

Then we are using CALL TRANSACTION (ME9F transaction) by giving parameters of required PO number

The email is being sent through SMTP - status OK.

 

But only thing that is missing is the message outputed sign. green arrow. See picture bellow,

 

Any ideas, why is this issue being raised or by which program or ABAP logic produced?

 

Regards

Laurynas Prikockis

Updating worcenter using user exit ZXWOCU07

$
0
0

Hello,

 

I need to update the fields "Plant" and "Work Center" for each operations when saving an order in IW32.

I know that the user exit that I have to use is ZXWOCU07.

These 2 fields have to be replaced by the values in the header data.

The field "Plant" is updated correctly but "Work Center" always keeps it's old value.

 

Could any one tell my what I'm doing wrong?

 

There is the code I use :

CALLFUNCTION'CO_BO_OPR_OF_ORDER_GET'

   EXPORTING

     aufnr_imp = caufvd_imp-aufnr

   TABLES

     afvgd_get = lit_afvgdget.

 

LOOPAT lit_afvgdget ASSIGNING<l_fs_wa_afvg> .

   <l_fs_wa_afvg>-ARBPL = caufvd_imp-VAPLZ.

   <l_fs_wa_afvg>-WERKS = caufvd_imp-VAWRK.

   <l_fs_wa_afvg>-VBKZ  = 'U'.

endloop.

 

 

"Updating operations buffer

CALLFUNCTION'CO_BO_UPDATE_OPR_OF_ORDER'

   EXPORTING

     FLG_NO_SCHED = abap_true

   TABLES

     afvgd_upd = lit_afvgdget.

 

 

Thanks a lot for your help

BADI_FDCB_SUBBAS04 Problem

$
0
0

Dear Experts,

 

I have implemented BADI_FDCB_SUBBAS04 for Transaction MIRO to add custom fields in Basic Data Tab.

I have Appended all the required Tables and views e.g. RBKP, RBKP_V, BKPF, VBKPF INVFO, ACMM_VENDOR_COMP

but still data is not getting saved in DB. Please help.

Viewing all 716 articles
Browse latest View live


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