11-14-2007 4:19 PM
11-14-2007 4:21 PM
11-14-2007 4:21 PM
11-14-2007 4:27 PM
Hi Rob ,
Thanks for response, But how to make the fields are mandatory
in bapi import parameters if the fields data types r dec and values r 00.00 in
default.
Please answer.
Thanks,
SB.
11-14-2007 4:29 PM
11-14-2007 4:32 PM
Rob,
Its custom BAPI, Im using structure for import paramters with all 5 fields.
SB
11-14-2007 4:41 PM
So it's a little different than you originally said. A structure with five fields isn't the same as five parameters. You can check the individual fields using just about any of the ideas already given.
Rob
11-14-2007 4:22 PM
hi,
IF para1 IS INITIAL OR
para2 IS INITIAL OR
para3 IS INITIAL OR
para4 IS INITIAL OR
para5 IS INITIAL.
error message
ELSE.
bapi
ENDIF.
hope this helps
ec
11-14-2007 4:25 PM
Hi,
Please try this.
IF P_NAME IS INITIAL AND
P_NUMBER IS INITIAL AND
P_ID IS INITIAL AND
P_AGE IS INITIAL AND
P_DESIGNR IS INITIAL.
MESSAGE E899(BD) WITH 'Enter all values'.
ELSE.
...
ENDIF.
Regards,
Ferry Lianto
11-14-2007 4:28 PM
Actually in BAPI, you need to fill out the RETURN table for any kind of messages you want.
IF P_NAME IS INITIAL.
perform fill_return_Tab with P_name is initial.
endif.
if P_NUMBER IS INITIAL.
perform fill_return_Tab with P_NUMBER is initial.
endif.
Do like this for all fields.
Regards,
Naimesh Patel
11-14-2007 4:34 PM
Syed,
In se37,in the import section, dont check the optional button.
Regards
Aneesh.
11-14-2007 4:46 PM
Thanks Aneesh,
But Its decimal datatype field so default value is 00.00 , so now its contain Null value. if u untick also no use.
SB.
11-14-2007 4:49 PM
Syed,
Then do one thing. Inside the BAPI raise an exception with an if statement.
Thanks
Aneesh.
11-14-2007 4:52 PM
And please do not remove the question after it is answered. Why do you do it anyway? It makes it useless for anyone trying to solve the same sort of problem.
Rob
11-15-2007 7:38 PM
Good Point Rob. Sure is ahrd to figure oput what is going on after the content of the Message is deleted to only contain BAPI and the title is IF. The Forum is a Good Learning Tool, and sad to see this person continually erase his original posts.
11-15-2007 7:53 PM