Control through routine-sales

Hi,
Can I control field like VBAK-AUGRU through condition type reqiurement in pricing ?
My scenario is if one particular condtion type (say ZCM1) is using in credit memo Sales Doc. then a particular order reason should be accepted by system & for anyother it should throw error.
thanks in advance
Regrds
San

Hi san
You can use a routine for the condition type for  which the customization is being done.
You can use the routine and assign to that condition type .
So you need to give the inputs and the logic to the ABAP'ers and accordingly they will create the routine .
Regards
Srinath

Similar Messages

  • Table control through screens

    hello friends,
    i was informed that i would be working on table controls through dialogue program,
    if any one has a sample code for tabel control through screens,
    plz post it here, so that , i can understand which command is to use for what, and what would be most common commands.
    thank you in  advance.

    Hello,
    Check this sample
    **********      Trancsaction code-  ‘zrtc’ **********************
    ***********     Default Screen- ‘1000’   ************************
    PROGRAM ZRAVI_TABLECONTROL message-id zrtc.
    *Displaying data from VBAP,VBAK and VBKD tables using table control
    tables : VBAP,VBAK,VBKD.
    controls : tab_cntrl type tableview using screen '2000'.
    data : begin of it_sales occurs 0,
           vbeln like VBAP-vbeln,
           matnr like VBAP-matnr,
           erdat like VBAK-erdat,
           ernam like VBAK-ernam,
           auart like VBAK-auart,
           konda like VBKD-konda,
           kdgrp like VBKD-kdgrp,
           end of it_sales.
    data : l_count type i.
    *&      Module  USER_COMMAND_1000  INPUT
    *       text
    MODULE USER_COMMAND_1000 INPUT.
    case sy-ucomm.
      when 'SHOW'.
        if VBAP-MATNR ne ''.
          select vp~vbeln vp~matnr vk~erdat vk~ernam vk~auart vd~konda
          vd~kdgrp into corresponding fields of table it_sales from
          ( ( VBAP as vp inner join VBAK as vk on vp~vbeln = vk~vbeln )
          inner join VBKD as vd on vk~vbeln = vd~vbeln )
          where vp~matnr = VBAP-MATNR.
       else.
           select vp~vbeln vp~matnr vk~erdat vk~ernam vk~auart vd~konda
          vd~kdgrp into corresponding fields of table it_sales from
          ( ( VBAP as vp inner join VBAK as vk on vp~vbeln = vk~vbeln )
          inner join VBKD as vd on vk~vbeln = vd~vbeln ).
       endif.
    **   leave to list-processing.
    **   *For testing the query
    **   loop at it_sales.
    **     write : / it_sales-matnr.
    **   endloop.
    **  *End testing of query
         call screen '2000'.
       when 'EXIT'.
         leave program.
    endcase.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT
    *&      Module  STATUS_2000  OUTPUT
    *       text
    MODULE STATUS_2000 OUTPUT.
    *  SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'Sales Document Information'.
    ENDMODULE.                 " STATUS_2000  OUTPUT
    *&      Module  USER_COMMAND_2000  INPUT
    *       text
    MODULE USER_COMMAND_2000 INPUT.
      case sy-ucomm.
        when 'BACK'.
          leave to screen '1000'.
        when 'P--'.
          perform paging using 'P--'.
        when 'P-'.
          perform paging using 'P-'.
        when 'P+'.
          perform paging using 'P+'.
        when 'P++'.
          perform paging using 'P++'.
      endcase.
    ENDMODULE.                 " USER_COMMAND_2000  INPUT
    *&      Module  GET_CTRL_SALES  INPUT
    *       text
    MODULE GET_CTRL_SALES INPUT.
      case sy-ucomm.
        when 'SAVE'.
        data : line_count type i value 0.
            modify it_sales index tab_cntrl-current_line.
            line_count = line_count + 1.
    *      *VBAP,VBAK and VBKD tables
    *           vbeln like VBAP-vbeln,
    *           matnr like VBAP-matnr,
    *           erdat like VBAK-erdat,
    *           ernam like VBAK-ernam,
    *           auart like VBAK-auart,
    *           konda like VBKD-konda,
    *           kdgrp like VBKD-kdgrp,
    *      update VBAP set vbeln = it_sales
    *       if sy-subrc = 0.message i001.endif.
             IF SY-SUBRC = 0 AND SY-TABIX > LINE_COUNT.
             MESSAGE E001 WITH LINE_COUNT.
    *         STOP.
             ENDIF.
    *LEAVE TO LIST-PROCESSING.
    *WRITE : 'TABIX',SY-INDEX,'LINE',LINE_COUNT.
      endcase.
    ENDMODULE.                 " GET_CTRL_SALES  INPUT
    *&      Module  FILL_TAB_CNTRL  OUTPUT
    *       text
    MODULE FILL_TAB_CNTRL OUTPUT.
      read table it_sales index tab_cntrl-current_line.
      l_count = sy-loopc.
    *  leave to list-processing.
    *  write : l_count,tab_cntrl-top_line.
      if sy-subrc ne 0.exit from step-loop.endif.
    ENDMODULE.                 " FILL_TAB_CNTRL  OUTPUT
    *&      Module  GET_MESSAGE  INPUT
    *       text
    MODULE GET_MESSAGE INPUT.
    *        if sy-subrc = 0.
    *        message i001 with line_count.
    *        endif.
    ENDMODULE.                 " GET_MESSAGE  INPUT
    *&      Form  PAGING
    *       text
    *      -->P_0189   text
    FORM PAGING USING    code.
      data : i type i,
             j type i.
      case code.
        when 'P--'.
          TAB_CNTRL-top_line = 1.
        when 'P-'.
          TAB_CNTRL-top_line = TAB_CNTRL-top_line - l_count.
          message i001.
          if TAB_CNTRL-top_line le 0.
            TAB_CNTRL-top_line = 1.
          endif.
        when 'P+'.
          i = TAB_CNTRL-top_line + l_count.
          j = TAB_CNTRL-lines - l_count + 1.
          if j le 0.j = 1.endif.
          if i le j.
            TAB_CNTRL-top_line = i.
          else.
            TAB_CNTRL-top_line = j.
          endif.
        when 'P++'.
          TAB_CNTRL-top_line  = TAB_CNTRL-lines - l_count + 1.
          if TAB_CNTRL-top_line le 0.
            TAB_CNTRL-top_line = 1.
          endif.
      endcase.
    ENDFORM.                    " PAGING
    *&      Module  INIT_CONTROL  OUTPUT
    *       text
    MODULE INIT_CONTROL OUTPUT.
      TAB_CNTRL-top_line = 1.
    ENDMODULE.                 " INIT_CONTROL  OUTPUT
    **********************    flow logic of  screen ‘2000’  ********************
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2000.
    module init_control.
    loop with control tab_cntrl.
      module fill_tab_cntrl.
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2000.
    loop with control tab_cntrl.
      field SEL module get_ctrl_sales on input.
    endloop.
    *module get_message.
    ******************** End of flow logic  ************************
    If useful reward.
    VAsanth

  • Assignment of credit control area to sales area

    Hi Friends,
                     What is the advantage of assigning credit control area to  sales area when it is already assigned to the relevant company code ?
    Regards
    Mahesh.

    hi,
    Credit control area when assigned to sales area(sales orgd.cdivision) rather than company code, it will be more specific and relevant to track the credit record of the customer as he was assigned through the sales area where he is in.
    And also to generate reports based on the sales area , this helps in ease to monitor the customer behaviour based on the materials.
    Mohan
    Award  points if it helps.

  • HT201210 My download for iOS 7 was interrupted, it has downloaded but not installed. it goes through routine Terms & Agreements and everything, but when i try to update it tries to verify the update then says that the update is not available.

    I dont understand, when i try to update it will go through routine apple stuff, then it it will say " Software Update Unavailable (under) Software Update is not available at this time. Try again later." The thing is that i was downloading it and my wi-fi had restarted for some unknown reason and it downloaded onto my phone but not installed. and at the moment it is really bothering me because I have waited a long time for iOS 7 and I am not being allowed to update my phone to it and i just wanted to know how to fix it. Thank you.

    I imagine a ton of people are attempting to download it right now. Simple patience, maybe keep trying, and if possible, try a little later. Think of it as all those people lining up at Apple Stores + about a million more.

  • When connected to my Ford Mondeo, my ipod nano can be controlled through interface.  But after while it comes up with message 'loading data' and then freezes.  Anyone else got the issue?

    When connected to my new Ford Mondeo, my ipod nano can be controlled through user interface in car.  This worksd most of the time, but after a while if I try to change the music or search, it comes up with message 'Loading Data'.  I then have to pull out USB and reinseert, at which point it works again.  Has anyone esle expereinced this/have a solution?

    Does not matter if anyone else has this issue.  You need to contact the Ford dealership.  It's their product you are having problems with. 
    If you really want to know if anyone else has this issue, post on Ford's Mondeo message boards.  It's where the Ford car owners hang out.

  • When I create Return Sales Order through BDC sales order doesnu2019t create.

    Deal Guru,
    When I create Return Sales Order through BDC sales order doesnu2019t create.
    It shows created sales document number but when I display this document I am getting message Document is not in database.
    After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
    I am receiving following message in SAP inbox for following issue.
    But when I create Return Sales Order through VA01, it is working. Please give me some idea.
    Detail Message
    Update was terminated
    System ID....   PRO
    Client.......   900
    User.....   DEVELOPER2
    Transaction..   VA01
    Update key...   4961DBF46A6B09D2E10080020A02281C
    Generated....   05.01.2009, 16:03:40
    Completed....   05.01.2009, 16:03:40
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Regards
    Makarand

    Hi Rory
      Try this link:
       BAPI can't to create SO,But used bapi data with manual can?
    Regards
    Neha

  • Ios7 no call decline option when its locked battert drains fast music is not able to controlled through headset unless the music app is open  please fix these bugs

    Ios7 no call decline option when its locked battert drains fast music is not able to controlled through headset unless the music app is open  please fix these bugs

    if they are unable to update all languages in a normal time gap (it is now 6 months ago they released firmware 4.22 for the first product code (actually mine and maybe a few others)), they should not offer those many versions. the huge bug with out of memory in nokia navigator with firmware 3.58 is not fixed yet for those people. really absolutely not acceptable.
    besides that, currently my phone is in a nokia service center, microphone doesnt work anymore (the one who i call just hears a very loud noise). my brother got the same phone, his one is in nokia service center since 2 weeks now, because it doesnt charge anymore as there seems to be a connection broken inside the phone).
    well that will be fun if the phone returns (approximately 4 weeks), as I guess the phones will have new IMEIs as they will send 2 new phones and not fix the problem (would cost them more). but as i got a western europe with nordics-map licence locked to the imei, the next problem will be there after I get a nokia 6110navi with another IMEI back. i get really upset with this really slow support.

  • Profit Center updation by posting through the sales office

    Hi Gurus,
    I am facing a situation in current implementation scenario. The Client manufactures product in their plant and performs stock transfer to depot. This part is OK. Now they want to transfer product from depot to sales office and sale the product through a sales office and get the sales value captured on the sales office.
    Can anyone advise me on this how I can do this in SAP?
    Thanks and Regards

    Hi
    What you are asking is a pretty standard process.. what do you want to knw?
    all you want happens in std SAP
    Ajay

  • InfoPackage-Request Selection Through Routine (To Delete)

    Hello,
    I have come across a situation where I don't want to delete a request from an infocube. 
    Our current process always deletes requests that have the "Same or More Comprehensive" Selections (using the standard options).  However we have one request that we do not want to delete.
    In the area of the infopackage that you can specify the details for "Deleting Request from InfoCube after update",  I would like to use the "Request Selection Through Routine" option available under "Exceptions" to implement a routine.
    I believe i could then code a way to exclude the particular request from the deletion process.
    The problem is that i cannot find any resources with examples or code samples to help me figure out how to code this.
    Any help would be great!
    Thanks,
    Nick

    Hello Nick,
    You receive a table l_t_request_to_delete with all the requests in the cube you are able to delete. Now you simply need to delete your request number from the table, e.g.
    DELETE l_t_request_to_delete WHERE sid = '12345'.
    Best regards
    Dirk
    P.S.: You could also do the same by deleting all the requests except the one you want to keep, compress the cube and then continue data loading.

  • Where is credit control Area in sales order.The field.??

    Hi all
    where is credit control Area in sales order.The field.??
    Ahmed

    Hi Sadhu,
    You may get the wrong infomation if you only checking the credit control area for customer master.
    During sales order creation the system determines the relevant CCA. This is done in 4 steps in the following sequence:
    1.      Userexit
    2.      Credit control area of the payer (XD03)
    3.      Credit control area of the Sales Area (OVFL)
    4.      Credit control area of the Company Code (OB38)
    As far as the system can determine a CCA it leaves the sequence.
    So there maybe no credit control area in customer master data for the payer. But if there is one maintained for sales area or company code or in userexit, the sales order can get one CCA determined. I recommand using the check_cm report because it tells you the correct info.
    Regards,
    Smile

  • Is it possible to sell assets through a sales order

    Hi,
    Is it possible to sell assets through a sales order?
    Kindly help me
    Thanks
    Supriya

    Hi
    The basic process are as under:
    1. You need to create the asset as non valuated material
    2. You need to define a pricing procedure for the sale of asset. This would enable you to create a commerical outgoing invoice as well as capture all the taxes involved.
    3. You need to assign suitable revenu and tax accounts in VKOA
    4. Create a Sales Order and do the billing. This should create an Accounting entry
    Customer A/c Dr
         Revenue - Asset Sale Cr
         Sales Tax/Vat Payable Cr
    5. You need to create an outgoing excise invoice for the asset
    6. Through T Code ABAON, you need to pass an entry in Asset Accounting for Sale of Asset, with Revenue and W/o Customer. This would pass the accounting entry
    Revenue - Asset Sale Dr
        Asset Account Cr
    Hope this clarifies
    Thanks & Best Regards
    Sanil K Bhandari

  • Need a user exit for Export Control check in Sales Order fro VA01/VA02

    Hi ,
         I need a user exit for Export Legal Control process in Sales Order.since Ship-to country in the Sales Order is not always the ‘ultimate destination country’ User Exit needs to be built in with following logic
    1.     Check to see if ‘ultimate destination country’ field is maintained in Sales Order
    2.     If a value is maintained then for the Export control checks use ‘ultimate destination country’ instead of the Ship-To country (step 1)
    3.     If no value is maintained then use Ship-To country as default
    The user exit is called when the user creates or changes a Sales Order.
    Can anybody help ?
    Thanks

    Hi,
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    <b>Reward points</b>
    Regarsd

  • Windows control panel routine to designate Elements 12 as my default editor does not list the program. It loaded OK and accepted the key. Your regular help line could not help. What to do?

    Windows control panel routine to designate Elements 12 as my default editor does not list the program. It loaded OK and accepted the key. Your regular help line could not help. What to do?

    Hi Robbie,
    The editor program is NOT under the organizer path as you mentioned in your last message. The actual editor program is at the location I gave in message #1 i.e. as follows
    "C:\Program Files (x86)\Adobe\Photoshop Elements 12\PhotoshopElementsEditor.exe"
    The one under the organizer is actually the Welcome screen which you have probably set up to go directly to the editor.
    If you go to the Open With screen I showed in message #3 and browse to the actual editor as given above, it should show up in your list.
    If it doesn't, then Windows is playing up again - and we have to take extra steps.
    Brian

  • Control to view Sales Order Price for a user

    Hi All,
    I want to control to view Sales Order Pricing in VA03/VA02 for a Particular User,How can I do.
    Is there any user Exit or BADi to control. Pls Advise.
    Pranitha.

    Hi
    Create the objects in the same order. You need create objects that surely need a register in the SCCR (userexits and message VH609).
    So, the steps are:
    1.SU20
    2.SU21
    3.Message in SE91
    4 AND 5. If you don't know ABAP, search an ABAP that helps you (you have the coding in correction instructions:
    Program ID  Object Type  Object Name  Program ID  Object Type  Object Name 
    LIMU  REPS  ZZAUTH01  R3TR  PROG  ZZAUTH01 
    LIMU  REPS  ZZAUTH02  R3TR  PROG  ZZAUTH02 
    LIMU  REPS  LV69AFZZ  R3TR  FUGR  V69A 
    See the PDF file in the attachment too. For LV69AFZZ surely you need SCCR.
    6. To achive that SAP_ALL see the new object.
    Other question. Remember that when you mantain the authorizations in tcode PFCG, you mantain ACTIVITY (usually all, ie, *),
    you can set one for each pricing procedure that you use, and level numbers (remember that if you see the level 20 in tcode V/08 for this pricing procedure you must write '020', related with alpha conversion, that the object doesn't understand).
    I hope this helps you
    Regards
    Eduardo
    PD: I forgot, see  Note 1165078 - Authorization check for conditions or subtotals, that says:
      A solution was previously only possible using the modification in Note 105621; however, a solution without modification
      using a suitable implementation is now possible as of Release ERP 2005 EhP4 (SAP_APPL 604), which provides BAdI  PRICING_AUTHORITY_CHECK_UI. 
    Edited by: E_Hinojosa on Jun 2, 2011 5:37 PM
    Edited by: E_Hinojosa on Jun 2, 2011 5:39 PM

  • How to come true a constant temperature control through PCI 7344

    I have one PCI-7344 to control three motors.I also need to come true a constant temperature control through 7344.
    using "Analog Input"and "Analog Reference",is it possible to come true the control.
    To come true it, what others I need?
    Waiting for your answer!
    Thanks
    帖子被langtian在12-20-2005 08:58 PM时编辑过了

    Langtian,
    In general the PID control loop of the 7344 can be used for a wide
    variety of control applications. You can use the analog inputs to
    acquire the feedback signals and the analog outputs to control e. g.
    torque, flow rates and so on. For temperature control the board seems
    to be a bit oversized as temperatures typically change very slowly
    compared to the high control loop rates of the 7344 but this shouldn't
    result in a problem.
    Please note that the "Analog Reference" Output can't be used for
    control tasks as this is a static analog output fixed to 7.5 V which
    can't be changed.
    For more information about how to use NI motion control boards with analog feedback please refer to this link and to this document.
    Best regards,
    Jochen Klier
    National Instruments Germany

Maybe you are looking for

  • IOS 7, iTunes Match, and downloads to Music -- beware of your first use

    I'll explain the situation in a moment. My question for the community is if someone saw a way to avoid this from happening. I just encountered a perfect storm when I upgraded to ios 7. So far it has cost me $230 in excess data charges. I am an iTunes

  • Problem with logon Portal

    Dear Experts, When we are trying to login to portal it is showing the following error. Errors caused by approach to framework-side: "pcd: portal_content / every_user / general / defaultDesktop / frameworkPages / framework page," The object does not e

  • Event Handler Call Back Functions

    Hi all, I've followed http://wiki.sdn.sap.com/wiki/display/CRM/ExtendBOLModelBTwithcustomtabletyperelationship that wiki to get my Z table accessible in the BOL through a relationship to BT. Create and display opperations are working just fine. My pr

  • Multiple repeating groups in RTF layout on 1 row.

    I have the following data structure: <G_LOC> <E_LOCID>1111</E_LOCID> <E_LOCDESC>Charlotte *</E_LOCDESC> <LIST_G_SEASON> <G_SEASON> <E_SEASONDESC>SPRING/SUMMER 2008</E_SEASONDESC> <LIST_G_STATUS> <G_STATUS> <E_STATUSCODE>Active</E_STATUSCODE> <E_STATU

  • Create file from template format problem

    Hi I have a template (index.dwt.asp). In the body tag is <body id="<% =xid %>" class="<% =bodyclass %>" onload="SwitchMenu('<% =loadm %>')"> when I create a new from template it writes the code with a capital L in the onload function which will not v