Capture Customer Class in time of BP creation from Screen

Hi All,
I am facing a problem that I need to capture  Customer Class , Sales Area Template and ID type in time of BP creation in DCHCK event. I have to check if user is putting these value correctly or not. If user entered wrong value then I have to through error message and not to save to BP.
Foe example I am using 'BUP_BUPA_BUT000_GET' to get all other data along with BP type and so on.
Plesae help regarding this if any one is aware of it.
Thanks & Regards
Ajoy

Hi,
asaha... I want to know how it would be done ?
by ABAP customization or in the CRM IMG itself ?
can you brief about it ..
Thanks
" RA "

Similar Messages

  • How to set custom page heading in List when called  from Screen

    Hi All,
    I have a requirement in which i have to call a list from screen. On the list i have to display data on from screen. The data width is 200(around 15 columns).
    In the screen's PBO i have used the below code to navigate to list:
    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS space.
      SUPPRESS DIALOG.
    But, here how can i set the custom LINE-SIZE and LINE-COUNT.
    Please do reply  with an example.
    Thanks in advance,
    Sumesh

    Hi,
    Use the below code.
      data : lo_column_setting type ref to if_salv_wd_column_settings,
             LO_COLUMN TYPE REF TO CL_SALV_WD_COLUMN,
              LO_HEADER TYPE ref to cl_salv_wd_column_header.
    lo_column = lo_column_setting->get_column( 'USERID' ).
      CALL METHOD lo_column->CREATE_HEADER
      RECEIVING
        VALUE  = LO_HEADER.
      CALL METHOD LO_HEADER->SET_TEXT
      EXPORTING
        VALUE  = 'User Id'.
    Regards,
    Priya

  • Problem in adding many xml files at time of addon creation from AddonCreato

    Hi,
        When creating addon by SAP B1 addoninstaller .Net wizard,we have to add XML Files one by one which is very difficult to do because my addon have more than 60 XML files.
    Please give me any solution so that we do not have to add again and again all XML Files.
    Thanks
    Vivek Kr. Gaurav

    Pl post this question to SDK Forum

  • One Time Customer Mandatory field during Sales Order Creation

    Hi
    My client has lots of one time customer and they need to capture the phone number  and name of the individual customer at the time of sales order creation using one time customer code.
    They want only "NAME & PHONE NO" as mandatory field so that the Person who creates a Salesorder should enter the NAME & PHONE NO" . Please let us know where the configuration for teh above is?
    We have tried in Account Group One time customer settings which is working at the time of creation of order and not at the time of creation of Sales Order, please help us on the above..
    Regards
    Anis

    Hi Anis,
    In the Account group , if you check the one-time customer then while creating the sales order itself it will appear to change the address for that customer.
    By the time you can enter your required fields.
    I think you mentioned as
    We have tried in Account Group One time customer settings which is working at the time of creation of order and not at the time of creation of Sales Order, please help us on the above..
    Order creation and creation of sales order are both same.
    May be you would have confused.
    regards,
    santosh

  • Dynamic invocation of javac with custom class path.

    To all the Java Gurus out there,
    Consider the following classes:
    XYZ/test/TestUtil.java
    package test;
    class TestUtil {
      void useMe() {
    }ABC/test/Test.java
    package test;
    public class Test {
      public static void main(String[] args) {
        TestUtil t = new TestUtil();
         t.useMe();
    }The class Test uses package private access to the TestUtil.useMe() method. Then the Test class is packaged into test.jar and the TestUtil class is packaged into testutil.jar.
    Our application uses a custom class loader architecture where the test.jar is loaded by class loader "X" and testutil.jar is loaded by class loader "Y". Also Y is the parent class loader of X. When the main() of Test class is run it results into IllegalAccessException as the package private method is being accessed from different class loaders.
    We are currently using a dynamic way to detect the dependency between test.jar and testutil.jar and generating the classpath argument to the "javac" ant task which dyncamically invokes the sun.tools.javac.Main class. So while compiling Test class the following command line is generated:
    javac -classpath XYZ/testutil.jar Test.java
    It compiles fine assuming that the Test class and the TestUtil class are loaded by the same class loader but at runtime this fails.
    Is there a way to make "javac" use our runtime class loader architecture to instead of static classpath, so that the access violation is captured at compile time?
    Any help is appreciated.
    Ravi
    PS: If this is not the right forum please point me to the right place to post this questions.

    Not that I'm aware of - the Java Language is designed to be platform-independent so absolute file paths which is a specific feature of various file systems would naturally not to be mixed up with the object-oriented hierarchy structure.
    Just like a compiler wouldn't check if a file exists in
    new File("<FilePath>")I don't think you can get compile-time checks for what you have wanted.
    Hope this helps~
    Alex Lam S.L.

  • How to make set up with first call of method of a custom class?

    Hello
    I have build a custom class with a few custom methods.
    Method1 is called per every record of internal table. I need to set up certain parameters tha are the sme for all the calls  (populate the range , to fill the internal table , etc). This should be done only once.
    call method ZBW_CUSTOM_FUNCTIONS=>METHOD1
            exporting
              I = parameter1
            importing
              O = parameter2.
    Loop at ....
       <itab>-record1 = parameter2
    endloop.
    Methods2, 3 , 4 dont need any set up.
    Can somebody tell me how to do it within class?
    Thanks

    Instance methods (as opposed to static methods) are called on an object, which is an instance of a class. Broadly, think of the class as a template for the creation of objects. The objects created from the class take the same form as the class, but have their own state -- their own attribute values. In pseudo-ABAP (this won't even close to compile), let's say you have the following class:
    CLASS cl_class.
         STATICS static_attr TYPE string.
         DATA attr1 TYPE string.
         DATA attr2 TYPE i.
         CLASS-METHOD set_static_attr
              IMPORTING static_attr TYPE string.
              cl_class=>static_attr = static_attr.
         ENDMETHOD.
         METHOD constructor
              IMPORTING attr1 TYPE string
                                 attr2 TYPE i.
              me->attr1 = attr1.
              me->attr2 = attr2.
         ENDMETHOD.
         METHOD get_attr1
              RETURNING attr1 TYPE string.
              attr1 = me->attr1.
         ENDMETHOD.
    ENDCLASS.
    When you create an instance of the class (with CREATE OBJECT oref), the constructor is implicitly called. You can pass parameters to the constructor using: CREATE OBJECT oref EXPORTING attr1 = 'MyString' attr2 = 4.
    You then call methods on the instance you have created. So, oref-&gt;get_attr1( ) would return 'MyString'.
    The constructor is called when the object is created (so, when you call CREATE OBJECT). At this time, the setup is done, and any subsequent methods you call on the object will be able to use the attributes you set up in the constructor. Every object has its own state. If you had another object, oref2, changing its instance attribute values would not affect the values of oref.
    Static methods and attributes are different. A static attribute exists only once for all instances of the class -- they share a single value (within an internal session, I think. I'm not sure of the scope off-hand.) You also call static methods on the class itself, not on instances of it, using a different selector (=&gt; instead of -&gt;). So, if you called cl_class=&gt;set_static_attr( static_attr = 'Static string' ), 'Static string' would be the value of static_attr, which belongs to the class cl_class, and not instances of it. (You can also set up a class constructor, which is called when the class is loaded, but that's another subject.)
    To answer your question more succinctly: no, the constructor is not called before each method. It is only called when you create the object. Any subsequent methods called on the object can then access its attributes.
    Please have a look at [http://help.sap.com/saphelp_nw70ehp2/helpdata/en/48/ad3779b33a11d194f00000e8353423/frameset.htm] for a more thorough treatment of basic object concepts. (The rest of that documentation is very thin, but it'll get you started. Also, it doesn't appear to deal with statics. You'll have to look elsewhere for that.)

  • Add custom class

    We developped some classes which we add to the directory $ORACLE_HOME/9ifs/custom_classes.
    Every time I copied new versions of my classes to this directory it is necessary to restart ifs to get the new classes working.
    I'm using Sun Solaris version of ifs.
    Does anybody know a possibility to avoid the restart of ifs after updating the custom classes ?
    Thanks.
    Luc Ponelle.

    ...and my last question...
    why in my creation complete event
    protected function complete(event:FlexEvent):void{
                    grid = new GridView
                    uiComponent = new UIComponent
                    gridContainer.addElement(uiComponent)
                    uiComponent.addChild(grid);
                    gridWidth=(width-grid.width)/2
                    stage.scaleMode = StageScaleMode.NO_SCALE
                    trace(stage)
    stage is null?

  • Unit testing: Mocking custom classes with null

    Hi,
    I was trying to save time on testing the usual hashCode() and equals() methods so I got this class: http://www.cornetdesign.com/files/BeanTestCase.java.txt
    I altered it a bit as it wasn't handling standard classes only primitives.
    Anyway, I got to the point to include my own custom classes.
    I have to create a 'mock' object for my class properties, e.g. field.getType().newInstance()
    Fine, but there are some tricky instances. E.g. when I'd like to create an instance of java.net.URL which takes a URL as String in the constructor.
    This is almost impossible to automate as it has to be a valid URL format not just a random String.
    So, I thought I set them to null, e.g.
    assertTrue(o1.equals(o2))
    as both properties are null.
    Is this the right approach you think?
    I welcome any suggestions.
    My initial idea was to save enormous amount of time automating the hashCode() and equals() method tests as they took so long to write.
    Thanks

    Trouble would be that you are only testing the null branch of the equals or hashCode, which typically have to check for null, then if not null do an actual comparison.
    It's worth the effort of learning to use a package such as EasyMock to create and program mock objects. It's tidiier if you are progamming to interfaces, however, but it will mock ordinary objects, though probably not if they are final.
    What you could do is to define a factory interface, and have a table of anonymous classes wich generate various types. In effect create a library of dumy object factories.
    Something like:
    private interface DummyGenerator {
          Object generate(int idx);
          Class<?> getType();
    private final static DummyGenerator[] generatorsTable {
        new DummyGenerator() {
               public Object generate(int idx) {
                 return new URL("http://nowhere.com/" + idx);
         public Class<?> getType() { return URL.class; }
    .. generators for other classes
    private final static Map<Class<?>, DummyGenerator> genMap = new HashMap<Class<?>, DummyGenerator>(generatiorsTable.length);
    static {
        for(DummyGenerator gen : generatorsTable)
            genMap.put(gen.getType(), gen);
    }

  • Xcode 6.1.1 Custom Class Outlets Missing

    I'm running through the basic Apple tutorial on iOS App Development https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapi OS/index.html#//apple_ref/doc/uid/TP40011343-CH2-SW1
    Running Xcode Version 6.1.1 (6A2008a)
    After creating custom View Controller and TableView Controller classes (Tutorial:Storyboards) I find that although the .m files appear in Build Phases they do not appear in the drop down menu for custom class.  If I enter the name manually it correctly opens the .h files when clicking on the right arrow to the right of the custom name.
    The standard outlets of View Controller (Search Display Controller & View), do not appear in the connections inspector of the custom class.
    A test IBAction method does not appear as an option when connecting a Bar Button Item to the Exit object of the Custom View Controller.
    Searching the internet for a solution I can find lots of similar stories with random work arounds, none of which have worked for me.  However, most of these have been for previous versions of Xcode and one user reported that upgrading to 6.1 solved the problem.
    I have redone this a few time to ensure that it isn't finger trouble and I do have a number of years of cocoa/Xcode experience, I'm just getting used to storyboards.
    I have tried:
    Clean project / Delete Derived Data / Relaunch Xcode
    Delete references to .h & .m files of custom classes and then added them back in.
    Is there any way of 'forcing' Xcode to recheck for Outlets and Actions in custom classes?

    To find out where th problem is,  either Xcode or something in your environment, you should try to run Xcode as a different user.
    The guest account is ideal for this as your are sure you will get a clean environment. You could also make a new user account and try running from there. If Xcode starts then the problem is something in your original user environment. If Xcode fails to stsrt with the new account then there is a system wide problem.
    BTW is your account an admin account or a regular account?
    regards

  • How can add partner at the time of PO creation

    The requirement is to add an extra partner in the Purchase Order header Partner tab at the time of PO creation itself. The PO is being posted through Idoc. A custom function module has been maintained as inbound processing FM and it calls BAPI_PO_CREATE1 inside.Can anyone help me resolving the requirement?

    Using GOS ...

  • Want to change item category at the time of order creation

    Hi Gurus,
    Client require to implement individual PO scenario.
    I was configured the same and working fine.
    I am facing problem at the time of item category determination.
    User using same material and order type and they are not ready to accept to create new order type.
    Now My order type is OR and item category group is NORM and right now system determine item category TAN.
    User not want to change manually at the time of order creation.
    I have specific condition on which i want to apply this logic.
    Now i want to determine TAB item category through some user exits or enhancement.
    Can anyone suggest exact in which user exit or enhancement i have to change.
    Thanks & Regards,
    Chirag

    1. Use TCode 0VVW for creating a Z Item Usage, say, ZPO1
    2. Do an item Cat determination in VOV4, as
    Sales Doc type
    Item Cat Group
    Usage
    Item Category
    OR -
    NORM -
    ZPO1 -
    TAB
    3. Maintain Customer Materials Info Record by using VD51.
    In item screen for Cust-Mat combination maintain Item usage
    Regards
    JP

  • Batch creation at the time of order creation & confirmation on the batch.

    Hi all,
    My client's requirement is while creation of the production order of say 100 pcs, system should create 4 batches, each of 25 (this might be different every time) of that order & also the confirmation (CO11) should be done on those batches.
    Also if the order contains 10 operations then confirmation of operation no. 0020 should not be possible before confirmation of 10, whether it is for partial & whole quantity.
    You can say these batches will reprsent the lots.
    Regards
    SmanS
    Edited by: SAP PP Consultant on Mar 9, 2009 8:05 AM

    Hi SAP PP
    You can use this function to automatically create a batch for the material to be produced.
    You can make the following settings in Customizing (production scheduling profile):
    No automatic creation of batches in production orders
    Automatic creation of batches during order creation
    Automatic creation of batches during order release
    To carry out automatic batch splitting via batch determination, proceed as follows:
    Select the component that you wish to split and choose Component ® Batch management ® Trigger batch det.
    The system lists all batches that meet the selection criteria and that have available stock on the requirements date.
    Distribute the required quantity as required over the existing batches.
    Choose .
    The system copies each batch as a separate component into the component overview screen.
    For more information refer to Batch Determination.
    To carry out manual batch splitting with manual batch assignment, proceed as follows:
    Select the component for which you want to carry out batch splitting. Choose Edit ® Insert ® Batch split.
    Enter the batch number and the required quantity manually in the component.
    Save your entry.
    Regards
    Sachin

  • Problem Using Custom Classes in UCCX8.5.1 SU3

    Dear All,
    My team is facing problem in using Java custom classes for UCCX 8.5.1 SU3
    The problem is that we have created some conditional prompts for currency in different languages, our custom java class contains two mathods GetEnglishString(parameter set) and GetUrduString(parameter set). We are able to use/call both methods one by one and both at same time in CCX Editor and validate the script successfully but when we set the script as application it failed.
    We tried to use both methods one by one and found that script with GetEnglishString is working ok but when we place GetUrduString (alone as well) MIVR logs say that method is unknown altough CCX Editor does not give us any error. We triend to restard Administration and Engine Services several time but to no avail. If somebody know the reason and solution kindly share it ASAP.
    Regards
    Kashif Surhio

    Hi
    In that case I would double check you have uploaded the file, and restart the server completely. In testing we found that restarting the engine didn't always reload the classes.
    Aaron

  • How do I add time/date stamp to my screen capture file names?

    I'm on mac osx.
    I'm trying to add time/date stamp to my screen capture file names. (at the moment it's just 'Picture 1' etc..)
    I've tried the following command  in terminal but have not had success. please help!!
    defaults write com.apple.screencapture name "datestamp" at "timestamp"
    killall SystemUIServer

    Surely someone else will provide a better solution. Meanwhile, however, you might want to try the following script. Copy and paste the script into the AppleScript Editor's window and save it as an application. Then drop your screen capture files on the droplet's Finder icon.
    on open theDroppedFiles
        tell application "Finder"
            repeat with thisFile in theDroppedFiles
                set theFileName to name of thisFile
                if (word 1 of theFileName is "Picture") and ¬
                    (word 2 of theFileName = word -2 of theFileName) then
                    set theExtension to name extension of thisFile
                    set P to offset of theExtension in theFileName
                    set theCreationDate to creation date of thisFile
                    set dateStamp to short date string of theCreationDate
                    set timeStamp to time string of theCreationDate
                    set name of thisFile to "Screen Shot " & dateStamp ¬
                        & " at " & timeStamp & "." & theExtension
                end if
            end repeat
        end tell
    end open
    Message was edited by: Pierre L.

  • Credit Card Payment at time of SO creation - Basic questions

    Most of our customers pay by credit card at the time of Sales order creation. (80% of times)
    Now sometimes they pickup the order at the same time and sometimes we follow the normal delivery process and ship material to them.
    Now we are not sure what document type or process flow will fit this process.
    Should we be using two different document types/ process to meet this requirement.
    Thought of using standard order type but then as they have already paid at the time of order creation we Dont want to send Invoice at Billing stage
    Shall we use Rush order or cash order for our requirement. (But they dont pickup material all the time, sometime we ship)
    Also if we maintain credit card information at Customer Master level, will it flow down to sales order and Biiling process.
    Thanks in advance.

    Jeet,
    I have worked with over 350 SAP customers over the last 14 years who have implemented the SAP Payment Card Processing business logic.  The majority of them use an integrated solution so that SAP submits the Authorization requests through SAP's Cross Application Payment Card Interface (CA-PCI) during Sales Order Save.  Some of them use external devices\applications to perform the Authorizations outside of SAP and simply use the SAP business logic to record those transactions.
    I would recommend you consider continuing to use the SAP Payment Card Processing business logic with your external Authorization process so that you can take advantage of the GL posting automation that SAP performs when an Invoice is posted to Accounting.  Namely that SAP will CREDIT the Customer AR account and DEBIT the Credit Card Receivable account for the card type used.  This is of great benefit to the Merchant because it eliminates the need for someone to MANUALLY post the payments to clear the open items on the Customer AR account once the Settlement deposit is received.
    Another advantage is that, when researching customer orders in SAP, you'll be able to see the card details that were used for payment.  Just be certain to activate SAP's credit card encryption logic or use a third-party Tokenization solution to secure the data.
    Eric Bushman
    [www.paymetric.com|http://www.paymetric.com]

Maybe you are looking for

  • Can't connect Azure Database in SQL Server

    Hi, I completed setting up the database and server on Azure, but when i tried to connect it using SQL Server 2012. I got an error. TITLE: Connect to Server Cannot connect to tcp:*******.database.windows.net,1433. ADDITIONAL INFORMATION: A network-rel

  • Using Admin Center/Process Administrator inside BPM Studio

    Hi, I have a process where we have included many jars and external resources as well as we are using the External Task - Portal for our JSP's? Also the users are such that they cannot be included inside of Studio Users. We therefore cannot test the p

  • JDev902: how open form with empty JTable?

    Background: Using the wizard I have created a number of JClient forms pulling their data from a BC-layer. However, some forms fill only very slowly because of the large number of rows of the underlying tables. Sometimes it would be better to open a f

  • Why is the returned internal table contains same values?

    Hi all, I got a bapi that returned an internal table type MARC. For testing in R/3, the internal table returns 3 material no. with different values, but in vb.net, it returns 3 entries with same values, (I've passed the internal table as ByRef in the

  • Add the new item through the Bapi 'bapi_outb_delivery_change'

    I want to add the new item to the existing outbound delivery.How to add the new item in the bapi 'bapi_outb_delivery_change'. Please provide me the code for the bapi 'BAPI_OUTB_DELIVERY_CHANGE' to add the new item.