‎2007 May 10 9:50 PM
Hi all,
I am writing a BDC for transaction me31k. There are nearly 14 fields in the first screen. I am passing values to only 5 of them in my BDC program. The problem I am facing is that the remaining fields get some default values which I am not passing.
I am not populating space for these fields in my BDC program to avoid the default values. Is this the right way of doing this ? please let me know if there is any other way.
Thanks,
MGS.
‎2007 May 10 10:05 PM
If you pass spaces, it should work properly.
The other way might be to clear the parameter IDs, but this might not work if someone else processes the session.
Rob
‎2007 May 10 10:05 PM
If you pass spaces, it should work properly.
The other way might be to clear the parameter IDs, but this might not work if someone else processes the session.
Rob
‎2007 May 10 10:21 PM
Thanks Rob.
So for the first screen I pass the values if I have and spaces for the remaining. Do I have to do the samething for the next screens too or only the first screen gets default values.
Thanks,
MGS.
‎2007 May 10 10:22 PM
if the transaction is a change tcode then the values already existing will be there, if you don't want them the only way is to blank them out in your program. Or else if you are creating and the default values are not set from the functional perspective then check your program once. Or else it should work find with the fields you are populating as long as the other fields are not mandatory.
Run the SHDB and pass only the values you want to and leave the rest. you will know how it behaves and code accordingly.
Hope it helps.
‎2007 May 10 10:25 PM
It's always safest to pass the values you want to the screen, so yes, if unwanted defaults are being inserted, you should pass a space.
rob
‎2007 May 11 3:18 AM
hi,
Ur problem is with the spac.....if proper space is not given then u might get such problems n just check out if there r any default values given for the fields tht u dont want so tht u can clear them....try it out...
if useful reward with points,
with regards,
madhuri.