Mandatory vatgruop field in VMP4

How can i do to make the vatgroup field mandatory in outgoing payments, but only in outgoing payments in account?
II tried the code bellow in the SP_TransactionNotification but when i do a outgoing payments vendor the message appears saing that the vat group is missing.
--Outgoing Payment - accounts  mandatory field Project (Lines)
If @object_type = '46'
begin
Declare @iva as nvarchar(2)
Select @iva =
(SELECT top 1 T0.vatgroup
FROM VPM4 T0
where T0.docNum = @list_of_cols_val_tab_del
order by T0.vatgroup
from VPM4 where docNum = @list_of_cols_val_tab_del
if @iva='' or @iva is null
begin
set @error = 1
set @error_message = 'Código IVA em falta'
end
end
How can i do just to have the message when the user is in Outgoing payments accounts?
Kind Regards
Margarida Pedroso

Hello
If you would like to check field is filled or not, always use If exists instead of checking the value of the field.
Payment on Account : field name DocType, value  'A'
So:
If @object_type = '46'
begin
if exists(select 'A' from ovpm T0 inner join vpm4 T1 on t0.DocEntry = T1.DocNum  where T0.DocType = 'A' and isnull(T1.VatGroup,'') = '')
begin
'Provide error message here
end
end
regards,
J

Similar Messages

  • Mandatory Segments / Fields for Incoming Vendor Invoice for PO

    Hello,
               I have a Requirement to develop an Inbound Interface for Incoming Vendor Invoice with Reference to a PO. If I have to build an IDoc using WE19 tool, what are the Minimum Mandatory Segments / Fields that I need to populate in order to Post the Invoice successfully for the PO? Please let me know along with the Qualifiers.
    Thank You,
    Venkata Phani Prasad K

    Managed to Find the Necessary Segments along with the Qualifiers required to Post the Incoming Invoice. Closing the Thread.

  • Mandatory input field in View

    Hi All,
    Mandatory input field in group
    In my web dynpro application i have marked the input field "required" and in output it shows with red asterisks...
    In my view i have 2 group elements with different fields. I am using method *check_mandatory_attr_on_view* to get mandatory fields in view, its not returning all mandatory fields in view. its just returning mandatory fields in first group.
    Has any one faced this kind of issue before? Is there anything additional to be done?
    Thanks
    Rajesh Yadla

    Depending on which NetWeaver SPS your are,
    there are some errors in this method,
    so better use the other method (CHECK_MANDATORY_ATTRIBUTES).
    This seems to work well.
    Check also SAP Notes:
    [Note 1026272 - WDA: Mandatory check on view of multiple context nodes|https://service.sap.com/sap/support/notes/1091460]
    [Note 1091460 - WDA: CHECK_MANDATORY_ATTR_ON_VIEW checks only LeadSelection|https://service.sap.com/sap/support/notes/1026272]

  • 0CFM_MARKET_VALUES: PARAM_P_AUSWT as mandatory input field

    Hi BW fans
    The datasource 0CFM_MARKET_VALUES includes one mandatory input field.
    Just for the case that there are no entries for this field in the source system, how do you prevent this error message and aborting of the extraction?
    Field PARAM_P_AUSWT(Evaluation Type (Risk Management)) is a mandatory input field; enter a value
    Message no. RSM1059
    Thanks
    BEO

    You have quotation issues. Something like this:
    onBlur="alert("test");"will blow up because the parser will match the wrong quotes. You have to either escape your quotes, or use single quotes internally.
    onBlur="alert('test');"or
    onBlur="alert(\"test\");"

  • Mandatory address fields for One time account in sales order

    Hi,
    In the pop-up screen of one time customer's address during sales order creation, there are some fields mandatory such as name and city. We want to make the region mandatory as it determines the taxes. Is there a configuration setting for this or any user exit.
    Regards,
    KC

    Hi
       Goto Transaction "OVA2" and under sales order header for particular procedure include the region field in your incompletion procedure.
        Reward some points if this helps.
    Regards
    Karan

  • How to set Mandatory Choice field while Creating Custom Task using Sharepoint Designer 2007

    Hi,
    I am new to Sharepoint development.I dont know whether i am posting  the question in Correct place.Kindly redirect me to the correct place if i am posting it in wrong place.
    I  created a custom task in Sharepoint Designer 2007 using
    Collect Data from User
    Action.
    I created a field in the task form which is of choice type and
    unchecked allow blank values
    because i  wanted that field to be a mandatory field.When i handled that task ,i was able to complete that task
    without selecting that mandatory field.But, I was expecting not to allow me to complete the task without selecting that field. Kindly  tell me how to set the choice field as mandatory.

    Hi,
    You are using SharePoint Designer 2007, so I moved the thread to the appropriate forum for MOSS 2007.
    This is by design that
    Workflow-generated form (for action Collect data from User) does not perform validation properly on drop-down choices, the workaround is to use JavaScript to perform the field validation.
    This thread has the JavaScript code can help you:
    http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/0ad7fc3c-97a1-464e-ae89-c3133462dda8/
    Xue-Mei Chang

  • CMP 2 non mandatory timestamp field in Oracle 9 release 2

    Dears,
    My machine holds the following:
    Win XP pro SP 1
    Oracle 9i release 2 DB
    Jbuilder X enterprise Edition with SUN ONE App Server plugin
    SUN ONE Application server platform edition update 2
    They are all in the same machine (so there is no problem as issue 4707531 of using different Oracle drivers)
    I connect using OCI not thin.
    I got the following problem when trying to test my Session EJB that calls CMP.
    SEVERE ( 4716): EJB5071: Some remote or transactional roll back exception occurredcom.sun.jdo.api.persistence.support.JDODataStoreException: Got a JDBC SQLException.
    Please read the remaining error stack for more information.
    NestedException: java.sql.SQLException: Invalid column typeBy tracing the problem I noticed that my code works fine if I set a timestamp field in this table, this timestamp is not mandatory.
    Is it a bug in SUN ONE with Oracle 9i, or anyone have a solution?

    Hi Ash,
    Could you please verify that your .dbschmea file and table creation scripts are in sync. The easiest way to achieve this is to recapture the .dbschema file, repackage and redeploy.
    Thanks,
    Mitesh

  • How to bring the non-mandatory selection field in Portal

    Hi Expert,
                   I have created an query in Bex. when i run it one selection field is coming like Material,
    vendor etc, but in this selection field  all are option, non of them is mandatory.
    My problem is that when i am creating iview on that query  in 7.0 flow and executing/preview
    that iview it directly bring the output. it is not bring the selection paremeter like material, vendor,
    etc. But same case is not happened with ivew for which query has mandatory field
    I want that en spite of running directly it ask the optional selection parameter.
    Thanks and Regards
    Lalit Kumar

    Hi
    Check it in SPRO- sap img- material management- logistics invoice verification- incoming invoice- activate direct posting to g/l accounts.then save. It will work.
    Regards,
    Raman

  • Mandatory display fields cannot be hidden

    Hi,
    I want to  hid field which are mandatory  in report at FIAA  S_alr_87011990- "Asset history sheet", but it not allowed. It shows message  no. 0K101. Are any ways to hid this field?
    Rgds, Stenwa

    You wrote about this, but not very clearly at all.
    First you say "I want to hide field", then in the next sentence "I don't want to hide field"!!!!
    Here is what I did and it works perfectly.
    Screen has asset and subnumber:
    Now I HIDE these in the variant:
    and bingo, they are not in the selection screen:
    If this is not what you want then please get some help to explain in clear English your requirement.

  • Mandatory/Default field for mrp/forecast profile mrp area

    Dear guru,
    In MM01/MM02 when i create a new mrp area for a material I want Mrp profile field and forecast profile field as mandatory field. Or as alternative solution purposed with a default.
    How can I do that ?

    Dear Murugesan ,
    in OMSR i make the mrp profile (MDMA-DISPR) and forecast profile (MDMA-PROPR)
    as required entries in the screen sequence.
    But when I create/change mrp area fields the system don’t consider as required these fields.
    Are you sure that the field selection for data screen is concerning also for mrp area fields ?
    Thanks.

  • Mandatory Vendor field in BOM

    Dear SAPeers,
    I would like to make the vendor field in the purchasing view for the non stock item mandatory.
    Kindly suggest a feasible solution.
    Thanks and Regards
    Srinivasan R

    Dear,
    Go to SE51 enter Program  SAPLCSDI and Screen number   0870 cleck on change mode then click on layput Tab and here define it as mandatory through program tab input as required. Please take help from technical person.
    Regards,
    R.Brhmankar

  • Mandatory parameter field in selection screen

    Hi Experts,
    As there are 2 options to get the input from the user. When I use select options because I need to make the field mandatory, it displays the output(blank) whenever there is no input/irrelevant input. When I use parameters, I cannot make it mandatory.
    I need to display text boxes in the selection screen which should be mandatory and should only proceed when the user enters relevant data.
    Please note that I have put the validation in the select options for a field like month as:
    if s_month-low > '12' or s_month < '1'.
         MESSAGE 'Please enter a valid month' type 'E'.
    endif.
    but for a id, there is a search help. If the user do not enter the value from a search help, it displays the blank output. How to put validation on this?
    Regards
    Mani

    Hi Mani,
    You can do a validation at AT Selection Screen.Basically it will do a select single and try to fetch any line item.
    A sample example as follows..
    At Selection-Screen on S_DATE.
    if S_date is not initial.
    Perform validatedate.
    Endif.
    Form Validatedate.
    Select single date
              from DB table
             where date in S_date.
    endform.
    if Sysubrc ne 0.
    MESSAGE 'Please enter a valid month' type 'E'.
    endif.
    Regards,
    Kannan

  • FB60 required/mandatory text field

    Hi all,
    i have a quick question. how do you configure FB60 so that "text" field becomes a mandatory input. Thank you

    Hi
    Go to T-Code OBA7 ( Document type)
    Select Document type KR ( Vendor invoice)
    and Display it in edit mode.
    Check the box " Document header text  under "Required during document entry". Save the setting.
    This will prompt all Vendor invoices to enter Documennt header text.( This is a client level setting)
    SIVA

  • Mandatory "Allocation" field in MRHR (SAP 4.0B)

    Hi Guys !
    I'm writting an application to post MM invoices using BDC for MRHR transaction. SAP Version 4.0B.
    My problem is that for some PO items, field "Allocation" is required and for others NOT and I need to inform user (in my application) if "Allocation is mandatory or nor - before he presses "Post" button.
    Problem looks like this.
    I start MRHR and key in header data. "Allocation" field in header(vendor line) is optional.
    When I select PO and PO item, and enter item data - MRHR takes me to to the screen (SAPMM08R/ 0200) :
    "Enter invoice: Document overview in USD".
    When I press simulate, I got the message "Required entry not made" and I'm taken to screen (SAPMM08R/ 0120)
    "Enter Invoice: Individual Purchase Order Item" and field Allocation (BSEG-ZUONR) is highlighted.
    In summary - I'm looking for a setting/configuration transaction - where "Allocation" field is defined as "mandatory"
    I suspect it is related to "Account assignment category" (in this case - item acc. assingn. cat = "P") and I've checked OME9 already. Still - I don't know where this was configured.
    I tried SDH0 for MRHR (but there are no variants defined).
    I tried OB28, OBA5 and OBA7 - with no success.
    Do you know where this configuration is maintained?
    Thanks for help in advance.
    Best regards
    //Tomasz

    Field status definition extremely inconvenient. You have to go through a couple of tables to get what you are looking for.
    Thanks for hint

  • Is it possible to mandatory a field(Sales Lead Name) in Sales Inquiry

    Hi,
    I have a scenario like when sales dept creating a sales Inquiry they want  that a field is to be mandatory of Sales person name,who is responsible for the sales.They want that with out the Sales person's name it will not allow to create the sales Inquiry.
    Now is there any way out from customizing?
    Please through some light
    Thanks in advance,
    Tokan

    You can achieve your requirement through partner determination for sales doc header.
    To Create Sales Personnel (if you are not using HR module for Sales Personal) in SAP, use Tcode VPE1.
    You have to Maintain Partner Determination in SPRO:
      IMG - SD - Basic Functions - Partner Determination - Set up Partner Determination
    As you can set it up in Sales Order (say, At Header),
    Click: -Set up Partner Determination for Sales Document Header
    Maintain a Partner Determination procedure ZIN - Inquiry Order.(copy TA - Standard Order)
    Make PE-Sales employee as mandatory in ZIN - PE-Sales employee in Partner Function Procedure in Partner Determination procedure.
    Now, From Left-hand side tree, click on:
    Partner determination procedure assignment.
    Here assign ZIN to your Sales Doc type (Say, IN - Inquiry).
    Again from Left-hand tree, select
    Account groups - Function Assignment
    Here, Link all Customer Acct Grps to PE/ VE
    Now in Sales Order (T. Code: VA11/ 12), to include Sales Employee:
    Goto --> Header --> Partner
    here, in Column Partner. Function: Select VE/ PE as defined for Sales Employee.
    Hope this can assist you.
    Thanks & Regards
    JP

Maybe you are looking for

  • TS3960 same problem with mavericks server app....tried additional ino solution did not work..any suggestions?

    TS3960: Server App or Server Admin can't connect to a newly upgraded Lion server same problem with mavericks server app....tried additional info solution did not work..any suggestions? All log in info is correct. will not accept worked fine on 10.8 j

  • Have a 42" lcd with hdmi connections.  What do I need?

    I purchased a mini-dvi to dvi plug, and now have ordered a dvi to hdmi plug as well. My question is what settings would I have to adjust and how would I get the sound out as well? I want to control my macbook from a distance on my television with a b

  • How to un do highlighted marks from a text

    Please tell me anybody how to remove highlighted marks from a pdf text

  • Java BeanShell

    Hi again. Is it possible to use a java beanshell in jcreator??? I use an option called "Interpret" in xemacs which enables me to test individual classes without having a main test class. Does jcreator have this facility?? Thanx

  • Fedora via Parallels won't start up

    Hi there.. Yesterday I was asking whether I can have linux on my mac... Today my linux is already there, installed on a virtual drive in Parallels tools... but here's the problem: it won't start up.. after (I think successful) booting it says after s