We are implementing SRM 4.0. I am creating a PO from bid by changing the transaction type for purchase order to ECPO in SRM. The document type of the backend PO should be the smae as the one which is entered in the field 'Transaction type for purchase order'. Is there any way to access the field 'Transaction type for purchase order' in the badi 'BBP_CREATE_PO_BACK' so that i can change the document type of the backend PO to the one entered in the transaction type for purchase order.
Not sure if I understand your requirement correctly... but anyway, here it goes:
You can define the document type of the backend PO to be created (e.g. NB) via PPOMA_BBP. Somewhere in your org.structure you can set attribute BSA (e.g. DISCLNT200\NB).
Make sure that in the backend system this document type really exists and has an external number range assigned to it that corresponds to the internal number range of transaction type ECPO in your SRM system.