I have created my Z program for production order similar to as COR6N .
System is being working as being required and goods movement are also taking place.
I have used function module : bapi_procordconf_create_tt.
But the problem I am facing is that the goods movement indicator (WBKNZ) of goods movement of type(BWART) '261' i.e. for goods issue is being set as '2' which is for unplanned goods issue , whereas I want that it should be set as '1' Planned goods issue.