MV45AFZB - FORM USEREXIT_CHECK_VBAP USING US_DIALOG - incompletion log

Hello,
I'm struggling with a problem concerning the incompletion log after deleting a value in the named user exit.
I check if the profit center has a certain value in the form  USEREXIT_CHECK_VBAP USING US_DIALOG. if this is the case, the system deletes the value. But my problem is that at this moment, the incompletion log is not updated. Do I have to update the table xvbuv manually with the new entry ? Or is there another way to update this ?
Thanks in advance !

That's not entirely true - it depends on the user, what changes on the line item, and what the criteria are for blanking out the value.  Removing the value would be the normal trigger if the field is in the item incompletion procedure but not necessarily if done via code.
The incompletion check occurs in routine VBAP_PRUEFEN_ENDE and requires that something has changed in VBAP in order to be triggered.  If the routine has already been called and then you change a VBKD-based value on the item, such as the incoterms, then the incompletion check is skipped but the userexit_check_vbap call is still made afterwards.  In this scenario, if you click 'Save' after making the incoterms change, the profit center value gets wiped out and no incompletion is triggered unless you append the value back to the table (or make a subsequent check with RV_CHECK_DOCUMENT_INPUT).  I'm assuming this is why the poster asked the question.  Might be a bug, but SAP would probably tell you it's 'working as designed'...

Similar Messages

  • USER_EXIT-MV45AFZB FORM USEREXIT_CHECK_VBAP

    HI ALL...I HAVE ONE OBJECT THAT IS
    IWANTO ADD 3 FIELDS FROM ADRC(POST_CODE1,REGION,COUNTRY) TO VBAP(ZZSHIPTOPC,ZZSHIPTOREG,ZZSHIPTOCO).
    FOLLOWING THIS LOGIC....
         1.ON USER EXIT CHECK INTERNAL TABLE XVBPA FOR THE PARTNER FUNCTIONS AT THE HEADER OR ITEM LEVEL.
    2.THIS UE IS VALID FOR TC VA01 &VA02 ONLY
    3.BEFORE DOING THE SEARCH IN ADRC CHECK THAT THE MATERIAL IS CONFIGURABLE(MARA-KZKFG = 'X').
    4.MOVE FIELDS TO NEW ZZ ....FIELDS IN VBAP.
    PLZ WRITE THIS OBJECT ANY BODY KNOW'S

    *&  Include           ZPLM_ENG_VC_REFCHAR
    TITLE: POPULATE ZFIELDS IN TABLE VBAP BASED ON DOCUMENT LINE ITEM SHIP-TO PARTNER VALUES.
            ZFIELDS REQIRED ARE POSTAL CODE,REGION,AND COUNTRY.
    TRANSACTION: VA01,VA02.
    PROGRAMMER: JANARDHAN REDDY.
    DATE:07/24/2008.
    *DATA DECLARETION.
    TYPES:BEGIN OF STR_ADRC,
          POST_CODE1 TYPE ADRC-POST_CODE1,
          REGION TYPE ADRC-REGION,
          COUNTRY TYPE ADRC-COUNTRY,
          END OF STR_ADRC.
    DATA:WA_ADRC TYPE  STR_ADRC,
         WA_KZKFG TYPE MARA-KZKFG,
         TAB_ADRC TYPE TABLE OF STR_ADRC.
    TYPES:BEGIN OF STR_VBAP,
          ZZSHIPTOPC TYPE VBAP-ZZSHIPTOPC,
          ZZSHIPTOREG TYPE VBAP-ZZSHIPTOREG,
          ZZSHIPTOCO TYPE VBAP-ZZSHIPTOCO,
          END OF STR_VBAP.
    DATA:WA_VBAP TYPE  STR_VBAP,
         TAB_VBAP TYPE TABLE OF STR_VBAP.
    IF SY-UNAME = 'OFF1'.
    IF SY-TCODE EQ 'VAO1' OR SY-TCODE EQ 'VAO2'.
    *CHECK INTERNAL TABLE XVPA.
    LOOP AT XVBAP.
    SELECT SINGLE KZKFG FROM MARA
                INTO WA_KZKFG WHERE MATNR = XVBAP-MATNR.
    IF WA_KZKFG = 'X'.
    READ TABLE XVBPA WITH KEY VBELN = XVBAP-VBELN    "Step 2
             POSNR = XVBAP-POSNR  PARVW = 'SH'.
       ENDIF.
    IF SY-SUBRC <> 0.
      READ TABLE XVBPA WITH KEY VBELN = XVBAP-VBELN   "Step 3
             POSNR = XVBAP-POSNR  PARVW = 'SH'.
    ENDIF.
    IF SY-SUBRC = 0.
    *GATHER FIELDS FROM ADRC
    SELECT POST_CODE1 REGION COUNTRY FROM ADRC INTO WA_ADRC  "Step 4
          WHERE ADDRNUMBER = XVBPA-ADRNR.
          ENDSELECT.
          ENDIF.
    IF SY-SUBRC = 0.
    *MOVE THE FIELDS TO Z..FIELDS
        MOVE :WA_ADRC-POST_CODE1 TO XVBAP-ZZSHIPTOPC,
              WA_ADRC-REGION     TO XVBAP-ZZSHIPTOREG,
              WA_ADRC-COUNTRY    TO XVBAP-ZZSHIPTOCO.
       MODIFY XVBAP TRANSPORTING ZZSHIPTOPC ZZSHIPTOREG ZZSHIPTOCO.
    ENDIF.
    CLEAR:TAB_ADRC,WA_KZKFG.
    ENDLOOP.
    ENDIF.
    ENDIF.

  • Incompletion log for sales order

    Hi, Experts.
    I am looking for the user-exit for incompletion log for sales order, If the user choose DC = '20', so the incompletion log will check the field of Incoterms.

    hi,
    yes shiva sir is right.
    Form  USEREXIT_CHECK_VBKD
          This Userexit can be used to add additional logic for         *
          checking the sales details for completeness and consistency.  *
          US_DIALOG  -  Indicator, that can be used to suppress         *
                        dialogs in certain routines, e.g. in a          *
                        copy routine.                                   *
          This form is called from form VBKD_PRUEFEN.     
    just adding to the context:
    there are two ways of doing it.
    1. hard code - vbak-vtweg - DC = '20' then system has to check the fields vbkd-inco1 = knvv-inco1, vbkd-inco2 = knvv-inco2.
    2. create a Z table and link the user exit to check what the entries are there in Z table and react according to the entries.  before that in Z table should be with this fields called - vtweg, inco1 &2.
    hope this clears your issue.
    balajia

  • Incompletion log Field VBAP POSEX is not defind in incompltion procedure ZA

    Hi Friends,
    Need some help on this issue.
    We have some orders created in production, and when ever we go to VA02-> enter-> it pops up with the below error  message." Field VBAP POSEX is not defined in incompletion procedure ZA ".
    I already checked the incompletion procuredue and the field VBAP-POSEX (Purchase order item) was not at all defiend.
    It gives the incompletion log for only certain line items in the sales order and not for all. There are already few items delivered and we cannot reject the order to create a new one.
    I reveiwed this note "1497255 - Incompletion for PO item number (vbap-posex)" but it states it is for specifically for intercompnay orders.
    Our case is standard trade order. It woud be really great anyone has come across the same situation so that i can seek for help..
    Thank you so much!!
    Best Regards,
    Ram

    Hi Lakshmipathi,
    Firstly, thanks for the response.
    Yes.. I did checked... the field VBAP-POSEX was not maintained at item level though.
    The same item in other order does not have this problem and it is still open.
    This is specific to only very few orders, namely 4 or 5 orders but not with others.
    Moreover, these materils  are widely used among other company codes or sales org but no issues what so ever.
    This one appears to be a peculiar case. Thanks for your time and suggestions for looking it over.
    Thank you..
    Best Regards,
    Ram

  • Incompletion Log V50UC  EXCTR inconsistency at Delivery header and Item lev

    Hello Experts
    Incompletion Log V50UC  EXCTR inconsistency at Delivery header and Item lev
    This fields and structure is defined both at header and Item Incompletion procedure .
    But at Header level , the field is getting removed , but not at Item level
    V50UC- EXCTR.
    Can you let me know what to do about this inconsistency / any SAP Note etc .
    REgards
    Rohit

    Hello
    This Incompletion log is related to Foreign Trade.
    Check maintain required foreign trade data at Item
    or If foreign trade is not active for your this business process..Check your config for Incompletion procedure for foreign trade by use TCode VI29.
    I hope this suffice your requirment.
    Thanks & Regards
    JP

  • User exit to update the incompletion log in sales order for pricing error

    Hi experts,
    I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incopletion log we can see on menu bar 'EDIT' or ctrl+F8 on main screen of VA01). So that user can save the sales order but it will be in incomplete status.
    I have completed it upto showing the information message using user exit 'MV45AFZZ', but after this i don't know how to update it in incompletion log of sales order for pricing. I tried to update in tables VBUK-UVPRS, but i am not getting the desired result.
    Please anyone can tell me how to update it. In which user exit i can update the incompletion log.
    Thanks and Regards,
    Vicky.

    Hi Vinod,
    I am sending you my code please check it,
       if TKOMK-SPART = 10.
        if XKOMV is not INITIAL.
          clear v_JEXP.
        READ TABLE XKOMV with key kschl = 'JEXP'.
        if sy-subrc = 0.
          check XKOMV-kwert = 0.
          message i003(ZT) with 'Value should not be 0 for conditioin type JEXP'.
          v_JEXP = 'X'.
        else.
          message i003(ZT) with 'Maintain the mandatory Conditioin type JEXP'.
          v_JEXP = 'X'.
        endif.
        if v_JEXP = 'X'.
      XVBUV-MANDT = sy-mandt.
      XVBUV-POSNR = '000010'.
      XVBUV-TBNAM = 'VBAP'.
      XVBUV-FDNAM = 'PRSOK'.
      XVBUV-FEHGR = 20.
      XVBUV-STATG = '06'.
      XVBUV-FCODE = 'PKON'.
      XVBUV-SORTF = 9999.
      XVBUV-LFDNR = 0000.
      XVBUV-UPDKZ = 'I'.
      append XVBUV.
        endif.
    endif.
    endif.
    Please suggest something to solve this.
    Thanks and Regards,
    Vicky.

  • Can text messages in the incompletion log be found in any table?

    We need to store and review the text messages found in the online incompletion log.  Does anyone know if these are stored in a table?  Or if they are always redetermined upon VA01 or VA02 transactions, does anyone know at what point in what program this happens if we need to build our own custom table to capture the messages?

    The incompletion log table is VBUV - Sales Document: Incompletion Log
    I think the table is filled in one of the following:
    > Function module - RV_CHECK_DOCUMENT_INPUT
    > Include - LV45FFUV: FORM FEHLER_BESTIMMEN
    I hope this helps.
    Gerard
    P.s. Also look for structure VBUV_TAB as I think XVBUV comes for here.
    Edited by: Gerard Magorrian on Oct 1, 2010 9:04 PM

  • Function to return incompleteness log of Delivery

    Hello,
    We use the function BAPI_OUTB_DELIVERY_CREATE_SLS to automatically create deliveries for our mobile devices. On occasion, the log "Batches / valuation types not completely allocated" is reported for items with incomplete or no batch splits at posting. The problem isn't the materials because a new order with the same materials and customer can be created and posted without any errors. There are also no reports of this occurring when deliveries are created manually.
    Does anyone know why this (sometimes) happens when using function BAPI_OUTB_DELIVERY_CREATE_SLS? If no, is there a function which can return the incompleteness log of a given delivery, so we can refresh an item batch split if it fails?
    Nicholas
    Edited by: Nicholas Archer on Feb 6, 2012 4:06 PM

    Shiva,
    Thanks for your response. This note has already been implemented in out system (ECC 6.0, appl 600 level 018).
    Do you have any other suggestions?
    Nicholas

  • Javascript Variables on Form Login using HttpClient

    Hi,
    I am currently using HttpClient to log onto a forum. As of now I am successfully able to submit a form, which authenticates me, and then takes me to a redirect page(where it welcomes me, stating my username) and then redirects me to the index. On inspecting the code, I saw that some javascript variables are set based on the cookies. However, the httpclient is unable to do this redirection on its own and hence the javascript variables are not getting set and when I subsequently open a new get connection to the index it does not have those javascript variables set and I lose the session.
    I hope I've made my problem clear. Is there any way I could set those javascript variables myself?
    Thanks.

    nikhilm wrote:
    some javascript variables are set based on the cookiesThen just send those cookies along with the request. The session is usually maintained through a cookie with some unique identifier. You should have retrieved this cookie in the response of the login request.

  • Incompletely Log

    Hi,
    I Maintain Copy Control
    Goto VTAA - Copy control sales document to sales document
    Copy RE - OR sales Order Document
    Rename To ZOR6 - ZOR4
    then...
    I'm trying to create a sales order (Doc type - ZOR6) with reference to another sales document (Doc type -ZOR4)
    that sales order's price is zero , because this sales order is one of  "swtich goods".  
    the error log about that "net price" is incompletely.
    how can i do??
    PLZ let me know what you think in detail.
    Thanks,
    ML
    Edited by: ML0324 on May 31, 2010 8:16 AM

    >May i got the wrong copy document type ?
    >Maybe i shouldn't to copy that document type RE(Returns) - OR(standard order) and rename to ZOR6 - ZOR4
    There is no error in copying reference to create a Z sales doc type
    The error is with reference to Incompletion log maintain with Item Category you are using for these doc.
    Say, you are using I Cat TAN, which has a standard Incompletion procedure attached to it, 20 - Standard Item.
    For this, you can maintain a Z I Cat with  incompletetion procedure 26-Free of Charge Serv.
    or you can create a Z Incompletetion log based on your business process requirement by using tcode. OVA2.
    And determine incompletetion procedure by using tcode. VUP2
    For your information, you can find assigned Incompletion Proced. in Incompletion Proced. under Transaction flow section of Sales Doc Type and Item Category Type.
    > why the exchange goods order need reference with price???
    That is purely on your business process requirement.
    In my opinion for reference purpose you should have price, but statistical.
    Thanks & Regards
    JP

  • Status groups in incompletion log

    can anybody explain what is the use of status group in incompletion log?

    In this “incompleteness procedure”, important fields are assigned and by using <b>“status group”</b>, documents can be blocked at each level of processing, if values have not been maintained in those fields.
    Incompleteness procedure does not concern whether correct values have been maintained or not. It only concerned whether value has been maintained or not.
    General (Generally Incomplete):
    This control, records certain information about the fields at header level. Ex.: PO number is not maintained.
    Delivery (Incomplete for Delivery):
    This control, records certain information about the fields. Ex.: Shipping points at item level and issues appropriate message on the status bar.
    Billing document (Incomplete for Billing):
    This control records appropriate status message if certain billing information is missing. Ex.: payment terms.
    Price (Incomplete with reference to pricing):
    This control records appropriate information if data at item level has been missed. Ex.: price.
    and so on
    Regards
    AK

  • No Incompletion Log for Sales Order with net value as zero

    Hi all,
    There is an Inbound IDOC which creates a Sales Order.
    When we check the IDOC, we find that it has got 4 line items (E1EDP01). However, for all the items except the third one (for example), the segment E1EDP05 is filled. In the segment E1EDP05 the field KRATE contains the corresponding net value for the respective line items.
    Then when we check Sales Order which is created, we find that the third line item (for example) has the net value as zero. In this case, ideally there should have been an entry in the Incompletion Log. However, it does not happen so.
    I suppose the issue is with the third line item in the IDOC for which the segment E1EDP05 is not present. I have debugged the corresponding FM is IDOC_INPUT_ORDERS, but was unable to find any clue.
    Please let me know the reason for this.
    Thanks and regards,
    Anishur

    In routine interpret_idoc_orders the item conditions are filled by calling
    WHEN 'E1EDP05'.
           MOVE IDOC_DATA-SDATA TO E1EDP05.
           PERFORM ZUORDNEN_ORDERS_E1EDP05.
    In case KRATE is empty no values are transferred to the order
        IF NOT E1EDP05-KRATE IS INITIAL.
          PERFORM IDOC_CUR_MOVE USING E1EDP05-KRATE XKOMV-CURRDEC
                                      XKOMV-KOEIN
                                      XKOMV-KBETR D_FLAG_P-PKON.
        ENDIF.
    If that is a valid scenario, you need to adjust your incompletion procedure in customizing to include the net value on item level so any missing value is reported.
    If this is not supposed to happen you might want to hook into one of the user exits in the idoc and in case KRATE is missing let the idoc fail.
    Hope that helps,
    Michael

  • Function Module for Incompletion Log in Sales Order

    Hello All,
    Can anybody provide me the function module when the sales order is incomplete due to Incompletion log.
    Thanks,

    HI,
    Use the functional module:   RV_MISSING_DOCUMENT_DATA.
    Goto SE37 and press F7, input the material/order number etc in the import data field  VBCOM.
    And then execute the module. By using this module we will get all the incomplete items in an order.
    If you want list of incomplete orders, use V.02 transaction code.
    Regards,
    Satya.

  • Two different Incompletion log in item level for one sales document type

    Hi All,
    we are using one sales document type for 5 different sales org, now we are implemented new sales org.
    pervious all 5 sales org we have setup incompletion log at item level 5 fileds.now for new sales org we need to setup out 5 fields we need to setup 3 field.
    how to maintain same sales document type 2 different incompletion log.
    i have checked in forum i found out below link.but is not matching for my requirement.
    http://forums.sdn.sap.com/thread.jspa?threadID=1433420
    Thanks,
    Kumar

    Hi ,
    Thanks for your responds.
    i will check with my ABAP  person if any thing is required i will come back to you.
    Thanks,
    kumar

  • Incompletion log for new order type

    Can you tell me for setting the incompletion log for an order type what is the procedure

    Hi Pooja,
    Let me make it very simple for you.
    Firstly, you will have to go into customizing SPRO - SD - BASIC FUNCTIONS - LOG OF INCOMPLETION ITEMS.
    1) Select Define Incompletion Procedure.
    You will be asked whether to create at Sales Order Header or Sales Order item
    Choose Sales Order Header, and either copy an existing incompletion procedure or click on new entries and assign a number range and then define the table and field names which you want to be compulsoraily inputted in the Sales Order at the time of saving.
    I am sure you know how to get the table and field names, press F1 in the relevant field and go to techincal details, and get it from there.
    Now if say you want to issue a warning to the user if he doesnt input any of the fields that you have entered in your incompletion procedure, just make sure you tick in the warning field.
    Also based on your business scenario, you can decide what level of action you want to take if the Sales Order is not entered with all the relevant field names that you just maintained in your incompletion Log.
    This can be handled by the column called " Status Group "
    Based on the status group you can decide whether to restrict Billing of the order or Delivery as so on against each table and field name that you must have maintained in your incompletion procedure.
    Just make sure the tick that you see in Status Group, means that particular activity is restricted.
    Now once you finalize all the table and field names along with status group and warning messages, now is the time to assign this incompletion procedure against your sales order document type in transaction VOV8 (Please note we are using VOV8 since we earlier defined this procedure for Sales Order Header)
    If you would have choosen Sales Document Item, then you would had assigned this incompletion procedure against your item category in transaction VOV7.
    Now once this maintenance is done, you are ready for testing.
    I hope this will help you.
    If it does please dont forget to reward points for contribution.
    Regards
    Ravi

Maybe you are looking for

  • Transaction Codes used for clearing Open Items

    Hi Gurus, I want to know all the T.Codes used for clearing normal transactions and Open Items. Please tell me when to use which code (viz., while clearing vendors, customers, WH Tax, etc) Your earliest reply will be of great help. and naturally i wil

  • Exchange 2013 SMTP Mail Flow from external domains

    I have query related to mail flow for incoming mails from external domains from Internet facing site. There are two sites - Site A & Site B. Both have Exchange 2013 CAS servers in NLB and Exchange 2013 Mailbox in individual DAG - say DAG1 in Site A a

  • Export to pdf...everything too small and shifted to the right

    I've been using pages to work on a training manual. The online printer I am using requires pdf. When I export to pdf, the resulting document is shifted to the right and is smaller. I can't seem to find anything about how to make it look right. I've a

  • How to put character "ñ" on SMB domain?

    Hi, my name is Olmedo. I would like to know if somebody put the character ñ (enie) in the domain name for SMB on MacOS X Server. I have carried out the changes of the Latin page codes 850 and 851 and it doesn't accept the field the character in Spani

  • SWF Video file made with AVS

    I have a videofile given to me from the client as a SWF, they have used AVS software to convert. I load the SWF file in using MovieClipLoader, it plays ok, however, I can't seem to control it. I need to know when the clip is finished, and for it to s