MV45AFZZ : GETWA_NOT_ASSIGNED

Hi,
  I'm getting error while sales order creation.
select  MANDT
          VBELV
          POSNV
          VBELN
          POSNN
          VBTYP_N
          RFMNG
          MEINS
          RFWRT
          WAERS
          VBTYP_V
          PLMIN
          TAQUI
          ERDAT
          ERZET
          MATNR
          BWART
          BDART
          PLART
    from vbfa into table it_vbfax1
   where vbeln = wa_vbfax-vbelv
    where vbeln = xvbak-xblnr
    and   vbtyp_n = 'M'
    and   vbtyp_v = 'J'.
    if sy-subrc is initial
      and not it_vbfax1[] is initial.
      sort it_vbfax1 by vbelv.
      read table it_vbfax1 into wa_vbfax1
      index 1.
    endif.
   endif.
    if not wa_vbfax1-vbelv is initial.
select  MANDT
        VBELN
        POSNR
        PSTYV
        ERNAM
        ERZET
        ERDAT
        MATNR
        MATWA
        MATKL
        WERKS
        LGORT
        CHARG
        LICHN
        KDMAT
        PRODH
        LFIMG
        MEINS
        arktx
        bwtar
        eannr
  from lips
  into CORRESPONDING FIELDS OF TABLE it_lipsx
  where vbeln = wa_vbfax1-vbelv
  and    eannr = wa_vbap1-charg.
  if sy-subrc is initial
  and not it_lipsx[] is initial.
  sort it_lipsx by vbeln.
  endif.
  endif.
loop at it_vbap3 into wa_vbap3
      where charg is initial.
  if wa_vbap3-uepos = wa_vbap1-posnr.
  append wa_vbap3 to it_vbapxx.
  clear wa_vbap3.
  else.
  read table it_vbapxx into wa_vbapxx
  with key posnr = wa_vbap3-uepos.
  if sy-subrc is initial.
  append wa_vbap3 to it_vbapxx.
  clear wa_vbap3.
  endif.
  endif.
endloop.
clear l_index.
loop at it_vbapxx into wa_vbapxx.
  if not wa_vbapxx-pstyv = 'YRAP'
and not wa_vbapxx-pstyv = 'ZRAP'.
  read table it_lipsx into wa_lipsx
          with key matnr = wa_vbapxx-matnr.
  if sy-subrc is initial.
    read table xvbap into wa_vbap
            with key posnr = wa_vbapxx-posnr
                     matnr = wa_vbapxx-matnr.
    l_index = sy-tabix.
    if sy-subrc is initial.
     wa_vbap-charg = wa_lipsx-charg.
      wa_vbap-bwtar = wa_lipsx-bwtar.
      wa_vbap-updkz = 'U'.
      modify xvbap from wa_vbap
             index l_index
             transporting "charg
                          bwtar
                          updkz.
      clear wa_vbap.
      clear l_index.
      endif.
      endif.
      endif.
endloop.
endif.
endloop.
endif.
Its not updating the Sales order & giving error GETWA_NOT_ASSIGNED  . plz help. Code written in Save_doc_prepare.

DATA: wa_transp LIKE zatransp,
      it_transp LIKE STANDARD TABLE OF zatransp.
FORM build_fieldcatalog.
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
   EXPORTING
*   I_BUFFER_ACTIVE              =
     i_structure_name             = 'ZATRANSP'
     i_client_never_display       = 'X'
*   I_BYPASSING_BUFFER           =
*      i_internal_tabname           = ''
   CHANGING
     ct_fieldcat                  = fieldcatalog
*  EXCEPTIONS
*    inconsistent_interface       = 1
*    program_error                = 2
*    OTHERS                       = 3
  LOOP AT fieldcatalog INTO wa_fieldcatalog.
    IF wa_fieldcatalog-fieldname EQ 'DATUM'.
      wa_fieldcatalog-edit = 'X'.
*     wa_fieldcatalog-f4availabl = ''.
      MODIFY fieldcatalog FROM wa_fieldcatalog.
    ENDIF.
    IF wa_fieldcatalog-fieldname EQ 'VBELN_VL'.
      wa_fieldcatalog-no_out = 'X'.
      MODIFY fieldcatalog FROM wa_fieldcatalog.
    ENDIF.
  ENDLOOP.
ENDFORM.                    "build_fieldcatalog
ZATRANSP is a structure in DDIC.

Similar Messages

  • Unable to add code in USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ

    Hi Experts,
    I need to add some custom codes in USEREXIT_SAVE_DOCUMENT_PREPARE
    -> I opened the include program MV45AFZZ in display mode
    -> Edit -> Enhancement operations -> Show implicit enhancement operations.
    On the status bar it displays an information "Creating of enhancement supported only for line length > 72" 
    inside form USEREXIT_SAVE_DOCUMENT_PREPARE I right clicked -> selected enhancement implementations -> create.
    and now I get the same message On the status bar "Creating of enhancement supported only for line length > 72"  .
    how do I add a piece of code here.
    I can't type in under USEREXIT_SAVE_DOCUMENT_PREPARE.
    Give a solutions experts.
    Regards,
    Ranjith N

    Hi ,
    I believe we need not use the enhancement framework in MV45AFZZ
    Go to SE38 -> MV45AFZZ -> change mode
    Keep the mouse on the user exit USEREXIT_SAVE_DOCUMENT_PREPARE
    On the tool bar click on "Insert" icon ->icon description: Insert Line Area
    ControlShiftF8....
    An editable area will be displayed with a
    *{   INSERT         &$&$&$&$                                          1
    *---> Write code here
    *}   INSERT
    Save and activate the code
    Hope it helps
    Regards
    Byju

  • Runtime Error  -GETWA_NOT_ASSIGNED when running COI

    Hi ALL,
    We are getting run time error -  GETWA_NOT_ASSIGNED when running COI tasks.
    Error analysis
         You attempted to access an unassigned field symbol
         (data segment 32995).
         This error may occur for any of the following reasons:
         - You address a typed field symbol before it is set using ASSIGN
         - You address a field symbol that points to a line in an internal table
           that has been deleted
         - You address a field symbol that had previously been reset using
           UNASSIGN, or that pointed to a local field that no longer exists
        - You address a global function interface parameter, even
          though the relevant function module is not active,
          that is it is not in the list of active calls. You can get the list
          of active calls from the this short dump.
    How to correct the error
        You may able to find an interim solution to the problem
        in the SAP note system. If you have access to the note system yourself,
        use the following search criteria:
        "GETWA_NOT_ASSIGNED" C
        "CL_UC_COI_ACT_PT==============CP" or "CL_UC_COI_ACT_PT==============CM00P"
        "REDUCE_GOODWILL_ENTRIES"
        If you cannot solve the problem yourself and you wish to send
        an error message to SAP, include the following documents:
        1. A printout of the problem description (short dump)
           To obtain this, select in the current display "System->List->
           Save->Local File (unconverted)".
    2. A suitable printout of the system log
        To obtain this, call the system log through transaction SM21.
        Limit the time interval to 10 minutes before and 5 minutes
        after the short dump. In the display, then select the function
        "System->List->Save->Local File (unconverted)".
    3. If the programs are your own programs or modified SAP programs,
        supply the source code.
        To do this, select the Editor function "Further Utilities->
        Upload/Download->Download".
    4. Details regarding the conditions under which the error occurred
        or which actions and input led to the error.
    Information on where terminated
        The termination occurred in the ABAP program "CL_UC_COI_ACT_PT==============CP"
         in "REDUCE_GOODWILL_ENTRIES".
        The main program was "UCUWB000 ".
        The termination occurred in line 722 of the source code of the (Include)
         program "CL_UC_COI_ACT_PT==============CM00P"
        of the source code of program "CL_UC_COI_ACT_PT==============CM00P" (when
         calling the editor 7220).
    702   call method do_inv_net_change->create_data_reference
    703     exporting
    704       i_type   = cl_uc_coi_inv_net=>gc_ref_pt_block
    705       io_model = do_model
    706     importing
    707       er_data  = lr_t_data.
    708   assign lr_t_data->* to <lt_share_block>.
    709   call method do_inv_net_change->get_block
    710     importing
    711       et_pt_shares = <lt_share_block>.
    712
    713   create data lr_s_data like line of <lt_share_block>.
    714   assign lr_s_data->* to <ls_share_block>.
    715 * change due to selling invor's transaction
    716   read table <lt_share_block> into <ls_share_block> index 1.
    717
    718 * direct shares prior to divestiture
    719   assign component 'R_TH_DSH_OLD'
    720     of structure <ls_share_block> to <lr_th_dsh_old>.
    721   assign <lr_th_dsh_old>->* to <lt_dsh_old>.
    >>>>   create data lr_s_data like line of <lt_dsh_old>.
    723   assign lr_s_data->* to <ls_dsh_old>.
    724   assign component ucf6_cs_coi_fld-pcnt1
    725     of structure <ls_dsh_old> to <pcnt1_7a>.
    726
    727 * change of direct shares in divestiture
    Please provide your suggestions.
    Edited by: VM2727 on Feb 10, 2012 3:27 AM

    Or even these ones:
    SAP Note 1480856 - C/I: Program termination GETWA_NOT_ASSIGNED
    Symptom
    When you execute the consolidation of investments, a program termination
    occurs (short dump GETWA_NOT_ASSIGNED in the method CREATE_OCI_LIST of the
    class CL_UC_COI_ACT).
    Note 1467924 - Termination GETWA_NOT_ASSIGNED in CL_UC_COI_ACT_PD
    Symptom
    When you execute the consolidation of investments, the program termination GETWA_NOT_ASSIGNED occurs in the method CALC_NET_INCOME_MEM of the class CL_UC_COI_ACT_PD.

  • Exit MV45AFZZ is not working as per our requirement

    Hi Friends,
    In the transaction 'VA02' based on the Sales Order type and the Delivery Block I want to change the Schedule line category in the Sales Order item. We used the exit MV45AFZZ (FORM USEREXIT_SAVE_DOCUMENT_PREPARE) and it changes the Schedule line category as per our requirement.
    The problem is that once the Sales Order is saved with the new Schedule line category it does not transfer the requirements to the Stock/Requirements List(Transaction MD04). But if we change the Schedule line category in Sales Order manually (without using the exit) then the requirements are transfered to the Stock/Requirements List which we can see against that Material in the Transaction MD04. Could you kindly help.
    Regards

    Hi Raju,
    The below code only triggers
    FORM USEREXIT_MOVE_FIELD_TO_VBKD.
    VBKD-zzfield = xxxx-zzfield2.
    ENDFORM.
    when there is some manual change done on the Schedule line. So the control of the program will not stop on this form. Kindly suggest.
    Regards
    Siddharth

  • GETWA_NOT_ASSIGNED in RMVKON00 (background job)

    Hello everyone
    We're having the following recurring problem:
    There's a job running the first of every month, it uses an ALV GRID with this statement: REUSE_ALV_GRID_DISPLAY.
    When it's run normally (not scheduled) it works perfectly, but when it is scheduled we get a GETWA_NOT_ASSIGNED shortdump.
    We have adjusted RMVKON00 (to ZRMVKON00) to add 2 columns to the ALV display by following the strategy of creating a work area and adding it to the ALV's internal table structure.
    Function call Code
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'             
           EXPORTING                                     
                i_buffer_active          = space         
                i_callback_program       = c_repid       
                i_callback_pf_status_set = c_pf_status_set
                i_callback_user_command  = c_user_command
                i_structure_name         = 'I_TAB'       
                it_fieldcat              = tab_fieldcat[]
                it_sort                  = tab_sort[]    
                is_layout                = s_layout      
                i_save                   = c_save        
                is_variant               = s_variant     
                it_events                = tab_events[]  
           TABLES                                        
                t_outtab                 = i_tab.        
    I_TAB setup
    TYPES: BEGIN OF watype,
            mandt  LIKE rkwa-mandt,
            mblnr  LIKE rkwa-mblnr,
            mjahr  LIKE rkwa-mjahr,
            zeile  LIKE rkwa-zeile,
            status LIKE rkwa-status,
            bldat  LIKE rkwa-bldat,
            budat  LIKE rkwa-budat,
            bukrs  LIKE rkwa-bukrs,
            sobkz  LIKE rkwa-sobkz,
            lifnr  LIKE rkwa-lifnr,
            werks  LIKE rkwa-werks,
            matnr  LIKE rkwa-matnr,
            shkzg  LIKE rkwa-shkzg,
            gsber  LIKE rkwa-gsber,
            bwaer  LIKE rkwa-bwaer,
            wrbtr  LIKE rkwa-wrbtr,
            bstme  LIKE rkwa-bstme,
            bstmg  LIKE rkwa-bstmg,
            hkont  LIKE rkwa-hkont,
            mwskz  LIKE rkwa-mwskz,
            belnr  LIKE rkwa-belnr,
            gjahr  LIKE rkwa-gjahr,
            buzei  LIKE rkwa-buzei,
            navnw  LIKE rkwa-navnw,
            prctr  LIKE rkwa-prctr,
            text   LIKE zconalv-text,
            name1  LIKE lfa1-name1,
            maktx  LIKE makt-maktx,
           END OF watype.
    DATA: alv_itab TYPE watype.
    I_TAB fill in FORM alv_list
    Fill itab with current rkwa table, and add corresponding
    Vendor name & Material Desc.
    DATA: i_tab TYPE TABLE OF watype,
          i_tabRow TYPE watype.
    LOOP AT t_alv_list.
      MOVE-CORRESPONDING t_alv_list TO i_tabRow.
      SELECT SINGLE name1 INTO i_tabRow-name1
      FROM LFA1
      WHERE lifnr = t_alv_list-lifnr.
      SELECT SINGLE maktx INTO i_tabRow-maktx
      FROM MAKT
      WHERE matnr = t_alv_list-matnr.
      INSERT i_tabRow INTO TABLE i_tab.
    This is an extract of the shortdump:
    Transaction......... " "                                                 
    Program............. "SAPLKKBL "                                         
    Screen.............. "SAPLKKBL 0500"                                     
    Screen line......... 3                                                                               
    Information on where termination occurred                                                                               
    The termination occurred in the ABAP/4 program "SAPLKKBL " in            
    "CHECKBOX_OUT".                                                          
    The main program was "ZRMVKON00 ".                                                                               
    The termination occurred in line 1148                                    
    of the source code of program "LKKBLF01 " (when calling the editor 11480).
    The program "SAPLKKBL " was started as a background job.                 
    Any help is much appreciated.
    Edit: shortdump extract added
    Message was edited by: Tim Schraepen

    I have found the thing that was causing the error!
    If you look at the short dump it says something about program LKKBLF01 on line 1148.
    I went to take a look at that line.
    <i>  if not r_sum is initial or <box> = '-'.</i>
    That <box> statement got me thinking that the layout could be the cause, so I commented out the layout parameter line like this:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_buffer_active          = space
                i_callback_program       = c_repid
                i_callback_pf_status_set = c_pf_status_set
                i_callback_user_command  = c_user_command
                i_structure_name         = 'ZRKWA'
               i_structure_name         = 'T_ALV_LIST'
                it_fieldcat              = tab_fieldcat[]
                it_sort                  = tab_sort[]
    <b>*            is_layout                = s_layout</b>            i_save                   = c_save
                is_variant               = s_variant
                it_events                = tab_events[]
           TABLES
               t_outtab                 = i_tab.
              t_outtab                 = t_alv_list.
    And it worked!
    Here's an important note I found in the documentation about that parameter:
    <i>Interaction
    box_fieldname
    Value range: SPACE, field name of the internal output table
    If the list should have checkboxes at the beginning of each list row (to allow the user to select multiple rows at once), you must fill this parameter with the field name of the internal output table that represents the selection column for selecting rows with the help of checkboxes.
    The field is always displayed as a checkbox at the beginning of each list row without a list heading.</i>
    I don't know why this has something to do with it, but my problem is solved. I will look into it further and update when I've found a better solution.
    Thank you for all your help Christian.
    I really appreciate it.

  • GETWA_NOT_ASSIGNED error while scheduling job through F9

    Hi All,
    i am getting <b>GETWA_NOT_ASSIGNED</B> dump while scheduling a job through F9 and giving local printer as LP01.
    any pointers regarding this ?
    thanks
    kunal kishan

    Hi Ankesh,
    can you please elaborate on this.???
    Basiclly when i am trying to schedule a job by pressing F9 and setting it to immediate. when i chek in SM36, the job gets cancelled. The dump says "GETWA_NOT_ASSIGNED" error. The source code where the error is soming is a refresh statement.

  • Short Dump  while scrolling on the ALV (GETWA_NOT_ASSIGNED)

    Hi All,
    I have an interactive ALV list, After the user double click on the list line item,
    the list control goes to top of the list.
    When i want to scroll  for further interaction, I am getting  a Short dump  GETWA_NOT_ASSIGNED.
    Please advice
    Solomon

    Hi
    Please find the ALV code
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = hf_repid
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
          it_fieldcat              = int_fieldcat[]
          it_sort                  = int_sort[]
          is_layout                = fs_layout
          i_save                   = 'A'
          is_variant               = alv_variant
          it_events                = int_events[]
        TABLES
          t_outtab                 = i_bsid
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM.                               " write_alv_report
    FORM user_command *
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
      IF selfield-tabindex GE 1.
        check sy-ucomm <> 'POST'.
        READ TABLE i_bsid into i_bsid_alv INDEX selfield-tabindex.
        CASE I_BSID-CHECK.
          WHEN SPACE.
            I_BSID-CHECK = 'X'.
          WHEN OTHERS.
            I_BSID-CHECK = ''.
        ENDCASE.
        MODIFY I_BSID TRANSPORTING CHECK  WHERE matchkey = i_bsid_alv-matchkey.
      ENDIF.
      selfield-refresh = 'X'.
    *CLEAR selfield.
    ENDFORM.                    "user_command
    FORM SET_PF_STATUS *
    FORM set_pf_status USING extab TYPE slis_t_extab.
      data : lv_answer(1) TYPE c.
      SET PF-STATUS 'S200'.
      IF SY-UCOMM = 'POST'.
        I_BSID_ALV1[] =  I_BSID[].
        DELETE I_BSID_ALV1 WHERE CHECK  = SPACE.
        CLEAR I_BSID[].
        I_BSID[] = I_BSID_ALV1[].
      ENDIF.
    2. when I double click on the ALV list line item, after the line is selected the control goes to the top of the list.
    I have already setup the ALV menu bar.

  • Short dump GETWA_NOT_ASSIGNED while transporting Datasource in BI 7.0

    Hi Friends,
    I am getting an error, while trying to transport Datasource into quality system. The Transport request log says that "Program terminated (job: RDDEXECL, no.: 11372100)"
    If I check the log in SM37 of target system it gives following steps
    29.06.2007 11:37:21 Job started
    29.06.2007 11:37:21 Step 001 started (program RDDEXECL, variant , user ID DDIC)
    29.06.2007 11:37:21 All DB buffers of application server bdhp4488 were synchronized
    29.06.2007 11:37:30 SQL: 29.06.2007 11:37:30 DDIC
    29.06.2007 11:37:30  CREATE UNIQUE INDEX "/BIC/B0000566001~0" ON
    29.06.2007 11:37:30 "/BIC/B0000566001" ("REQUEST", "DATAPAKID",
    29.06.2007 11:37:30 "PARTNO", "RECORD") PCTFREE 10 LOCAL INITRANS 002
    29.06.2007 11:37:30 TABLESPACE PSAPSR3 STORAGE (INITIAL
    29.06.2007 11:37:30 0000000016 K NEXT        0000000160 K MINEXTENTS
    29.06.2007 11:37:30 0000000001
    If I see the short dump in ST22 in target system (quality) The I get error
    "Runtime Errors         GETWA_NOT_ASSIGNED"
    Could somebody help me in resolving this?
    Thanks and regards,
    Balaraj

    Thanks Edwin,
    My issue is still not resolved.
    Now the error that I am getting while transporting the Transformation is
    Program terminated (job: RDDEXECL, no.: 12091300)
    The SM37 job log says that
    "Job started
    Step 001 started (program RDDEXECL, variant , user ID DDIC)
    All DB buffers of application server bdhp4488 were synchronized
    ABAP/4 processor: GETWA_NOT_ASSIGNED
    Job cancelled"
    When i see the dump in ST22. It says that it could not find entry in one of the tables
    "   READ TABLE p_t_mapping ASSIGNING <fs_map>
       WITH KEY target_stepid = 0
                targetsegid   = <fs_posit>-rulesegid
                targetposit   = <fs_posit>-ruleposit
                targetid      = 0.
    Sy-subrc <> 0 for this read.
    Could you please advise?
    Thanks and regards,
    Balaraj

  • GETWA_NOT_ASSIGNED - Runtime Error in MIGO

    Dear All
    I am receiving GETWA_NOT_ASSIGNED - Runtime Error in MIGO transaction for a particular user only in production system. I am not able to narrow down is this transaction specific or user issue.  I searched the forum and not able to get reason.  If someone knows about ths kindly give me a hint.
    Regards,
    Venkat

    Hi,
    Please check if any User Exit BADI implemented and have a look into below thread
    Reg Dump in MIGO Transaction
    GETWA_NOT_ASSIGNED run time error_MIGO processing stock transport order
    Shiva

  • GETWA_NOT_ASSIGNED error while running abap prog in process chain

    Hi.
    I am getting a runtime error GETWA_NOT_ASSIGNED while running an ABAP program in process chain.
    But when i execute pro in SE38 , it's not giving any error.
    Please any one can suggets what will be error.

    Hi,
      i also used to get error for a program executed through process chain but when it is executed in se38 it used to work... that is because my program try to access a application server folder and reads the file from there... the authorisation to this is not proper through process chain ..... once authorisation to the folder was given properly .. i am able to run...
      Such things can happen in your case also... Try to analyse the dump in st22.... what happened ...
    Regards
    vamsi

  • Error in GETWA_NOT_ASSIGNED in VL10A

    Dear All,<br><br>
          Recently we upgrade 4.6c to ECC 6. After that we have a problem, while we run the Sales return useing VL10A in background, it's going to dump.<br><br>
    <br>Error is,
           <pre>GETWA_NOT_ASSIGNED.
    What happened?                                                              
        Error in the ABAP Application Program
        The current ABAP program "SAPLV50S" had to be terminated because it has 
        come across a statement that unfortunately cannot be executed.     
    Error analysis  
        You attempted to access an unassigned field symbol
        (data segment 466).                        
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN                                         
        - You address a field symbol that pointed to the line of an
          internal table that was deleted                       
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no      
          longer exists                                           
        - You address a global function interface, although the
          respective function module is not active - that is, is     
          not in the list of active calls. The list of active calls    
          can be taken from this short dump.                       
    *Trigger Location of Runtime Error *   
        Program                                 SAPLV50S
        Include                                 /SPE/V50SF07
        Row                                     437
        Module type                             (FORM)
        Module Name                             /SPE/RET_HUS_GET
    429 ****************************************************
    430 *  This should only run in delivery item processing     
    431 ****************************************************        
    432   CHECK if_get_hus IS INITIAL.                              
    433  
    434
    435
    436 *...First: Read corresponding item(s) of HU(S) to delivery item
    >>>>   LOOP AT verpo_tab ASSIGNING <fs_verpo_tab> WHERE vbeln = xlips-vbeln AND
    438                                                    posnr = xlips-posnr.
    439
    440 *...Second: Read corresponing HU head send by EWM for necessary compare of VENUM
    441                 
    442     READ TABLE verko_tab INTO ls_verko_tab WITH KEY venum = <fs_verpo_tab>-venum
    443                                                                    BINARY SEARCH.
           <fs_verko_tab>  local data field was not found in subroutine SAPLV50S</pre>
    <br><br>
          Please could you help me as soon as possible.
    <br><br>
    Thanks & Regards,<br>
    Ahmed Arsath. A
    <br><br>
    Edited by: Ahmed Arsath Abdul Azees on Dec 15, 2009 7:48 AM
    <br><br>Edited by: Matt on Dec 15, 2009 12:48 PM - fixed formatting

    The code is
    LOOP AT verpo_tab ASSIGNING <fs_verpo_tab> WHERE vbeln = xlips-vbeln AND
                                                     posnr = xlips-posnr.
    Total nonsense to say that the problem is caused by verpo_tab being empty.
    As I've already said: unless this is part of a user exit it is standard SAP code.   The original poster hasn't left anything out! Therefore OSS is the correct place to look.
    Edited by: Matt on Dec 15, 2009 4:52 PM

  • How to make means of transport field as a mandatory field  in MV45AFZZ

    Hi All,
    I am new to User-Exits.
    In Sales Order creation I have got a requirement In such a way that based on Sold to and Shipto Party Combination of sales order
    I have to make Means of Transport Field as a Mandatory Field.
    I have gone through the Program MV45AFZZ.
    Please let me know how to do it .
    Regards.
    Rohit.

    Hi ,
    Write code in Save_Document_prepare In program MV45AFZZ.
    Constant :c_flag type c .
    if c_flag  eq space.
    IF VBAK-VSBED EQ '01' AND VBKD-TRATY IS INITIAL.
      MESSAGE E0001(SABAPDOCU) WITH 'Enter means of transport'.
    endif.
    c_flag   = 'X'.
    endif.
    Regards.
    Eshwar.

  • Does MV45AFZZ user exit trigger when CRM sales order is replicated into ECC

    Hi All,
    When a Sales order is created in CRM, it is replicated automatically using BDOCS from CRM into ECC.
    I have requirement to code the logic during the process, when sales order is replicated into ECC.
    So I need to know the BAPI which is actually triggered to create sales order in ECC, while replication takes place.
    If I could atleast know, if USEREXITS in MV45AFZZ would trigger or not, when CRM order is replicated into ECC, then I could determine, If I could code my logic in those user exits.
    Please help me on this.

    please check this link
    keremgomi=wordpress=com
    Rgds
    Raj

  • T-code MDBT runtime error  GETWA_NOT_ASSIGNED

    Hell everyone.
    I copied a client from another client,then I runned MRP in the new client by T-code MDBT.
    It happened an error.
    Can anybody tell me how I can reslove this issue?
    Thanks & Best regards!
    The detail error as below:
    Runtime Errors         GETWA_NOT_ASSIGNED
    Date and Time          2010.06.19 11:01:46
    Kurztext
         Field symbol has not yet been assigned.
    发生了什么?
         Error in ABAP application program.
         The current ABAP program "FCR05205" had to be terminated because one of the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
    你能做什么?
         Print out the error message (using the "Print" function)
         and make a note of the actions and input that caused the
         error.
         To resolve the problem, contact your SAP system administrator.
         You can use transaction ST22 (ABAP Dump Analysis) to view and administer
          termination messages, especially those beyond their normal deletion
         date.
         is especially useful if you want to keep a particular message.
    错误分析
        You attempted to access an unassigned field symbol
        (data segment 11).
        This error may occur for any of the following reasons:
        - You address a typed field symbol before it is set using ASSIGN
        - You address a field symbol that points to a line in an internal table
          that has been deleted
        - You address a field symbol that had previously been reset using
          UNASSIGN, or that pointed to a local field that no longer exists
        - You address a global function interface parameter, even
          though the relevant function module is not active,
          that is it is not in the list of active calls. You can get the list
          of active calls from the this short dump.
    如何更正此错误
        You may able to find an interim solution to the problem
        in the SAP note system. If you have access to the note system your
        use the following search criteria:
        "GETWA_NOT_ASSIGNED" C
        "FCR05205" or "FCR05F00"
        "PUT_P_VGWXX"
        If you cannot solve the problem yourself and you wish to send
        an error message to SAP, include the following documents:
        1. A printout of the problem description (short dump)
           To obtain this, select in the current display "System->List->
           Save->Local File (unconverted)".
        2. A suitable printout of the system log
           To obtain this, call the system log through transaction SM21.
           Limit the time interval to 10 minutes before and 5 minutes
           after the short dump. In the display, then select the function
           "System->List->Save->Local File (unconverted)".
        3. If the programs are your own programs or modified SAP programs,
           supply the source code.
           To do this, select the Editor function "Further Utilities->
           Upload/Download->Download".
      4. Details regarding the conditions under which the error occurred
         or which actions and input led to the error.
    Edited by: lzjsdxg on Jun 19, 2010 6:35 AM

    Are there anybody can help me?
    Thanks!

  • Help needed in Form userexit_save_document_prepare include MV45AFZZ

    Hi Experts,
    I need to check the values entered in table control under sales tab in VA01.
    If the item category for a material is 'TANN' it should save if not it should not save and display an error message and then it should alow the user to edit the table control values. 
    how do i achieve it in Form userexit_save_document_prepare include MV45AFZZ.
    this is what I have done. kindly check the logic and help me further.
    case sy-ucomm.
    when 'SICH'.          " On Save action
    if vbak-vtweg eq 'HA'.  " Check Distribution channel
      flg_dh = 'X'.         " Sets if DC is 'HA'.
    endif.
    if flg_dh eq 'X'.
      if vbap-pstyv eq 'TANN'.    " Check item category
        flg_itmc = 'X'.            " Set if item cat is 'TANN'.
      else.
      message 'SO could not be created Please enter brokerage material' type 'E'.
      endif.

    Hi,
    Please use the following:
    when 'SICH'.          " On Save action
    if vbak-vtweg eq 'HA'.  " Check Distribution channel
      flg_dh = 'X'.         " Sets if DC is 'HA'.
    endif.
    if flg_dh eq 'X'.
      if vbap-pstyv eq 'TANN'.    " Check item category
        flg_itmc = 'X'.            " Set if item cat is 'TANN'.
      else.
      message 'SO could not be created Please enter brokerage material' type 'E' display like 'E'.
      endif.
    endif.

Maybe you are looking for

  • Query to get G/L accounts even with the Zero transactions

    Dear experts, i have tried a query as below SELECT T0.[AcctCode], T0.[AcctName], T0.[CurrTotal] AS 'Bank Balance', sum(T1.[Debit]) as 'Payment', sum(T1.[Credit]) as 'Collection' FROM OACT T0  LEFT OUTER JOIN JDT1 T1 ON T0.AcctCode = T1.Account WHERE

  • Use of NI6711 card.

    How I have asked before, i need generate four signal: 1) One sine- wave signal from 0 to -4 Volt, and frequency less than 100 KHz. 2) One trigger signal, amplitude 10 V, frequency 3200 Hz and pulse- width from 1 to 10 micro Seconds. 3) Two trigger si

  • How  does Down payments against sales orders work?

    Hi Gurus, Can anyone explain me How Down payment against sales orders work? Please give step by step details with configuration. Regards, partha [email protected]

  • Need help regarding implementing SSAS solution using microsoft decision trees algorithm

    Hi All, I am new to SSAS and Data Mining techniques. I dnt have a good knowledge about data mining in SSAS.  I have a requirement regarding predictive analysis and want to check whether i can implement SSAS for it.  I have two tables namely Tree and

  • Acknowledgement errors in PI - JMS scenario

    Hello, We have a scenario R3 Idoc -> PI7.0 -> JMS. After the Idoc message is sent to PI, In the sxi_monitor, in acknowledgement status column, I normally see a red icon which says ack not possible. But for few JMS interfaces, I observe there is a gre