How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice

Hi,
Kindly solve, How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice.
Regards,
Rajeev.

Follow this step..
1. In SQL Server, go to the SAP B1 Database you're using. 
2. then on the Object Explorer , go to Database Folder, explode the SAP DB->Programmability->Stored Procedures->SBO_SP_TransactionNotification * the only Stored Procedure that is allowed to be edited. Just right click and modify
3.  Try to paste this -> and click F5
If
@object_type ='13' and @transaction_type in ('A','U')
Begin
If EXISTS
select DocEntry from ONIV
Where DocEntry = @list_of_cols_val_tab_del
and  SlpCode<>'-1'
Begin
set @error_message = 'Please select the Sales Employee'
set @error = 1
END
END
Regards
Kennedy

Similar Messages

  • How to maintain sales employee as a customer master

    How to maintain sales employee as a customer master not like sales employee responsible for sales

    Hi Prem,
    For storing the sales employee details, we need an HR master record.
    The controlling factor while maintaining Customer Master data is Account Group. Try creating a custom Account group and link the Sales Employee to it.
    regards,
    Raj

  • I have not been able to figure out how to put in a price choice field?.

    I have created my form:  A Retreat Registration form.   I CANNOT yet figure out how to put the cost in so that when a selection is made, it will go to paypal?  I have 4 choices that are listed vertically:  single room, shared room, early bird rate, etc. They all have choice boxes next to them, but NOW, I need to put the cost line item next to each choice and once a customer chooses that item, this is what will get transferred to Paypal on REGISTER click.  HELP anyone?
    Thanks,
    Debra

    Do a forum search or look at More Like This on the right side of this page.
    This is asked and answered very often.

  • Not able to see Metadata fields when adding the fields to the rule in UCM

    Not able to see Metadata fields when adding the fields to the rule even after creating them in information fields of configuration manager.It is happening for few fields only.We are using 10.1.3 version of UCM.Kindly provide a solution if any.

    Dhilipan,
    I am trying to setup AES at the current Customer.
    You are right on LR_JP to be linked to customs code list instead of ACE and I do achieve that if I were to maintain the Custom code list by maintaining the assignment for EAR in a separate test.
    I was infact trying to follow the link: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30c7015e-c191-2d10-71b9-95907dc8edd1?overridelayout=t…
    On this document, if you look at page# 14 thru 17, it has the steps I described in my original note with customs code still appearing in the drop down for 'EXCPT' for EAR.
    Nevertheless, I wanted to default Type = C50 when the license type for the line on the Customs declaration is 'EXCPT' but if you see the very last screen-shot below, even though the license type configuration has default value as 'C50' it did not get pulled into the line item Documents tab when I tried to pick the category as 'CUII'.
    Let me know your thoughts on defaulting the data into Customs declaration for AES filing.
    What I want to achieve is the following:
    When License type is 'EXCPT', system should default the type as 'C50'
    Should put the License type 'EXCPT' into the number field
    Should put the actual License# 'ENC' into the Supplement field
    Should put the ECCN # '5A002' into the Details field
    Thanks,
    Prashant.

  • How to make Sales group and office field mandatory in VA01 first screen

    hi gurus,
    can anybody tell me how to make Sales group and sales office mandatory field on VA01 tcode first screen. i have requirement to make it compulsary on the first screen otherwise they wont be able to goto next screen.
    will reward points for sure
    thanks
    mandy

    Hi! Mandy,
    Try using t.code SHD0, choose your transaction variant here, further choose your screen variant.
    Next select your screen variant and in the Menu bar select Variant> change with processing>Make repairs in foreign namespaces only if they are urgent> Continue(Enter)>again 'enter'>Object can only be created in SAP package>continue(enter)> Exit and save >This variant contains other screens, adopt these as well?>enter>enter> scroll down to the entry required by you make the necessary changes(Output only, invisible or required) and save.
    The system will prompt to assign a package and request enter the necessary values.
    Provide your feedback.
    Regards,
    PATHIK

  • How to skip a selection screen mandatory field in debugging mode with out changing the code?

    Hi Team,
    In my report there is two fields on selection screen, one is obligatory field , but i just want to execute the report(for testing per pus) with out entering  the data for the mandatory field with out changing the code. could u let me know which event and how to debug the report. or else  in debugging mode how can i change that field as non mandatory field.
    Regards,
    Venkat.

    If the value is not of importance how come it became obligatory in your program?
    Any how you can do one thing...Put some value in your obligatory field, put a debugger point where you are interested in  and use the pencil tool to change the value of the field while debugging. 
    Regards,
    Philip.

  • How to block sales employee without enter in sales order.

    Dear Guru's,
    I have created sales employee code 1234 and using same in sales order with using partner function due to the some reason now I donu2019t want to book sales for same employee code 1234. Can anyone help me how to block employee code.
    Regads
    dharma

    hi
    if i enter sales employee manually in sales order it should not allow me to enter and it should give message this employee in inactive status so that user will under stand accordingly.
    this employee number we are entering in sales order manually it's not copying from customer.

  • How to put cursor in a text field

    hi,
    I have a text field in my jsf page.By default I want to put the cursor into this text field.when a letter is entered into this text field,the data table below this text field must change depending upon the value entered into the text field.After this change also,the cursor must be in the same text field.
    how it is possible.
    when I entered any letter in this field,there is a call to the server.the cursor must be in that textfield after the call.

    Use DOM+JS.
    With element.focus() you can set the focus on the desired element.
    With the 'onkeypress' attribute you can execute some piece of Javascript on every key press, for example submitting the form or doing an AJAX request.

  • IW31 how to set functional area as mandatory field?

    Hi,
    Can anyone guide me, is any way to set "functional area" as mandatory field (t-code iw31 Additional Data -> Functional area)? Thanks in advance.

    go to the config:
    SPRO:  PM & CS -> Maint. & Serv. Processing -> Maint. and Service Orders -> Define Field Selection  for Order Header Data (PM)
    ...Choose "Field Selection for order header data"
    ...toggle to change mode (use menu "field selection at the top left".  Then find your field (functional area CAUFVD-FUNC_AREA) and put the radio button to "required"
    This will make it mandatory for all order types.  If you want only specific order types, use the influencing fields to pick only certain order types.

  • How to add Sales Employee Details in Customer Master Data

    Hello Gurus,
    The requirement is that my client is in manufacturing and sales. And they have different sales person assigned (like territory manager and accounts support) for respective customers.  My clients needs to have the name of the territory manager available somewhere in CMD so that the end user is aware about the sales support representative. How we can configure it? If yes, will we use LSMW or MASS to upload the data.  Please suggest. And we dont have a HR module in Place, so do we use T COde VPE1 (or PAL1) and then asign it parnter function or is there someway else. Eg - My customer number is 1000, in the same master number,  details of sales employee with the phone numbers and email address should appear.
    Regards

    Hey thank you Warren for your quick reply.
    So If I am right, the only option to add sales employee is in partner function tab.
    Moreover, will we use LSMW to add the data or T code MAss will work.
    And we dont have HR module in place, so I guess we will not be able to use. T- code Like PAL1

  • How to validate incoming messages with mandatory field coming as null/empty

    Hi,
    I want to validate the incoming messages received by the file adpater.
    1. Need to check that all the mandatory fields(minoccurs=1) has values, else it should return fault. But what happening now is even though the mandatory fields are empty/null, file is being read by the file adapter and not getting faulted.
    2. I have tried using the Validate Activity/Assign Activity but this is a business fault and not sytem fault, hence no faults are auto generated.
    3. We are presently using the if/switch activity and putting the conditions manually in order to validate the mandatory fields and hence it is throwing the business faults explicitly.
    4. But if there is 200 fields mandatory out of 500 fields schema, then we need to hardocde manually all 200 fields. Please advise me if this is possible in any dynamic way.
    Thanks
    Edited by: 902781 on 15.mar.2012 07:33

    Dear vijay,
    This is my xsd::
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="exampleElement">
    <xsd:annotation>
    <xsd:documentation>
    A sample element
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    *<xsd:element name="element1" type="xsd:string" minOccurs="0"*
    nillable="false"/>
    *<xsd:element name="element2" type="xsd:int" minOccurs="0"*
    nillable="false"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I tried the above xsd as well as
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="exampleElement">
    <xsd:annotation>
    <xsd:documentation>
    A sample element
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    *<xsd:element name="element1" type="xsd:string" minOccurs="1"*
    nillable="false"/>
    *<xsd:element name="element2" type="xsd:int" minOccurs="1"*
    nillable="false"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    But instance is getting completed even though the mandatory string field(element 1) is empty/null like:
    <element1></element1>
    What I feel is, string will accept all the values whether it is int, date, long and in the same way it is accepting null character.
    Please let me know if you have any solutions to overcome this.
    Thanks again.

  • How to put an asterisk in the field label rather than on the field in Infopath

    For a mandatory field in Infopath, we know that the red asterisk shows up always on the control. Is there a way we can make it appear on the label instead. 
    In the figure below, can we have the red asterisk on the label where ? symbol is present ?

    Hi Prajk,
    From your description, my understanding is that you want to put an asterisk in the field label rather than on the field in Infopath.
    By default, the asterisk is on the field, not the field label. If you want to put an asterisk in the field label, per my knowledge, you need to develop the column to do it.
    For developing InfoPath controls, I suggest you create a new thread on Visual Studio Tools for Office forum, more experts will assist you with Office development.
    VSTO:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsto
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to Generate sales orders with custom Fields using BAPI_BUSPROCESSND_CREATEMULTI

    Hi,
    I need to generate sales orders with custom fields on table CRMD_ORDERADM_H using BAPI_BUSPROCESSND_CREATEMULTI, after changing the structure BAPI_TE_CRMD_ORDERADM_H, and feed the  EXTENSIONIN table of the BAPI with data, the order is created, but any value on custom fields.
    After debuging, I saw that the BAPI search for structure conversion in table CRMC_OBJECTS_GEN, but we haven't entry with BAPI_TE_CRMD_ORDERADM_H in this table. is that the problem ?, Is there any way to fix it?
    Best Regards,
    Salah.

    That depends on where do you have the customer fields, check the table CRMD_CUSTOMER_H, if your custom fields are there, you need to use the changing parameter CUSTOMER_HEAD, I guess your already checked that one, right? but there's no custom fields, well...AET/EEWB doesn't enhance the strcuture of the BAPI, so you should do it manually, check the note following note for further details.
    988410 - FAQ: User-defined fields in the BAPI
    If you don't have access to the SAP Marketplace, in resume you should create an append on the structure BAPIBUS20001_CUSTOMER_H and include the following strcutrue CI_EEW_CUSTOMER_H
    Cheers!
    Luis

  • How to create sales employee without HR module

    Dear Experts
    IMGSDMASTER DATABUSINESS PARTNER-USE SALES EMPLOYEE WITHOUT HR
    2. Define PErsonnel area (usually locations)
    3. Define PErsonnel Subarea (bifurcations within loctions, may not exist but recommended to be maintained)
    4. Define Employee Group ( usually Types of employment)
    5. Define Employee sub group (usually used as grades)
    6. Assign Employee sub groups to Employee groups
    7. partner function part also i finish in sales order it shows fine
    i already finish above steps and i already gone the more than 40 threads
    but in t.code VPE1 system show the message
    Choose an action type
    can you please guide what steps i have to do further so i can create sales employee

    hello, friend.
    try t-code VPE1 or PAL1.  even without HR, you may have to define certain HR organizational units in Enterprise Structure (e.g. personnel areas and sub-areas).
    regards.

  • How to create Sales Employee Without HR?

    Dear all,
    I checked the function of creating sales employee without HR but it only generate the two request only, but i cannot create the sales employee.
    Can any plz send me the details for the same.
    Thx & Regards,
    PM

    hello, friend.
    try t-code VPE1 or PAL1.  even without HR, you may have to define certain HR organizational units in Enterprise Structure (e.g. personnel areas and sub-areas).
    regards.

Maybe you are looking for

  • IPod nano 3rd generation showing up in ITunes but will not synch

    I created new playlists in iTunes about 2 months ago and they synched to my Nano with no problems.  I created a new playlist yesterday, plugged in the Nano via a USB and I can't get iTunes to synch with Nano.  So the current playlists on it do not sh

  • AS: setting table properties in ID CS3 invokes odd error message

    I'm converting an InDesign CS2 script to CS3 and am having the strangest error. This code used to work in ID CS2 for the selected text frame: >tell parent story of insertion point 1 of selection >set theTable to make table with properties {width:grid

  • Using a filter in RUN Allocation

    Does anyone know how to use a filter in the WHAT, WHERE clauses in RUN Allocation? I need to use something like WHERE=%STAT_ACCTS% AND [GROUP]<>"PL" but it dosen't work. On the contrary, is there a way to get the basemembers of a parent ID based on a

  • Error Building the Application

    Hi Guys, Whenever I try to test my pages from struts-config.xml, I get the following errors. C:\Project\nepsys\gwrs\ViewController\public_html\test.jsp Error(1): java.lang.IllegalArgumentException Error(1): Unable to load taghandler class: http://xml

  • VX2245wm - Fails to detect display properly

    I bought a ViewSonic vx2245wm monitor to go with my MacBook. Problem is, sometimes when I start up with the display connected, the mac forgets the display type and sets it to a low res mode. I have to press detect display quite a few times before it