can anyone share some views on this.
Yes you can have a bdc for PB40.
Using transaction SHDB you can do recording for PB40 action enter all the fields you want to enter, then save the recording , ttransfer your recording to a program
& replace all entered constants by your work area & field, have the recordin inside the loop of your internal table.
Reward points if helpful