Home > Default > REG : user exit

REG : user exit

October 11Hits:1
Advertisement
hi,
    i am writing this code in user exit MV45AFZZ for va32 and va02 transaction.it is working fine but the problem is whatever i select the first line item it is not responding corectly.ther then first line item the other line items are working properly and in va32 transaction when i select item overview tab then also the program is not working properly please help me out
LOOP AT XVBAP.
  IF TCTRL_U_ERF_AUFTRAG-CURRENT_LINE = SY-TABIX
  OR TCTRL_U_ERF_LIEFERPLAN-CURRENT_LINE = SY-TABIX.
  SELECT VBELN POSNR ZEILE MATNR VTWEG WERKS DISPO
         M1QTY M1QTY01 M1QTY02 M1QTY03 M1QTY04 MONYR KUNNR
         INTO CORRESPONDING FIELDS OF TABLE IDEMAND
         FROM ZSDDEM WHERE VBELN EQ VBAK-VBELN
                     AND   POSNR EQ XVBAP-POSNR
                     AND   MATNR EQ XVBAP-MATNR
                     AND   KUNNR EQ KUAGV-KUNNR.
  SORT IDEMAND BY VBELN POSNR ZEILE DESCENDING.
  LOOP AT IDEMAND.
  SELECT MAX( ZEILE ) INTO WA_ZEILE
                FROM ZSDDEM WHERE MONYR EQ IDEMAND-MONYR
                            AND   VBELN EQ IDEMAND-VBELN
                            AND   POSNR EQ IDEMAND-POSNR.
                           AND   KUNNR EQ IDEMAND-KUNNR
                           AND   MATNR EQ IDEMAND-MATNR
  IF SY-SUBRC = 0.
  IF WA_ZEILE EQ IDEMAND-ZEILE.
  TOTQ = TOTQ + IDEMAND-M1QTY.
  ELSE.
  DELETE IDEMAND INDEX SY-TABIX.
  ENDIF.
  ENDIF.
  ENDLOOP.
  IF TOTQ > 0.
    MESSAGE E020(ZSD_AMP) WITH TOTQ.
  ENDIF.
  ENDIF.
  ENDLOOP.
  ENDIF.

Answers

Hi,
Can you please check the below sap note?
Note 414421 - Creating or transferring simulat. version: CONVT_NO_NUMBER
Please also check
2.       0.410       PS-ST-WBS       449922       CJVB_PRPS_POST: ERR_UPDATE during update on table PRPS       27.02.2002
     3.      0.400      PS-SIM      805384      CJV2; network structure graphic; create activity: NOT_FOUND      30.12.2004
     4.      0.370      PS-SIM      379157      CJV4: SAPSQL_ARRAY_INSERT_DUPREC in SAPLV60F      24.03.2003
     5.      0.340      SV-SMB-AIO-BP-IMC      612325      Coll.note: BP Industrial Machinery & Components (IM&C)V3.46C      25.08.2003
Thanks,
Ramakrishna

Read other 5 answers

Tags:

Related Articles

  • Reg. Exit/BADI for changing item data of PO in ME22NOctober 11

    Hi all, My requirement is to update the field LABNR (Order Ack.) of few specific line items of a PO, in the Transaction ME22N, using Exit/BADI. I have tried the BADI  ME_PROCESS_PO_CUST. But the PROCESS_ITEM method of this BADI processes only the lin

  • REG:USER EXIT FOR DATA SOURCE 0HR_LSO_1October 11

    Hi , I have to write the enhancement ABAP code for data source 0HR_LSO_1 which is related to module " training and event management "(also known as LMS or LSO) in ECC 6.0 . So how can I find out appropriate user exit for the same .I have to conc

  • Reg:User-Exit In Sales Order to InvoiceOctober 11

    Hi All, I have An requirement that to create automatic sales order and invoice  in one go, i have used BAPI_SALESORDER_CREATEFROMDAT2 to create sales order and bdc invoice to create invoice its worked fine. My problem is now i got an requirement as a

  • Reg: save exit and cancel buttonsOctober 11

    Hi, In normal report programs when we enable the back , exit and cancel buttons they work fine without writing any code.but its not in the case of Module pool why? In thr normal reports where does the code come from? regards prasanthHi.... Module poo

  • REG : user exitOctober 11

    hi,     i am writing this code in user exit MV45AFZZ for va32 and va02 transaction.it is working fine but the problem is whatever i select the first line item it is not responding corectly.ther then first line item the other line items are working pr

  • Reg:user-exitsNovember 30

    hi to all , iam new to user-exits.i had seen some user-exits. in which some are like FUNCTION EXIT_SAPMV45A_002, FORM USEREXIT_FIELD_MODIFICATION.so what is the difference between them are there any more exits. with regards satishHi, 1) For the FUNCT

  • Reg: FI - Exit: EXIT_SAPLV60B_004November 30

    Hi, The Exit 'EXIT_SAPLV60B_004' is triggred when Invoice is created or Changed. I have added code in this Exit which need to be triggred only when it is triggred at the time of Invoice creation and not for the Invoice change. How could I identify, t

  • Reg User Exit SUSR0001November 30

    Hi all,    Facing problem with user exit SUSR0001.     When we login through GUI control is flowing through the exit, but when we login through RFC, control is not flowing through the exit.   Wt to do if we want need any validation while we login thr

  • Reg: user Exit or BADINovember 30

    Hi Guys, I have a requirement like i need to save delivery header texts in VL02N transaction while  creation of return delivery order, can any one tell the which user exit or BADI.. Regards, mahendar .Exit Name           Description V02V0001         

  • Reg user exit used for reading VB itemsNovember 30

    Dear all, Please give me the details of user exit used when we run plant level MRP by MDBT, so that it will create purchase requisitions only for consumables VB items, please explain how it works. Thanks in advanceHi, Can you explain what you mean by

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.828 s.