cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

crm_order_read

sap_beginner98
Explorer
545

Hi all,

After fetching importing parmeters, i want to combine all 6 internal table into required output internal table.

but i couldn't able to combine all those data's into one table.

CALL FUNCTION 'CRM_ORDER_READ'
   EXPORTING
     IT_HEADER_GUID                    = LT_HEADER_GUID
*     IT_REQUESTED_OBJECTS              = LT_REQ_OBJECTS
   IMPORTING
     ET_ORDERADM_H                     = LT_ORDERADM_H
     ET_ORDERADM_I                     = LT_ORDERADM_I
     ET_ORGMAN                         = LT_ORGMAN
     ET_PARTNER                        = LT_PARTNER
     ET_STATUS                         = LT_STATUS
     ET_DOC_FLOW                       = LT_DOC_FLOW
   EXCEPTIONS
     DOCUMENT_NOT_FOUND                = 1
     ERROR_OCCURRED                    = 2
     DOCUMENT_LOCKED                   = 3
     NO_CHANGE_AUTHORITY               = 4
     NO_DISPLAY_AUTHORITY              = 5
     NO_CHANGE_ALLOWED                 = 6
     OTHERS                            = 7.

Accepted Solutions (1)

Accepted Solutions (1)

michael_piesche
Active Contributor
0 Likes

I am not quite sure why you would want to combine/join all this data into one table, but here is who you combine them based on the output of CRM_ORDER_READ for the given Export Parameters:

  1. One-Order Head and One-Order Positions:
    LT_ORDERADM_H-GUID = LT_ORDERADM_I-HEADER
  2. One-Order Head/Position and Organisation-Data
    LT_ORDERADM_H-GUID = LT_ORGMAN-REF_GUID
    LT_ORDERADM_I-GUID = LT_ORGMAN-REF_GUID
  3. One-Order Head/Position and Partner-Data
    LT_ORDERADM_H-GUID = LT_PARTNER-REF_GUID
    LT_ORDERADM_I-GUID = LT_PARTNER-REF_GUID
  4. One-Order Head/Position and Status-Data
    LT_ORDERADM_H-GUID = LT_STATUS-GUID
    LT_ORDERADM_I-GUID = LT_STATUS-GUID
  5. One-Order Head/Position and Document-Flow-Data
    LT_ORDERADM_H-GUID = LT_DOC_FLOW-REF_GUID
    LT_ORDERADM_I-GUID = LT_DOC_FLOW-REF_GUID
michael_piesche
Active Contributor
0 Likes

sap_beginner98, let me know if the above answer helped you out or whether you require further help.

Answers (0)