2009 Apr 04 8:19 AM
Hi,
Can you provide me the details on how to use K_ORDER_SRULE_ADD especially criteria parameter? If possible, attached wit sample code? Thanks.
Best Regards,
Chee Boon
Hi,
Can you provide me the details on how to use K_ORDER_SRULE_ADD especially criteria parameter? If possible, attached wit sample code? Thanks.
Best Regards,
Chee Boon
2009 Apr 04 8:31 AM
Hi,
Try for a Where used List for this FM and see how a SAP Standard Prog using this or any Zprog might also be using this.
Try this also:
DATA: it_rules TYPE srules_ext OCCURS 0.
CALL FUNCTION 'K_SRULE_CREATE'
EXPORTING
i_objnr = caufvd_imp-objnr
EXCEPTIONS
rule_already_exists = 1
OTHERS = 2.
srules-settl_type = 'FUL'.
srules-percentage = 100.
srules-amount = 0.
srules-costcenter = caufvd_imp-kostl.
APPEND srules.
CALL FUNCTION 'K_ORDER_SRULE_ADD'
EXPORTING
object_no = caufvd_imp-objnr
TABLES
srules = srules
EXCEPTIONS
wrong_input = 1
error_occurred = 2
object_not_found = 3
activity_not_allowed = 4
OTHERS = 5.
IF sy-subrc = 0.
COMMIT WORK AND WAIT.
ENDIF.
2009 Apr 04 8:39 AM
Hi,
I did try such coding but it returned me a runtime error, mentioned criteria parameter is missing. Therefore, do you have recommendation what should i put for criteria parameter?
Besides that, can you tell what data type does caufvd_imp belong to?
Thanks.
Best Regards,
Chee Boon
Edited by: chee boon cheang on Apr 4, 2009 9:40 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |