on 09-03-2010 7:45 AM
I was going through a document which instructs on how to add a custom field at line item level in SRM 7.0.
I found this code :
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING
I_GUID = IV_DOC_GUID
I_WITH_ITEMDATA = 'X'
TABLES
E_ITEM = LT_ITEM
E_MESSAGES = LT_MESSAGES
E_STATUS = LT_STATUS. .
LOOP AT LT_STATUS INTO WA_STATUS.
IF WA_STATUS-STAT EQ 'I1015' AND WA_STATUS-INACT IS INITIAL.
LV_STATUS_APPROVE = 'X'.
ENDIF.
ENDLOOP.
I wanted to know what is 'I1015' and what is its significance .
please advise .
Ambar
HI
This speaks about the status of the Cart. This means that the Status of the Cart is AWAITING APPROVAL...I dont know which document you have gone through but procedure for adding a Custom Field in SRM 7.0 is:
1. Create a Custom field in the Database in SRM. Preferrably add the field in an include and extend thta include to the table in SE11.
2. Go to Portal Login of SRM and right click the part of the screen where you want to add the custom field. Click on More Field Help. The popup will give you the name of WebDynpro Applicaiton which controls that area.
3. Login to SRM via GUI and display the webdynpro application using SE80. Enhance the Webdynpro application.
4. Add the custom field to the Context of the WebDynpro Application View. You will be selecting the field from the database table while adding the custom field to the context
5. Add the field at the specified place in Layout Tab of the WebDynpro View,
6. Create a binding between the Layout Field and the Context
7. Activate the changes.... you will see the field in Portal login of SRM....
For more details , refer to the Webdynpro help of the application...
Regards
Virender Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for I1015 .
So is there a place where I can get a list of all the statuses ?
Thanks for the procedure .
The document which I went through did not talk about the dynpro part .
What if I want the custom field to be a drop down and take values from a cuctom table ?
Is that supposed to be handled vis web dynpro ?
Regards ,
Ambar .
Ambar
The drop down will be driven by the type of field you create in SRM System...You dont need to do anything in Webdynpro... except the type of the field when you put the field in the layout. So instead of putting that as a text field you have to select the respective type of the field as per your requirement......
Regards
Virender Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.