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

Help for Implementing a right User Exit For IW21

$
0
0

Hi Experts,

 

I have a requirement wherein I need to validate two standard fields for the transaction IW21. The process flow is as follows.

 

1) Goto to transaction IW21.

2) Select any Notification type in the drop down and click enter.

3) Add some meaningful text, select a value for the functional loc and equipment in the dropdown.

4) Click on save.

 

After clicking on Save button a notification will be created.

 

My requirement is after the notification is created, a SMS should be sent to a mobile number from SAP. I have generated and tested SMS can be sent, from SAP, I have created a Z program also which sends a SMS to a mobile number in India, but want this program should be called when a notification is created. Please suggest me a solution which user exit should I use.


BADI for mapping Material document in the document TAB in CS01,02,03

$
0
0

Hello All,

 

I have a situation in which is as follows.

 

1) In CV01N i am creating a document

 

2) I am attaching the same document to the material (X) while creating the material (X) in the material master in MM01

 

3) While creating BOM in CS01 i am inputing the material (X) as a line Item in the Material TAB--- that is linked to the primary material

 

4) But the document that is attached to the Material (X) cannot be displayed in the document TAB in CS01/02/03

 

 

My question is

 

Is it possible to make an arrangement so that the above objective of (the material document being displayed in the material TAB when the material line Item is entered)

 

I came across one of the possible solutions that is using BADI and enhancements. Can someone who has handled the similar requirement through some light on the above issue.

Enhanching driver program RFIDYYWT

$
0
0

hi ,

 

I need to write a logic for a specfic country in the driver program 'RFIDYYWT' , when it calls the FM 'IDWT_DISPATCHER'

such that if the  a field in the internal table passed to the form is of a specfic country on then my logic should trigger otherwise not.

 

Im a newbie , so pls suggest me the workaround,

 

Thanks,

Faiz

How to restrict the lenght of customer material no(Vbap-kdmat)?

$
0
0

How to restrict the lenght of customer material no(Vbap-kdmat)?

Using MB_DOCUMENT_BADI on MB31

$
0
0

Hi,

 

I'm trying to use the BADI MB_DOCUMENT_BADI on MB31 (when saving document) to insert notification number on MKPF-XABLN (GR/GI Slip No).

 

I created an Implementation of the BADI, the class and a method  IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE where I've coded something where there's a breakpoint to see if the method gets called. Everything's activated and Runtime Behavior: The implementation will be called

Problem is, the breakpoint is never reached and therefore the method never gets called.

 

What am I doing wrong?

 

BADI INFO:

Attributes

Implementation name ZMB_DOCUMENT_BADI

Definition name MB_DOCUMENT_BADI

BAdI migrates to enhancement spot   MB_GOODSMOVEMENT

Impl. migrates to enhancement       ZMB_DOCUMENT_BADI

 

Interface:

Interface name                      IF_EX_MB_DOCUMENT_BADI

Name of implementing class:         ZCL_IM_MB_DOCUMENT_BADI

 

Thank you!

Needed authorizations for Switch Framework

$
0
0

Hello!

I want to activate/deactivate switches in SFW5, but there is no buttons to do it.

Снимок2.JPG

S_SWITCH authorization object is presented in the list of my user authorizatins.

What's the probem? What am I doing wrong?

How to make any change in PO/Contract should go for Re-Release?

$
0
0

Hello !

 

I need a help. My requirement is if any change in Contract is happened - it should go for re-release.

I checked release strategy and in that PO type, Purchase org, Net Amount limit , Po group is given.

When I change Target amount  greater to limit it goes for Re-Release.

But If  I add or delete any lines in contract or change any other detail it stays in release stage only.Not going for Re-Release.

Please help me out.

Replacing a field in MB21 input screen

$
0
0

I want to replace the "Movment Type" field by custom field in tranaction MB21. Is this possible ? If so please let me know the steps to do it.


Deactivating a standard BADI implementaion and creating a new one

$
0
0

Hello All,


There is a standard program  - RFIDYYWT for which I need to create an enhancement which will be country specific.

I have identified a standard BADI -  WTAXREPORT_MODIFY created by SAP for county = 'SA' which has an active implementation provided by SAP but the implementaion doesnt have any code for any of its methods.

Since its a filtered BADI I was thinking of creating  a  new implementation for this BADI with my country code as filter and deactivating the standard implementation. Since it does not have any code .

However I have been told that If SAP comes up with some changes through Support Packs ,then the standard implementation will not work .As it is being deactivated by us.

 

What should I do now. Is there any other work around .Need your expert opinion.

 

Thanks,

Faiz

Update Serial Numbers and Batch Numbers Automatically in MIGO

$
0
0

Hi Guys,

 

I have a requirement wherein I need to automatically update the Batch number and Serial Numbers retrieved from the Delivery Details during MIGO posting.

I have checked for BADI/User Exits for MIGO but none of them seems to work. Has anyone come across a similar requirement? Please help.

 

Thanks,

Praveena

IW38: RIAUFK20 Hide Custom Button

$
0
0

HI,

 

I added  custom buttons thanks to the BADI BADI_EAM_RIAUFK20_FCODE_CUS1.

Now depending my results on the ALV Grid, I would need to hide those buttons or not?

 

There is no implicit enhancement in form SET_PF_STATUS_F14 in RIAUFK20 program.

 

Anyone has an idea please?

 

Thank you in advance

 

Authorisation control in Mi10

$
0
0

HI Experts ,

We need to provide authorization of transaction MI10 to user , for specific material type .

i.e if user enter material code , system will check material type for that material , if it matches with particular materials type, he/she

can able to generate document .

we cant do this using basis authorization control because , this user is already having authorization for all types of materials in other roles .

hence even if we provide specific material type in one Role of Mi10 t code , user can able to post document for other types also.

Actually we need user exit/ badi for this , but yet we didn't found  exact badi / user exit for Mi10 .

Alternate solution is also acceptable .

Creating Fm to create Equipment number and also update custom fields in equi

$
0
0

Hi Experts,

 

I have added custom fields in EQUI ti populate them in IE01,02,03.

Enhancement is working fine.

 

Now my requirement is to create a FM to create Equipment number and with input as material and my custom fields datas.

 

I have tried using BAPI_EQUI_CHANGE but it doesnt allow to enter my custom fields.

 

Have also tried creating FM using   EQUIPMENT_SAVE using the below code but getting error "Internal error in buffer management for technical objects".

 

Urgent help needed.Kindly help.

 

    call function 'ITOB_SERIALNO_LOCK_SINGLE'
    exporting
*      I_HANDLE         = 'X'
      i_matnr        = lv_matnr
      i_sernr        = lv_sernr_inp
    exceptions
      not_successful = 1
      others         = 2.
  if sy-subrc <> 0.
* Implement suitable error handling here
  endif.



  lw_equi_new lw_equi.

  call function 'OBJECT_SET_ACCESS_LEVEL'
    exporting
      id_objnr = lw_equi-objnr
*     ID_EQUNR =
      id_level = 'V'
*     ID_RESET =  GC_FLAG-NO
    .


call function 'DEQUEUE_ALL'
exporting
   _synchron       = 'X'
          .


ls_itob_object-datab = sy-datum."valid_date.
append ls_itob_object to lt_itob_object.

  call function 'EQUIPMENT_SAVE'
    exporting
      i_activity_type   = 'V'              "V - Update, H - Insert
      i_itob_type       = '02'             "02 - Equipment, 03 - Serial
      i_equi_old        = lw_equi
      i_no_data_check   = 'X'
      i_sync_asset      = 'X'
      i_success_message = 'X'
      i_commit_work     = 'X'
    changing
      c_equi_rec        = lw_equi_new
*      c_eqbs_rec        = lw_eqbs_new
    exceptions
      err_data_check    = 1
      others            = 2.

 

Thanks,

Dutta D.

ME51N/ME52N: Editable customer columns in ALV grid item overview

$
0
0

Hi All,

 

In purchase requisition ME51N-ME53N I added a customer tab with customer fields. But they are outputed every time in ALV grid item overview in display mode.

 

Hence my question is how I can make them editable for tcodes ME51N/ME52N?

 

The customer tab I implemented with the User-Exit enhancement MEREQ001. In the forum I found that I have to use for handling the fields in the ALV grid the BADI ME_PROCESS_REQ_CUST.

 

Can anyone give me a working example?

 

Thank you very much  in advance for your support!

 

Kind regards

Silvan

How to aviod L3 008 message during the TO creation (Technically)

$
0
0

Hi ,

 

How to skip the L3 008 error message during the TO cration , we have picking strategy user exit is active and we want to skip the L3 008 error message for specific logic in user exit .

 

We had found FM RV_DELIVERY_PICK_VIEW is helpful but how to  implement at quants level or LIPS table ? .

Please suggest .

 

Thanks ,

 

Raghu


BTE 1120 for posting to controlling

$
0
0

Hello,

 

I have been working on activating BTE 1120 to modify the WBS element before the document is posted. I have been able to successfully modify the value on field PROJK and it is shown in FB03, once the document is posted. However, it looks like the integration with Controlling is not catching my change. The line item posting to the WBS I forced using the BTE is not displayed in the controlling document or visible in report CJI3.

 

Has anybody had the experience of using this BTE to modify CO objects like cost centers, WBS, etc..? Have your changes been successfully reflected in the CO document?

 

I have read several discussions related to the use of this BTE, but no one has really discussed its integration with CO.

 

Thanks!

 

César.

How to use the same credit card for more than one customer master

$
0
0

Hi,

 

this is a question for consultants at least a little familiar with SAP business partner, Customer-vendor-intergration cvi, contract accounting:

My customer wants to store the same credit card with more than one customer. Arguments are that family members or partners may mutually agree to use the same credit card for their distinct purchases.

 

I never tried with amazon or the likes but I know that SAP validates the uniqueness of credit cards.

 

I found 6 code line where the message (V/)005 "Payment card &1 &2 is already assigned to customer &3" prohibits duplicate assignment.

 

Even if I create a couple of enhancements to suppress the error, I don't know how the system will work.

 

The customer does not like the idea of using alternative payer.

 

Did you ever face the same problem and how did you solve it?

 

Much Thanks in advance

 

Best regards

 

Clemens

Stop confirmation of orders during ATP check

$
0
0

Hi Experts,

 

I want to stop the confirmation of orders (NCON), so that schedule line will be empty during ATP check in ATP Availability Check screen. This is required as part of some enhancement where we should not confirm the orders in APO based on some conditions.

 

Can you please let me know how exactly this can be done through enhancement. Note than we have already implemented BADI   /SAPAPO/RRP_SRC_EXIT and modifying ct_sources table. Even though ct_source table is empty, after this enhancement some where it is bein added with some default values and ATP check screen is being shown with one schedule line, which should not be shown.

How to hide fields in XD99 transaction

$
0
0

Hi Experts ,

 

I got a requirement to hide some fields in XD99 transaction for specific user group, I tried creating transaction variant but it is not allowing me to create for XD99 and displaying error ''Variants are  possible  only for dialog  transactions" . Please suggest a  alternate method to hide fields under 'fields' tab in XD99.

 

Thanks in advance .

Modification of SAPMV45A Screen 4440

$
0
0

Hi experts,

 

I have some trouble with a extension of SAP program SAPMV45A and screen 4440.

Thes task was to extend the sales overview part of transaction (VA01, VA02 and VA03) with the field VBKD-ZLSCH (payment method).

 

So I modifcated the screen 4440 and add the necessary field with reference to the DDIC.

Furhermore I implemented a user exit/enhancment to set the field active (active = 1, invisible = 0).

 

My problem is, that if I execute the transaction I can not see the new field.

I don't know why...

 

Some facts beside:

- If I execute the modifacted screen directly in test mode it works. I can see the new field and the right position

- The "other way" works. If I use the enhancement implementation to disable a field, the field will not shown at the screen

 

So what I am doing wrong? Is there something additional to activate or customize?

 

Furthermore I would like to add a own search help to this field at the screen. The search help exit for the standard search help is already used by SAP standard. How can I do that?

Right now, my idear was to enhance the "standard search help exit".

 

Regards

Christian

Viewing all 716 articles
Browse latest View live


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