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

Create new functionality where there is none

$
0
0

Hello,

 

I must add a new functionality to transaction EG30. I found the user exists but it seems that none of them help me.

 

Is there any way that i could add some sort of a trigger on a transaction (something like: on finish of eg30 do that) ?

 

Thank you.


Checking my Understanding on Switches, Packages, and Enhancement Implementations

$
0
0

Hi All,

 

I'm in the middle of an upgrade from ECC5 to ECC6 (EhP2) and I'm studying up on the "new" Enhancement Framework. I don't currently have access to a sandbox or prototype ECC6 environment, so I can't experiment as I usually would. There's a specific complication I see in my employer's envoronment and I wanted to check with the community to see if I understand the consequences right.

 

For the past 10 years we've been doing all of our custom development in just a couple different packages (one for each transport path). This concerns me because as I understand it we won't be able to use switches for any enhancements we create (if we did, the switch would apply to all of our enhancements). From what i've read, switches are the only way to deactivate enhancement implementations. Going into it, I expected there to be an "Enhancement is Active" flag similar to what BAdIs have. We currently get a lot of use out of the BAdI deactivation function when debugging issues, and I'm a little scared to go without it for other enhancements. Am I correct that there is no way other than using a switch to "Deactivate" an Enhancement Implementation? Or is there any way to apply a switch to a subset of the objects in a package?

 

Thanks,

Alex

Validation on Item Tab in IW22 ?

$
0
0

Hi All,

 

 

I need to have a validation on Item tab in IW22 Transaction.If the item itab is empty at the time of save, it should display some error message. I tried the User exit QQMA0014 but it is working only for notification creation in IW21.While saving in IW22 it is capturing both existing and deleted items in the table T_VIQMFE  and the deletion indicator field KZLOESCH is empty even if the item is deleted so not able to identify the item tab is empty or not

Please suggest me any other exits/Badi.

 

 

Thanks

Bharathi

Child age validation on HRBEN0001

$
0
0

Hi Guru's,

 

We want add  validation on Child age - HRBEN0001 t code.

On click of offer plan and  from plan when 'Dependent child'(BPLAN - DPCH) is selected and when try to open the coverage plan ,if child age is greater then 26 then it should display error message.Our SAP system with enhancement package EHP4.

Please let me know any user exit or badi or any enhancement available or how to do it .

Its urgent

 

Moderator message - What is urgent for you, may not be urgent for other members. Please read the forum Rules of Engagement before posting!

 

Message was edited by: Suhas Saha

call XK02 user-exit before entering vendor

$
0
0

Dear Experts,

 

is there any user-exit or enhancement, where i can check something before entering vendor (after starting transaction XK02 and input vendor number)? Before saving is too late, i need one before entering. Or is there any other possibilty to check the several checkboxes in the starting dynpro of XK02, for example Payment transaction or Sccounting info...

 

Thanks for each idea!

BR

Select statements in BADI delivery _publish is not working for table LIKP/LIPS

$
0
0

Hi,

I am trying to enhance tcode VL01N such that after post goods issue,those details plus serial should be downloaded into a file.I found BADI delivery_publish for enhancement.

In the BADI I  used field symbols to get delivery number .Which is working OK.My problem comes when i pass the delivery number(vbeln) to select delivery details from LIKPs table ,it returns nothing on debugging.But when i  confirm the value in the table LIKP in se16 ,i could see the data.This is the statement that is not working.

SELECT * FROM likp  INTO TABLE gt_likp

    WHERE vbeln EQ <lt_vbeln>."lv_char10."v_vbeln.

 

 

I decided to  do another test,but debugging   the method  alone  after hard coding the value  as  v_vbeln = ''0080000587'.Apparently it returned value OK.

 

So I dont understand why after post goods issue using tcode VL01N ,my select statement doesnt work.I find it strange because i have worked with select statements but I have never encountered this problem before.

Here is the snippet of the code used in the BADI.Please help me figure out what am I doing wrong

 

METHOD if_ex_delivery_publish~publish_after_save.

 

  TYPE-POOLS :truxs.

********Internal Tables Declaration*************

  DATA:  it_final TYPE STANDARD TABLE OF zgood_issue_fields,

*      it_iserls TYPE TABLE OF riserls,

        it_iserls TYPE STANDARD TABLE OF rserob,

*      it_komser TYPE TABLE OF komser,

        it_sernos TYPE STANDARD TABLE OF riserls.

  DATA: gt_lips TYPE STANDARD TABLE OF lips,

        gt_likp TYPE STANDARD TABLE OF likp.

  ********Work Areas Declaration******************

  DATA: gw_data TYPE  ty_head,

        wa_final TYPE  zgood_issue_fields,

        wa_xlips  TYPE lips,

        gw_likp  TYPE likp,

*      wa_iserls TYPE riserls,

        wa_sernos TYPE  riserls,

        wa_iserls TYPE   rserob.

*      wa_komser TYPE komser.

********Variables Declaration******************

  DATA: lw_name   TYPE kna1-name1,

        lv_lfimg  TYPE p LENGTH 13,

        lw_zzdelphi TYPE vbap-zzdelphi,

        gwgen     TYPE zgen_pswd,

        uname(12) TYPE c,

        pwd(30)   TYPE c,

        host(15)  TYPE c,

        slen      TYPE i,

        key       TYPE i VALUE 26101957,

        hdl       TYPE i,

        result    TYPE STANDARD TABLE OF text,

        fname(60) TYPE c,

        itttab    TYPE truxs_t_text_data,

        it_head   TYPE truxs_t_text_data,

        keydata  TYPE rserob.

  DATA : v_vbeln TYPE vbeln,

        lv_char10 TYPE char10.

  FIELD-SYMBOLS : <lt_vbeln> TYPE vbeln.

  DATA : gt_vbeln TYPE string VALUE '(SAPMV50A)xlikp-VBELN'.

  ASSIGN (gt_vbeln) TO <lt_vbeln>.

  MOVE <lt_vbeln> TO v_vbeln.

  lv_char10 = v_vbeln.

*  lv_char10 = '0080000587'.

  clear v_vbeln.

*IF gt_likp is not initial.

  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

    EXPORTING

      input  = lv_char10

    IMPORTING

      output = v_vbeln.

  SELECT * FROM likp  INTO TABLE gt_likp

    WHERE vbeln EQ v_vbeln.

  CHECK gt_likp[] IS NOT INITIAL.

  SELECT * FROM lips  INTO TABLE gt_lips

    FOR ALL ENTRIES IN gt_likp

    WHERE vbeln EQ gt_likp-vbeln. "v_vbeln.

*  CHECK gt_lips[] IS NOT INITIAL.

*LOOP AT xlips INTO wa_xlips.

  LOOP AT gt_lips INTO wa_xlips.

    keydata-taser   = 'SER01'." Serial Table

    keydata-lief_nr = wa_xlips-vbeln.  "delivery number

    keydata-posnr   = wa_xlips-posnr. "delivery item number(optional)

    CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'

      EXPORTING

        key_data            = keydata

      TABLES

        sernos              = it_iserls[]

      EXCEPTIONS

        key_parameter_error = 1

        no_supported_access = 2

        no_data_found       = 3

        OTHERS              = 4.

    IF sy-subrc <> 0.

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

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

    ENDIF.

    CLEAR: wa_xlips,keydata.

  ENDLOOP.

ENDMETHOD.

Express document "Cannot be sent: SO created.SO No-450" received from author "abap

$
0
0

Dear Experts,

 

After Saving Sales order, I am sending SMS. But an Express document  is shown like this : "Cannot be sent: SO created.SO No-450" received from author "abap , although i received the SMS.

 

Regards

Niran.

I am trying to Connect DB6 with SQL Server 2008 through DBCO

$
0
0

Dear All,

 

Good Afternoon!

 

I am trying to Connect DB6 with SQL Server 2008 through DBCO.

I have created all the Connection Setting in DBCO.

 

DB Connection :- MYCONNECTION

DBMC = MSS

User Name = manager

Password = 1234

Connection Information :- MSSQL_SERVER=192.168.1.34 MSSQL_DBNAME=SBODemo

 

REPORT ZINSERTDB.

DATA: OREF   TYPE REF TO CX_ROOT,
       P_CONEX TYPE DBCON_NAME VALUE 'MYCONNECTION', " Ask the basis for this
*      P_CONEX TYPE DBCON_NAME VALUE 'YOUR_DB_CONNECTION_STRING', " Ask the basis for this
       LV_SW TYPE C,
       ERRORMESSAGE TYPE STRING.

DATA IT_MYDATA TYPE STANDARD TABLE OF MARA.

START-OF-SELECTION.

   PERFORM CONNECT.
   PERFORM INSERT_INTO_DB.
   PERFORM DISCONNECT.

*&---------------------------------------------------------------------*
*&      Form  connect
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM CONNECT.
   TRY.
       EXEC SQL.
         CONNECT TO :p_conex
       ENDEXEC.
       LV_SW = 'X'.
     CATCH CX_SY_NATIVE_SQL_ERROR INTO OREF.
       LV_SW = SPACE.
       ERRORMESSAGE = OREF->GET_TEXT( ).
   ENDTRY.
ENDFORM.                    "connect

 

This is my Code and I am trying to Create Connection.

But after Completion of all the setting it will not get Connect to SQL.

Please anybody could help me for the same.

 

Thanks,

Sandip Kokate


Sales Order - using existing PR for creating indiv PO

$
0
0

Hi All,

Whenever we create a salesorder in SAP, if the item category of the material belongs to TAB (Indiv.Purchase Order), system creates purchase requisition and later creates PO based on that PR. This is standard  out-of-box functionality that SAP delivered.

 

We have a requirement that, we will be having a pre-released PR with bulk quantity for the same material. Whenever we create sales orders for this material, we need to refer this existing PR within the salesorder and create individual PO subsequently for each sales order.

 

I.e Multiple sales orders need to be used the same existing PR, and create a separate PO for with reference to the salesorder.

 

Is there any userexit/badi that is available in salesorder creation, to replace the functionality of creating new PR with the existing pre-approved PR number and item number?

 

Any help is greatly appreciated.

 

Thanks,

Raghava.

Exit/Program for Update VBRK-FKSTO

$
0
0

Hi Friends,

 

I have to update the field VBRK-FKSTO.

For some invoices when they are cancelling this field is not updating in VBRK Table.

I need any user exit or somthing to fulfill this requirement.

 

Kindly Help in this regard.

 

Thanks & Regards,

Jogesh Mutyala

Add custom fields in XD01

$
0
0

Hi,

I have a requirement of adding 2 new custom fields on XD03 address tab. how do i achieve this?

unable to activate BADI CO_SRULE_CDOC_IMP

$
0
0

Hi experts,

 

We are using SAP ECC 6.0 and according to a note I need to activate the implementationI CO_SRULE_CDOC_IMP as a solution.

But its not allowing to do so. Kindly suggest. SAP note 499701.

 

Rgds-

Kp

Disable Input in Custom Sub Screen - KS03 (Cost Center)

$
0
0

Hello,

 

I have created a sub screen for KS01/02/03 and added a custom field in that. Everything is working fine except, If I get the Custom field data through KS03, it should be display only. Now its coming as editable.


I have tried the following code in both EXIT_SAPLKMA1_001 and PBO. But it's still not working.


IF SY-TCODE = 'KS03'.
LOOP AT SCREEN.
      screen-input = 0.
      screen-output = 1.
      MODIFY SCREEN.
    ENDLOOP.
ENDIF.
BREAK-POINT *Debugger is not stopping

 

Your inputs please.

PA30 -Bank Infotype -Changing Warning Message to Error Message

$
0
0

Hi Experts,

 

We had a problem where in PA30 transaction if we go to Bank Infotype (Infotype 9) Screen in edit mode  and If we enter a Bank

which was marked for deletion previously and try to save it we will be getting an warning message . Instead of that we should get a Error message so that

the system shouldn't allow to save it further. We already achieved this kind of requirement in ESS Portal using the BADI  (HRPAD00INFTYBL, use method PAD00INFTYBL~DELETE_COMPUTATIONS) . But I guess this can be used to achieve this at portal level. But how to achieve the same at SAP GUI Transaction (PA30) level? Any suggestions or comments

 

Regards

Lakshman

User defined title while sending Fax from SAP for Purchase order/Delivery/Invoice

$
0
0

Hi,

 

I have an requiremnet where i need to change the title of the FAX(Purhcase Order ) which is being sent out from SAP( Tcode: SOST). Currently in SOST, the document title contains the standard program name along with Date and Time.

 

Example : SAPLSTXBE /20130729/021940

 

I need to change this title to a meaningful one.. Like Purchase order number along with output type like that.. Ex : 4520031456/ZMAL/20130729. This requirement particular for FAX Medium only(Telefax)

 

I tried searching for SAP notes too, but i didnt find any.

 

Kindly suggest any solution as this enhancement wil help our customers to track the outgoing fax.

 

Thanks

Partha


ADD new Button in Reprot ouput in AR25-Depreciation posted(RAGAFA_ALV01)

$
0
0

Hi ,

 

In the Standard Report AR25-Depreciation posted (Prog.RAGAFA_ALV01).

I need to add new button in the standard output lay-out.

but I am unable to find the PF status.

 

Kindly Help on this.

Regards,

VSN.

Badi BOM_UPDATE to update BoM items through webdynpro

$
0
0

Hi All,

 

I am working on an requirement where I have to change few fields like SANKA, SANKO (STPO fields) and so on and set them to 'X' if the BoM is an M-BOM. The M-BoM is automatically getting created from E-BOM by using SAP PSS (Product Structure Synchronization) through web-dynpro. Badi is triggered when M-BoM is created, but, I cannot change the data in importing tables.

 

I created an implementation for Badi: BOM_UPDATE, but all methods in the implementing class just have importing parameters and cannot be changed.

 

 

Note: I know how to tweak the date in the badi if it gets triggered from SAP GUI, but same logic is not working through webdynpro.

 

 

Is there any other Badi or method which will serve the purpose?

 

 

Thanks and regards,

Ashlesha Desai

BADI/Enhancement Spot/User Exit for getting the data in MB01 before posting

$
0
0

hi experts:

     i want to get the head and item data before saving in  MB01 transaction,  i have used

BADI: MB_DOCUMENT_BADI and SMOD:MB_CF001 , SMOD:MBCF0005.  

but these enhancements take effect when saving the material document .  i just want to get the data, but not hope create the document . are there any other BADI/Enhancement Spot/User Exit can get the data?the attached file is what i want to get.

 

Any help given is greatly appreciated.

 

Thanks in advance.


Sincerely,

Yi. Xu

Populating additional line items in background in f-53

$
0
0

Hi,

 

I need to pass some additional line items in F-53 final posting screen. I can do it manually but the requirement is, based on some deduction calculation those line items to be populated automatically. I want to pass another one or more credit line items. It will function like creation of automatic line item creation by system.

 

Thanks

Ranjan

Purchase order number update in VF02

$
0
0

Hi All,

 

I have to update the field Purchase order number ( it should be available in PO Data subscreen) in VF02 Transaction.

 

Can anyone please tell me the ways to meet the requirement,and could you please tell me is there any BAPI available for this requirement.

 

 

Regards,

Ramesh

Viewing all 716 articles
Browse latest View live


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