05-11-2008 12:53 PM
can anyone share code for project creation using bapi_projectdef_create...
it's very urgent...
05-12-2008 5:32 AM
Hi
This is the Structure you have to populate and have to pass to the BAPI you mentioned..
PROJECT_DEFINITION_STRU like BAPI_PROJECT_DEFINITION.
Check the field in the structure BAPI_PROJECT_DEFINITION
In the se11-datatype give the BAPI_PROJECT_DEFINITION.
or
Se37 give the BAPI name , in the IMPORT u see the structure name BAPI_PROJECT_DEFINITION , double click u can see the field of the structure...
Let me say the steps :
1) populate the internal table from the flat file.
2) loop the internal table and populate the structure
created with type BAPI_PROJECT_DEFINITION.
3) call the BAPI function assign the value to it.
4) create a return table to maintain the return message..with the structure BAPIRETURN1.
5) after the Endloop process the RETURN message and check for succes ful records and errorneous one..
check this sample program for MM01.
http://www.saptechies.com/mm01-upload-using-bapi-2/
Reward Point if useful...