Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

"I_RETURN" cannot be converted to a character-type field?

Hi

if not i_schedule_lines[] is initial.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

salesdocument = i_salesdocument

  • ORDER_HEADER_IN =

order_header_inx = i_order_header_inx

  • SIMULATION =

  • BEHAVE_WHEN_ERROR = ' '

  • INT_NUMBER_ASSIGNMENT = ' '

  • LOGIC_SWITCH =

TABLES

return = i_return

  • ORDER_ITEM_IN =

  • ORDER_ITEM_INX =

  • PARTNERS =

  • PARTNERCHANGES =

  • PARTNERADDRESSES =

  • ORDER_CFGS_REF =

  • ORDER_CFGS_INST =

  • ORDER_CFGS_PART_OF =

  • ORDER_CFGS_VALUE =

  • ORDER_CFGS_BLOB =

  • ORDER_CFGS_VK =

  • ORDER_CFGS_REFINST =

schedule_lines = i_schedule_lines

schedule_linesx = i_schedule_linesx

  • ORDER_TEXT =

  • ORDER_KEYS =

  • CONDITIONS_IN =

  • CONDITIONS_INX =

  • extensionin = it_extensionin

.

  • Commit work

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

  • IMPORTING

  • RETURN =

.

write: 20 i_salesdocument, ' changed'.

loop at i_return where TYPE = 'E'.

write: / i_return.

endloop.

endif.

endif. "of document

It's showing the error "I_RETURN" cannot be converted to a character-type field.

How to get rid of this error?

Tags:
Not what you were looking for? View more on this topic or Ask a question