How to do the validation in sap xi (input file)
hi,
how to do the validation in sap xi (input file)?
regards
Ruban
Hi Ruban
There are no fixed set of validations.
It all depends on the exact functional requirements. Most of validations revolve in XI around,
1. Validation of madatory fields.
2. Cross Referncing of data.
3. Validation for data in some fields , etc
refr the below links for few details regarding validation
<b>File Validations in SAP XI A Case Study</b>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
refer this Blog
<b>Validating messages in XI using XML Schema</b>
/people/morten.wittrock/blog/2006/03/21/validating-messages-in-xi-using-xml-schema
<b> Where to create logical validations </b>
Where to create logical validations
<b> HTTP to File with source XML validation </b>
HTTP to File with source XML validation
Thanks!!
Regards
Abhishek Agrahari
Similar Messages
-
How to transport the validations, assignments, named searches, and workflow
Hi Experts
How to transport the validations, assignments, named searches, and workflow
between two repositories.
Thanks
Vickey.Hi Vickey,
In MDM 5.5 you can use the Archive /Unarchive option for it
You can refer the below link:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20751e78-f81f-2a10-228f-eb3a16421b4d(Export/Import Schema)
Note:Export/Import schema can also be used for Transportation in MDM however as of MDM 5.5 the maps,validations and workflows cannot be transported.
From MDM 7.1 version onwards you can use the Export/Import Schema as well
You can refer the below link:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0dd1ae0-36e5-2b10-f8b4-e6365e643c0b
Hope It Helped
Thanks & Regards
Simona Pinto -
How to Change the Validity period
Hi All,
Could any one please explain how to change the validity period of SAP as when i am trying to post the PO with a delivery date in year 2011 it is not allowing me more than 2010 year. When i checked in Calender Maintenance the last entry in it is 2010. When i am trying to change the validity of the Indian settings it is not allowing me to change the year from 2010 to 2012 or any other.
regards
PSNGHi,
Just check "FOPC_CONSIST_CHECK" T-Code .
Acthually this is for "Consistency Check on Validity Period"
I am not very sure weather change option is there or not.
Thanks
Mayank -
How to delete the Sites in SAP IS RETAIL
hello ALL,
can any one explain me how to delete the Sites in Sap Retail.
thanks in advanceHello All,
Delete the plant / Site complete details and put in one transport and do the import & export.
Thanks.
Edited by: krishna cherry on Jul 26, 2010 3:28 PM -
How to get the last page SAP Script form
How to get the last page SAP Script form.
I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
RegardsHi
You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
From SAP Help:
This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
/: IF &NEXTPAGE& = '0'
Last page
/: ENDIF
Max -
How to use the validation work in Both TAB and Mouse keys in Forms6i
Hi,
I have a validation script once it's validated it should execute the query.But using When-Validate-Item i can't use execute_query.I am able to use the validation in Key-Next-Item trigger but if the user moves the cursor using mouse then it's not working.
How to use the validation script working in Both Scenarios(Tab and Mouse keys).
Can anyone please give inputs to rectify the above issue?.So you have multiple fields, but on at least one of them if it's valid you immediately want to execute the query?
You could create a hidden field in a control block Query_Now default 'N'. In a WHEN-VALIDATE-ITEM on your item, if it's determined to be valid, then set Query_Now to 'Y'.
In a WHEN-NEW-ITEM-INSTANCE at block level, check if Query_Now is 'Y'. If it is then execute the query (and set it back to 'N'). -
How to use the validation.xml in struts validation?
Can any one please help me, how to use the validation.xml in struts validation? possible please give me simple example.
Edited by: SathishkumarAyyavoo on Jan 31, 2009 12:03 PMThese 2 are the good articles for the beginners to do validation things in Struts. you can follow any one of them.
1. [http://viralpatel.net/blogs/2009/01/struts-validation-framework-tutorial-example-validator-struts-validation-form-validation.html]
2. [http://www.vaannila.com/struts/struts-example/struts-custom-validation-example-1.html]
All the best. -
How to use the Variants in SAP Transportation and what is its use ?
Hi experts,
How to use the Variants in SAP Transportation and what is its use & How to create a variant in SAP ?
Can anybody answer this ?
Regards,
ShaktiHi,
If you are asking about "slection vairants" in SPRO settings of "shipment cost document" then
When it is activated,
each user can have his own slecetion and list criteria for
1. List shippment costs:calculation
2. List shippment costs: settlement
This can be directly saved from VI01 screen by the user.
from environment> lists
This is user specific only.
Hope this helps.
Regards,
Sharan -
How to insert the style in sap-script? and in smart form?
how to insert the style in sap-script? and in smart form?
Hi..,
For SAP scripts u need to create them in SE72 ...
and u can include them in the script editor as..
/: STYLE <STYLE-NAME>
P1 text............... (*** P1 is the Paragraph format created in SE72 )
/: STYLE *
For smartforms u need to go for the transaction (tcode) SMARTSTYLES... here u can create paragraph and character formats globally...
<b>Sunil, plz do remember to close all your threads, when ur problem is solved !!</b>
reward all helpful answers,
sai ramesh -
How to change the color of SAP screen?
Hi Frens,
I know it has nothing to do with SD Community, but still I am asking. Can anyone tell me "How to change the color of SAP screen?" It is needed especially when you are working on System Landscape including PRD, Qua & Dev. There are chances that you end up making a test case in PRD instead of Dev or Qua. To avoid that, different color of SAP screen may be very useful and safe.
Regards
Vikas Chhabra
SD/CIN ConsultantWe had a clone of SAP for testing
Only GUIXT solution was available for users to distinguish between real Prod & Clone as SID was same
Created 2 scripts n C:\guixt\scripts
saplsmtr_navigation.e0100.txt
Esession.txt
BOTH having identical code
if V[_ashost=10.3.3.18]
TitlePrefix "CLONE18"
TitleSuffix "(CLONE8)"
endif
if V[_ashost=10.3.3.25]
TitlePrefix "PROD25"
TitleSuffix "(PROD25)"
endif
After much research - this was only solution.
GUIXT will be around; like SAPSCRIPT & SMARTFORMS
despite the enticement of Adobe Forms!
After some time you may set GUIXT profile start window HIDDEN
This you do by clicking profile button of GUIXT menu
If you want to see GUIXT Window again
CMD.exe Dos prompt
cd C:\Program Files\SAP\FrontEnd\SAPgui
guixt visible
Regards
Jayanta Narayan Choudhuri
Kolkata
URL: http://ojnc.byethost11.com -
How to upload the data from excel(3 tabs) file to sap environment
Hi all,
This is Mahesh.
how to upload the data from excel(3 tabs) file to sap environment (internal tables) while doing bdc.Hi,
The FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' makes it possible to load a worksheet into an internal table in ABAP.
However, if you want to get the data from several worksheets, I think you are stuck with OLE access to your Excel Workbook...
You can find a solution for 2 worksheets in this post :
TO UPLOAD DATA FROM 2 EXCEL SHEETS INTO TWO INTERNAL TABLES
I think you can easily modify it to handle any number of worksheets.
Hope it helps !
Best regards,
Guillaume -
How to retrieve the data from SAP-BAPI by using VB Code
Hi ,
I am new to BAPI.
V have created an application in Visual Basic with the following fields
EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
We have written the code for SAVING the data into SAP. Already we have
constructed a table with the respective fields in SAP.
For that we ourself created our own BAPI Structure / Function Group /
Function Module/ Business Object - RELEASED related elements.
1)Established the connection successfully.
2)Stored the data into SAP Successfully and v r in need of
3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
Following is the code :
'BAPI Structure : ZBAPIEMP
'Function Group : ZBAPIEMP
'Function Module : ZBAPI_EMP_CREATEFROMDATA
'Business Object : ZBAPIEMP
'Function Module : ZBAPI_EMP_GETLIST
Dim bapictrl As Object
Dim oconnection As Object
Dim boEmp As Object
Dim oZEmp_Header As Object
Dim oImpStruct As Object
Dim oExpStruct As Object
Dim oreturn As Object
Dim x As String
Private Sub Form_Load()
Set bapictrl = CreateObject("SAP.BAPI.1")
Set oconnection = bapictrl.Connection
oconnection.logon
Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
End Sub
Private Sub cmdSave_Click()
oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
oZEmp_Header.Value("ADDR1") = txtAddr1.Text
oZEmp_Header.Value("ADDR2") = txtAddr2.Text
oZEmp_Header.Value("CITY") = txtCity.Text
oZEmp_Header.Value("PHONE") = txtPhone.Text
boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
x = oreturn.Value("Message")
If x = "" Then
MsgBox "Transaction Completed!..."
Else
MsgBox x
End If
End Sub
Private Sub cmdView_Click()
End Sub
COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
-Tim
Option Compare Database
Dim SAPLOGIN As Boolean
Dim FunctionCtrl As Object
Dim SapConnection As Object
Sub SAPLOGOUT()
On Error GoTo LogoutFehler
SapConnection.logoff
SAPLOGIN = False
Exit Sub
LogoutFehler:
If Err.Number = 91 Then
Exit Sub
Else
MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
End If
End Sub
Function SAPLOG() As Boolean
'Verbindungsobjekt setzen (Property von FunctionCtrl)
Set FunctionCtrl = CreateObject("SAP.Functions")
Set SapConnection = FunctionCtrl.Connection
'Logon mit Initialwerten
SapConnection.Client = "010"
SapConnection.Language = "EN"
SapConnection.System = "PR1"
SapConnection.SystemNumber = "00"
'SapConnection.Password = ""
SapConnection.GroupName = "PR1"
SapConnection.HostName = "168.9.25.120"
SapConnection.MessageServer = "168.9.25.120"
If SapConnection.Logon(0, False) <> True Then 'Logon mit Dialog
Set SapConnection = Nothing
DoCmd.Hourglass False
MsgBox "No connection to SAP R/3 !"
SAPLOGIN = False
SAPLOG = False
Exit Function
End If
SAPLOG = True
End Function
Function MatDescr(MatNr As String)
Dim func1 As Object
Dim row As Object, X As Integer, ErsteNr As String
Dim DatensatzZähler As Long
Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
If Not SAPLOGIN Then
If Not SAPLOG() Then
MsgBox "No connection to SAP !", 16
SAPLOGOUT
Exit Function
End If
End If
' Instanziieren des Function-Objektes
Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
' Export-Paramter definieren
func1.exports("MATNR") = MatNr
func1.exports("SPRAS") = "EN"
DoEvents
If Not func1.call Then
If func1.exception <> "" Then
MsgBox "Communication Error with RFC " & func1.exception
End If
DoCmd.Hourglass False
SAPLOGOUT
Exit Function
Else
MatDescr = func1.imports("MAKTX")
End If
If MatDescr = "" Then
MatDescr = "PART NO. NOT FOUND"
End If
End Function -
How to do the Validations in Report Programming?
How to do the Validations in Report Programming?
how to do screen Validations and Field Validations if posssible can any one send the code regarding the Validation ....
Tks
DurusojuAT SELECTION-SCREEN - selscreen_event
Syntax
| { ON {para|selcrit} }
| { ON END OF selcrit }
| { ON BLOCK block }
| { ON RADIOBUTTON GROUP radi }
| { }
| { ON {HELP-REQUEST|VALUE-REQUEST}
| FOR {para|selcrit-low|selcrit-high} }
| { ON EXIT-COMMAND }.
Alternatives:
1. ... OUTPUT
2. ... ON {para|selcrit}
3. ... ON END OF selcrit
4. ... ON BLOCK block
5. ... ON RADIOBUTTON GROUP radi
6. ... { }
7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
{para|selcrit-low|selcrit-high} }
8. ... ON EXIT-COMMAND
Effect
These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
Alternative 1
... OUTPUT
Effect
This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
Note
The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
Alternative 2
... ON {para|selcrit}
Effect
This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
Note
If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
Alternative 3
... ON END OF selcrit
Effect
This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
Alternative 4
... ON BLOCK block
Effect
This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
Alternative 5
... ON RADIOBUTTON GROUP radi
Effect
This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
Note
The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
Alternative 6
Effect
The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
Alternative 7
... ON { HELP-REQUEST | VALUE-REQUEST } FOR
{para|selcrit-low|selcrit-high} }
Effect
The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
Notes
These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
Alternative 8
... ON EXIT-COMMAND
Effect
This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
Example
In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
REPORT demo_at_selection_screen.
Global data
DATA: sflight_tab TYPE TABLE OF sflight,
sflight_wa LIKE LINE OF sflight_tab.
Selection screens
PARAMETERS p_carrid TYPE spfli-carrid.
SELECTION-SCREEN BEGIN OF SCREEN 500.
SELECT-OPTIONS s_conn FOR sflight_wa-connid.
DATA s_conn_wa LIKE LINE OF s_conn.
SELECTION-SCREEN END OF SCREEN 500.
Handling selection screen events
AT SELECTION-SCREEN ON p_carrid.
IF p_carrid IS INITIAL.
MESSAGE 'Please enter a value' TYPE 'E'.
ENDIF.
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD p_carrid
ID 'ACTVT' FIELD '03'.
IF sy-subrc = 4.
MESSAGE 'No authorization for carrier' TYPE 'E'.
ELSEIF sy-subrc <> 0.
MESSAGE 'Error in authority check' TYPE 'A'.
ELSE.
IF sy-ucomm = 'ONLI'.
CALL SELECTION-SCREEN '0500'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN.
IF sy-dynnr = '0500'.
IF s_conn IS INITIAL.
MESSAGE 'Please enter values' TYPE 'W'.
ELSE.
SELECT *
FROM sflight
INTO TABLE sflight_tab
WHERE carrid = p_carrid AND
connid IN s_conn.
IF sy-subrc <> 0.
MESSAGE 'No flights found' TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
Main program
START-OF-SELECTION. -
How to fill the gaps in SAP Fico configuration
Hi Guys,
Can anyone please explain me that how to fill the gaps in SAP FICO implementation project
Thanks in advance
VasuHello,
Perhaps you might find some useful info here http://help.sap.com/saphelp_sm70ehp1_sp23/helpdata/en/36/f1a5e16cde4121acc69a91728b9082/frameset.htm
Regards,
Paul -
How to release the budget in SAP Funds Management
Hi
How to release the budget in SAP Funds Management. Please let me know the proceedure and the transaction code
TksHi,
The answer depends on if you are using Former Budgeting or BCS.
1) If you are using Former Budgeting:
a. You should use transaction FR51 to enter Release or FR55 to distribute it.
2) If you are using BCS:
a. Within FMBBC transaction you have the option to release the budget, use document type as REL (release).
b. You can activate the automatic release for each budget profile in Customizing of Funds Management Government. To do this, in IMG select Funds Management Government ® Budgeting and Availability Control (Former Budgeting) ® Budget Profiles (Former Budgeting) ® Set Up Budget Profiles.
With the automatic release, the corresponding background releases for expenditures FM account assignments with budget transfers are also posted. Take note that the maximum amount that this automated release can transfer from the sender is the amount that has already been released.
If you do not activate the automated release, the maximum amount that can be transferred from the sender is that which has not yet been released.
c. You can use the mass transaction for release, which is FMMPRELE.
I hope that this answer your inquiry.
Best Regards,
Vanessa Barth.
Maybe you are looking for
-
How to change web-app display name within EAR file?
Currently we are deploying an EAR file (which contains a web-app and an EJB) per BEA recommendations. The web-app shows up on the admin console with '/' as the name. Is there anyway to change this to the name I want? thx, Matt
-
Need help with getting variable from static
Hello, What I am building is an application that prompts for username/password before it shows the main screen. Once they have successfully logged in, I need to assign the username that they used, in order to use it for a button event if the make any
-
Hi, While connecting to the OWB design repository from OWB client the following errors are occured. This happens intermittently. Pls suggest how this can be rectified. we are using OWB 10g (10.1) and oracle 10g database. AP10420:Error Message: Listen
-
FAQ: Will Photoshop Elements work with my camera, or Why won't my raw files open?
What is a raw file? A raw file is the unprocessed light data that was captured by your camera sensor. The only settings on your camera that apply to this file are aperture, shutter speed, and ISO. This means that any settings you may have applied t
-
Uniqueness for xml element is not validated with the xsd:unique
Hi I am using <xsd:unique> to specify uniqueness for certain elements in the schema. But when i create the xml for the schema,it allows me to create elements with duplicate values for which the uniqueness is defined and also it is allowed to parse th