Skip to Content
-1

How to define null or empty value in BAPI_PERSDATA_CHANGE

Feb 24, 2017 at 10:18 AM

54

avatar image
The following java code return an error message saying "Make an entry in all required fields"

How can i set empty values for mandatory fields ? 
...

SAPConnectionImpl con = new SAPConnectionImpl();
JCoDestination dest = con.createUserConnection(userId, password, null);
JCoRepository repo = dest.getRepository();
JCoFunction changeFunc = repo.getFunction("BAPI_PERSDATA_CHANGE");
				
JCoParameterList changeParams = changeFunc.getImportParameterList();
changeParams.setValue("EMPLOYEENUMBER",	"00000901");
changeParams.setValue("SUBTYPE", "");
changeParams.setValue("OBJECTID", "");
changeParams.setValue("LOCKINDICATOR", "");
changeParams.setValue("VALIDITYBEGIN", "19610215");
changeParams.setValue("VALIDITYEND", "99991231");
changeParams.setValue("RECORDNUMBER", "000");
changeParams.setValue("LASTNAME", "TEST");
changeFunc.execute(dest);
...
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Hans Hubert Feb 24, 2017 at 01:28 PM
0

I finally found the solution. Here it's:

http://www.sapfans.com/forums/viewtopic.php?f=13&t=121874

Share
10 |10000 characters needed characters left characters exceeded