Hi ,
Can you please suggest me the Best approach to send HU Creation ( Currently it is using FM LXYRD_HU_CREATE in SAP System ) and now I need to send IDOC to another SAP system when inbound DESADV idoc is creating.
Now I need to send this thro Standard IDOC or Custom IDOC to port instead of creation of HU in sending system.
for the FM I am passing the fields
IV_LYARD,
IS_HU_HEADER-VELTP = 'B'.
IS_HU_HEADER-VHILM = 'test'
IS_HU_HEADER-YLCCL = '01'.
IS_HU_HEADER-YLOCT = LOCATION.
IS_HU_HEADER-OWNER = OWNER.
- IS_HU_HEADERSIGNI = TRAILER_ID.
IS_HU_HEADER-NAMEF = DELNOTE.
IF PIV_BOLNR IS NOT INITIAL.
IS_HU_HEADER-LTEXT = PIV_BOLNR.
ENDIF.
IS_HU_HEADER-STATS = '03'.
** Vendor
IS_HU_HEADER-FWAGN = VENDOR.
IS_HU_HEADER-NAMBE = LV_VENDOR_DESC.
**OWNER - Vehicle Owner
IS_HU_HEADER-VHART = 'Z300'.
and calling FM
CALL FUNCTION 'LXYRD_HU_CREATE'
EXPORTING
IV_LYARD = 'XXX'
IF_CREATE_HU_SCR = L_FALSE "lhmgc_false
IS_HU_HEADER = LS_HU
IMPORTING
ES_HU_HEADER = LS_RET_HU.
* EXCEPTIONS
* SERVICE_CANCEL = 1
* SERVICE_FAILURE = 2
* OTHERS = 3
.