User exist for controlling the OutPut type in sales order

Hi
Is their any exist which controls the output type based on header data of the order? VA01/02.
Best regards
Satish Kumar K

Hi,
IN the VOFM routine you can use the structure KOMKBV1 which will be populated with the sales org (VKORG), division (SPART) and order type (AUART).
Example
SY-SUBRC = 4.
IF KOMKBV1-VKORG = '0001' AND
    KOMKBV1-SPART = '12' AND
    KOMKBV1-AUART = 'ZXXX'.
SET THE return code to 0 to propose the output type.
  SY-SUBRC = 0.
ENDIF.
Hope this helps..
Thanks,
Naren

Similar Messages

  • User Exit for eliminating double condition type in sales order

    Sir,
    In SE38,  Program SAPMV45A,  I am using user exit ( Userexit_pricing_prepare_tKomp )  to avoid double entry
    of condition type like PR00 in sales order . But i am not getting how to write code.
    Please, help me how to write code in user exit.
    thanks,
    Manoj.

    Thanks for replay.
    Sir, I want to impliment it in sales order (VA01 OR VA02 )
    for pricing  . Here I want to avoide double  condition types like PR00, packing forwarding, frieght ....etc
    in  sales order pricing.
    Here i want to give logic that codition type is already exit and you canot enter same condition type
    again. means if condition type is already exit then system should not allowed to enter again the same condition type
    in sales order pricing.
    Thanks
    Manoj.

  • Print program for the smartform for selecting the output type (email/fax)

    Hi All,
    Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
    can any body please let me know how  to put the condition for selecting the desired  output type ?
    Thanks in advance
    Rahul

    Hi
    It is not the output type that has to be changed
    it is the MEDIUM which you have to change and configure
    for printout medium is 1
    for FAX medium is 2
    for MAIL it is 7.
    so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
    Reward points for useful Answers
    Regards
    Anji

  • Output Type in Sales Order

    Hi All.. Output type is not automatically selecting/ coming in sales order.. Condition record has been maintained in VV11 and I have also checked the configuration which seems okay to me.. Pls suggest where is the problem?
    thanks in advance

    Hi Mohit,
    Go to [VA02], using the standard toolbar select Extras -> Output -> Header / Item -> Edit and go to the Output Screen. Again using the standard toolbar select Goto -> Determin Analysis. Now select your output condition type and see what could be the reason for why the output type has not been picked.
    Regards
    NP

  • Error status of output type in sales order (va02)

    hi,
    I have created a output type in salse order for Idoc generation.
    My problem when i create a order and if it's credit limit excced then it show me red status of out put type, and no idoc generated.
    If credit limit is not excced than it show green status.
    can anyone help me how to make it in green or yellow status even if credit limit exceeds.
    how to remove this check.
    can this be solved by configuration ???
    <REMOVED BY MODERATOR>
    Thanks in adance,
    Edited by: Alvaro Tejada Galindo on May 23, 2008 6:57 PM

    Hi Mohit,
    Go to [VA02], using the standard toolbar select Extras -> Output -> Header / Item -> Edit and go to the Output Screen. Again using the standard toolbar select Goto -> Determin Analysis. Now select your output condition type and see what could be the reason for why the output type has not been picked.
    Regards
    NP

  • Flowing of the Condition  type from Sales Order to invoice

    Dear All,
    I'm facing a problme in the copying the condition types from Sales order to Invoice.
    The details are as mentioed below:
    I have a Condition type CONC and made the Copy of the Condition typs as ZDIS.So that CONC's value will be debited and ZDIS' value will be credited in the FI..
    But ALL the condition types which i have mentioed including tax and discounts condition types are copying from Sales order to invoice.Except CONC.
    I have checked all the copy controls,i'm sure those are OK.Bcoz other condition types are working perfectly fine.
    What could be the reason for this???
    Will be any setting for on condition type level for copy controls???
    Please Guide me its URGENT.
    Thanks
    Vinay

    hi
    from which condition type u have copied this CONC , can u pl elaborate more on this.
    and just write what is exact scenario and whats going wrong?
    in copy controls check for pricing source and pricing type.
    regards
    mandar

  • Output type config -- Sales Order

    Hi All,
    We have a requirement where we need to trigger a custom output type for the condition  "Sales Org./ Div./Doc. type/Plant (Item)". This should be triggered at the header level. The settings have been done. Now while creating an SO, the output type is getting triggered automatically only when I check for the output at item level and then come back to header level. In case if I don't check the output at item level, the output type at the header is not getting triggered automatically.
    Please let me know of any work around to get this done.
    Thanks,
    Raj.

    Hi Mohit,
    Go to [VA02], using the standard toolbar select Extras -> Output -> Header / Item -> Edit and go to the Output Screen. Again using the standard toolbar select Goto -> Determin Analysis. Now select your output condition type and see what could be the reason for why the output type has not been picked.
    Regards
    NP

  • Add an output type in sales order header

    Hi Dear Experts,
    I try to find a way to add an output type in sales order header after the order was created.
    I also need the output to be sent immediately to the FAX.
    Do you know any BAPI or Function that can help me or have any idea how it can be done?
    Thanks and best regards,
    Sagit.

    Hi,
    You can use the FM ..RV_MESSAGE_UPDATE..
    Thanks
    Naren

  • FM to update output type in sales order

    Hi folks,
    my problem it's the following, if you update a sales order in tcode va02 and I change the status, automatically it's assigned the output type to this status, that is working fine,  I'm maintaining a report that it changes the status to the sales order but kind of the output type is not maintained, somebody knows a FM or Bapi to update the output type?
    Many thanks.

    Please check the BAPI BAPI_SALESORDER_CHANGE
    *"      CONDITIONS_IN STRUCTURE  BAPICOND OPTIONAL
    COND_TYPE
    Kanagaraja L

  • Tcode for displaying the changes made to sales order

    hi,
    i want to know is dere any tcode which displays how many times and by whom and what are the changes made to sales order.

    hiii
    use VA03 for display..
    also refer to following link
    Regarding 'display of changes in the sales order'.
    regards
    twinkal

  • User exit or BADI for determining the output type inme21n orme22n

    hi all,
         i have used the user exit 'exit_sapmm06e_012', it is getting triggered in me22n, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
      the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer"  the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation.   i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
      do antone know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
      plz give me a solution.
    regards,
    santosh.

    Hi Santosh,
    Why not continue the other post ?
    Anyway, i am not sure to understand your requirement.
    Do you want to check that vendor email exist and issue a message only if email is not available ?
    Kind regards,
    Yann

  • How to control the output types in PO MESSAGES

    Hi Friends,
    As per the requirement I need to control the message in Standard PO(ME22N). Scenario is like below.
    1.     I am modifying some field value in PO and saving it. Then clicking on MESSAGES tab. Now I am seeing some output types are adding in EDIT mode.
    2.     Requirement is , when ever user changed one particular filed(Order acknowledgement ) and saved it, then he doesnu2019t want to see the message in EDIT mode.
    Could you please suggest me the way? Any user exit is there to reach this? Please do the needful.
    Thanks,
    Kumar

    hi,
    its may be useful for u.
    In the release strategy,if the indicator changeablity is 1 the system will not allow you to take repeat out put.
    Solution is that you have to change the release indicator changeability to 6(SPRO>MM>Purchasing>Purchase order>Define release procedure for purchase order>Release indicator>Changeability).
    Another option is that in the message output of the PO in further data change despatch time to 3 and take a repeat out put.
    Also check,
    SPRO > MM > PO > Release Procedure for PO > Release indicator > Changeability of Purchasing Document During/After Release as 2 for Release ID - G and save
    And then Create go to chage mode of PO and repeat the messages
    Regards,
    venkat m

  • User exists for changing the selection screen of the transaction CS11

    Hi,
    I want to change the selection screen of the transaction cs11 and modify the ALV output.
    I searched the old forums but not got satisfactry results.
    I want to change the plant and material from the parameter to the select option.
    i dont want to copy the transaction for the zcs11.
    any suggestion on this ?
    Regards,
    udupi

    one more requirement i have is that, i need to remove all the header fields such as material , plant etc and place that field in the item level. i can use the user exists PCSD0002 for the adding the customer field in the item. but how can i removed the header level field such as plant and material. whether we have any user exits for that?

  • 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.

  • Triggering output type when sales order is saved

    Hello all,
                I have a small question. Whenever I create a drop ship sales order it triggers a custom output type and prints the form by default even though this output type hasnt been saved in the sales order messages. Similarly from a drop ship PO when it is created with reference to the drop ship order and a requisition it tries to call this cusotm output type and prints the form.
    Please advice how to find the settings and make it not print this form.
    Thanks in advance.

    Hello,
             There are few other custom output types configured for a sales order. I wonder why it picks this particular output type and prints the form.
             If I uncheck 'Print Immediately' then would it stop from just printing or even calling the form too.
              Please advice if there might be any other config which tells to call this particular form whenever a drop ship sales order is created.

Maybe you are looking for

  • Cannot delete file error -43 file not found

    I cannot find and/or delete a file. The error is -43 file not found. It prevents me form making a backup with carbon copy. The file was in applications / illustrator / legal / strangecharacters.html (now in trash) and size 112kb. I am the admin of th

  • Find the partition for the fact table

    Oracle version : Oracle 10.2 I have one fact table with daily partitions. I am inserting some test data in this table for old date 20100101. I am able to insert this record in this table as below insert into fact_table values (20100101,123,456); Howe

  • How do I connect speakers to ipod

    Recently purchased Harmon Kardon Soundsticks I second hand, and an ipod dock. Both have a USB port how do I connect the two together? I am female and not very good with electrical goods!!!!   Windows XP  

  • Transferring from old imac to new

    I currently am using a Firewire drive for my Time Machine backup.  How can I get that data to the new iMac which does not have a Firewire port?

  • Need to obtain a handle to Data Controls through a java pgm in Oracle ADF

    Hi Through my java pgm i want to access the Data Control which i have created over a Web Service.The reason i need to do that is, once i can obtain a handle to the Data Control i will be able to invoke methods exposed on the Web Service and i want to