‎2012 Sep 29 6:03 AM
Hi all,
I have a requirement in BDC like I need to pass value for non-editable field from flat file.
But I am getting error like XXXXX is not an input field.
Is there any way to insert value for non-editable field through BDC?
Regards,
Ravivarma
‎2012 Sep 29 6:34 AM
If the field is non editable, how can you give a value to it?
‎2012 Sep 29 6:41 AM
But I Should give the value for that field.
Can we handle through program?
‎2012 Sep 29 6:46 AM
You would see the same process in BDC what you see online in the transaction. If you are able to input value in the transaction online then you would be able to do the same in BDC. See if you could enhance the screen field for this specific case by setting a flag during BDC call and see if that flag is set in the transaction. If the flag is set then enable the field. This would allow to make this field enable only during your BDC process.
-Kriss
‎2012 Sep 29 6:55 AM
If I give a check box then user can also edit that field.
But we should not give that option to the user.
‎2012 Sep 29 7:17 AM
If you provide the check box and pass the fixed value from BDC program with mode N
user will not able to edit that.
‎2012 Sep 29 7:20 AM
But later when he is doing that transaction manually,that time he can check that check box,
and then he can edit the field.
‎2012 Sep 29 7:31 AM
Well in that case do not give authorization to the user of that tcode.., and if you still want to give authorization, then probably its not possible both ways.
‎2012 Sep 29 8:30 AM
Want I meant was this flag field is only available as a global variable in the program but not part of the screen fields. For example how you export and import data, similarly you will export this flag from your BDC, only when the transaction have a value in this field after IMPORT , transaction will have this field input enabled.
-Kriss.
‎2012 Sep 29 9:07 AM
Thank you for our suggestion.
But if u don't have field on the screen how can you pass value to program through BDC.
But anyway I found other solution like updating that field using database update .
Regards,
Ravivarma
‎2012 Sep 29 9:13 AM
Update using separate function is a definitely a better approach.
As your questions if you want to only use BDC, you could enhance the transaction to enable the field if the imported flag is 'X'. Flag will only be set and Exported from your BDC program.