创建 CONVERSION_EXIT

本文档介绍了如何在ABAP中创建一个名为CONVERSION_EXIT_ZAAA的转换退出,其功能是在输入时移除'AC',并在输出时添加'AC'。此转换退出可以作为'ZAAA'在程序、屏幕及ALV中使用,提供了输入输出的示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

进入SE37.

写函数名称。 CONVERSION_EXIT_ZAAA_INPUT  



INPUT:



OUTPUT:



代码:



功能是传进去的时候,把AC去掉。



再生成CONVERSION_EXIT_ZAAA_OUTPUT



INPUT和OUTPUT和上面一样。

代码如下:


功能是输出的时候加 'AC'



然后这个CONVERSION_EXIT 可以在程序中以  ZAAA 的名称使用。 

可以在屏幕使用,也可以在ALV使用。


1.在程序中使用。

TEXT '1000'.


CALL FUNCTION 'CONVERSION_EXIT_ZAAA_OUTPUT'
  EXPORTING
    INPUT  TEXT
  IMPORTING
    OUTPUT TEXT.

WRITE TEXT.


输出结果是:AC1000


2.在屏幕中使用:



3.在ALV上使用:

GS_FIELDCAT-CONVEXIT   = ‘ZAAA'.



compiling list.c... ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(627): warning: implicit conversion from 'unsigned long' to 'TickType_t' (aka 'unsigned short') changes value from 33554432 to 0 [-Wconstant-conversion] 627 | vTaskRemoveFromUnorderedEventList( pxTasksWaitingForBits->xListEnd.pxNext, eventUNBLOCKED_DUE_TO_BIT_SET ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(58): note: expanded from macro 'eventUNBLOCKED_DUE_TO_BIT_SET' 58 | #define eventUNBLOCKED_DUE_TO_BIT_SET 0x02000000UL | ^~~~~~~~~~~~ 1 warning generated. compiling event_groups.c... compiling stm32f4xx_hal_uart.c... compiling timers.c... ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(569): error: call to undeclared function 'traceISR_ENTER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 569 | traceISR_ENTER(); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(574): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 574 | traceISR_EXIT_TO_SCHEDULER(); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(582): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 582 | traceISR_EXIT(); | ^ 3 errors generated. compiling port.c... compiling stream_buffer.c... compiling am_fm.c... ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(746): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 746 | portYIELD_FROM_ISR (yield); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(106): note: expanded from macro 'portEND_SWITCHING_ISR' 106 | traceISR_EXIT_TO_SCHEDULER(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(746): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(111): note: expanded from macro 'portEND_SWITCHING_ISR' 111 | traceISR_EXIT(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1170): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1170 | portYIELD_FROM_ISR (yield); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(106): note: expanded from macro 'portEND_SWITCHING_ISR' 106 | traceISR_EXIT_TO_SCHEDULER(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1170): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(111): note: expanded from macro 'portEND_SWITCHING_ISR' 111 | traceISR_EXIT(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1604): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1604 | portYIELD_FROM_ISR (yield); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(106): note: expanded from macro 'portEND_SWITCHING_ISR' 106 | traceISR_EXIT_TO_SCHEDULER(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1604): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(111): note: expanded from macro 'portEND_SWITCHING_ISR' 111 | traceISR_EXIT(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1637): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1637 | portYIELD_FROM_ISR (yield); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(106): note: expanded from macro 'portEND_SWITCHING_ISR' 106 | traceISR_EXIT_TO_SCHEDULER(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1637): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(111): note: expanded from macro 'portEND_SWITCHING_ISR' 111 | traceISR_EXIT(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1769): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1769 | portYIELD_FROM_ISR (yield); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(106): note: expanded from macro 'portEND_SWITCHING_ISR' 106 | traceISR_EXIT_TO_SCHEDULER(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1769): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(111): note: expanded from macro 'portEND_SWITCHING_ISR' 111 | traceISR_EXIT(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1810): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1810 | portYIELD_FROM_ISR (yield); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(106): note: expanded from macro 'portEND_SWITCHING_ISR' 106 | traceISR_EXIT_TO_SCHEDULER(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1810): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(111): note: expanded from macro 'portEND_SWITCHING_ISR' 111 | traceISR_EXIT(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(2181): error: call to undeclared function 'traceISR_EXIT_TO_SCHEDULER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2181 | portYIELD_FROM_ISR (yield); | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(106): note: expanded from macro 'portEND_SWITCHING_ISR' 106 | traceISR_EXIT_TO_SCHEDULER(); \ | ^ ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(2181): error: call to undeclared function 'traceISR_EXIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(114): note: expanded from macro 'portYIELD_FROM_ISR' 114 | #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) | ^ ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(111): note: expanded from macro 'portEND_SWITCHING_ISR' 111 | traceISR_EXIT(); \ | ^ 这是现在出现的错误,可能是什么原因
最新发布
07-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值