2009 Feb 06 5:28 PM
Hi Abapers,
I have found out one BADI suits my requirement.
ME_PROCESS_PO_CUST
In that i need to use one method,
PROCESS_ITEM
which would do a check on the purchase requisition field of the line item, which i need to make mandatory for a given plant and material combination.
I went to SE19 created a new implementation for this badi by name zabc.
here i see interface name PORCESS_ITEM.
i do not know what to do.
when ever i doble click on this interface process_item, it is taking for ever, the control is never coming back.
can some one let me know what should i do, if possible can some one give me sample code what to put in here.
2009 Feb 07 9:39 AM
Hey Vinay,
Goto Transaction code SE18 and give your BADI Name -> Select Enhancement Implementation or Implementation in the top -> Display -> Here you will get the list of Implementation for that particular BADI. Select the implementation name what you have created and hit ok button. It will take you to the one screen in whih you can get the Interface tab.
Doudle click on your method name and write your own code.
+Note :+ To Validate in the item level write your code in method PROCESS_ITEM.
If you want to see the same error or warning message for the same validation. You write the same coding in the Method CHECK. If you write the coding in CHECK method it will show you in message screen how you will get for the standard error. It will not allow you post until unless correct the value.
Sample Coding :
ls_hdr = im_header->get_data( ).
if ( sy-tcode = 'ME21N' or sy-tcode = 'ME22N' or sy-tcode = 'ME23N' ) .
if ls_hdr-zterm = 'ABC'.
message 'Payment Terms - ABC can not be used in PO' type 'E'.
endif.
endif.Regards,
Saravanan M
Hi Abapers,
I have found out one BADI suits my requirement.
ME_PROCESS_PO_CUST
In that i need to use one method,
PROCESS_ITEM
which would do a check on the purchase requisition field of the line item, which i need to make mandatory for a given plant and material combination.
I went to SE19 created a new implementation for this badi by name zabc.
here i see interface name PORCESS_ITEM.
i do not know what to do.
when ever i doble click on this interface process_item, it is taking for ever, the control is never coming back.
can some one let me know what should i do, if possible can some one give me sample code what to put in here.
2009 Feb 07 9:39 AM
Hey Vinay,
Goto Transaction code SE18 and give your BADI Name -> Select Enhancement Implementation or Implementation in the top -> Display -> Here you will get the list of Implementation for that particular BADI. Select the implementation name what you have created and hit ok button. It will take you to the one screen in whih you can get the Interface tab.
Doudle click on your method name and write your own code.
+Note :+ To Validate in the item level write your code in method PROCESS_ITEM.
If you want to see the same error or warning message for the same validation. You write the same coding in the Method CHECK. If you write the coding in CHECK method it will show you in message screen how you will get for the standard error. It will not allow you post until unless correct the value.
Sample Coding :
ls_hdr = im_header->get_data( ).
if ( sy-tcode = 'ME21N' or sy-tcode = 'ME22N' or sy-tcode = 'ME23N' ) .
if ls_hdr-zterm = 'ABC'.
message 'Payment Terms - ABC can not be used in PO' type 'E'.
endif.
endif.Regards,
Saravanan M
2009 Feb 09 5:07 AM
Hi Vinay,
PROCESS_ITEM is a method of the BADI.
After creating an implementation of the BADI using TCODE SE18/SE19, just double click on the BADI method PROCESS_ITEM. This will take you to the editor for method PROCESS_ITEM. You can write your code here.
Then save and activate.
Hope this helps.
Regards,
Abhisek.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |