当前位置:网站首页>SAP ABAP DUMP GETWA_ NOT_ Assigned pointer unassigned error
SAP ABAP DUMP GETWA_ NOT_ Assigned pointer unassigned error
2022-07-16 07:13:00 【Please enter the nickname inflated steamed bread】
SAP ABAP DUMP GETWA_NOT_ASSIGNED Pointer unallocated error
List of articles
Preface
Yesterday, the business side responded SAC The data of is not updated
The steamed bread is checked BW The merge layer in the processing chain executes incorrectly
The reason for checking is the conversion process DUMP 了
Field symbol has not been assigned yet. Pointer field is not assigned
This mistake is easy to understand , I have met many times before
But this time DUMP At first, the reason was really a little unexpected
I have been watching it for a long time Only then discovered the code loopholes written at that time
Problem description
Use LOOP loop result_package And assign it to the pointer <result_fields> This is a ABAP for HANA A common way of writing in
But it's just LOOP At the middle code of DUMP It fell off
It's hard to understand
LOOP AT result_package ASSIGNING <result_fields> .
* ...
IF <result_fields>-field IS INITIAL. " DUMP Field symbol has not been assigned yet.
" ...
ENDIF.
ENDLOOP.
Try to catch exceptions
At first, the cause of the problem was not found
So steamed bun thought that I should be able to catch this anomaly
The result was unexpected failure
Program DUMP still
LOOP AT result_package ASSIGNING <result_fields> .
* ...
TRY.
IF <result_fields>-field IS INITIAL. " DUMP Field symbol has not been assigned yet.
" ...
ENDIF.
CATCH cx_root INTO DATA(lcx_root).
ENDTRY.
ENDLOOP.
It turned out to be a strange piece of code
Failed to resolve by catching exceptions , Then you can only read the code carefully ……
Finally found a strange code
DELETE result_package. This line of code means that if some of the previous conditions are not met , Then I don't need this line of data , Just delete from the result .
You can delete , But it's not time to execute subsequent code ……
I must have fallen asleep
Or hungry
LOOP AT result_package ASSIGNING <result_fields> .
* ...
IF xxx.
IF.
ELSEIF. " These are the groundwork
ELSE.
DELETE result_package. " That's the problem
ENDIF.
ENDIF.
IF <result_fields>-field IS INITIAL. " DUMP Field symbol has not been assigned yet.
" ...
ENDIF.
ENDLOOP.
Problem solving
It's simple , Add CONTINUE Just fine
LOOP AT result_package ASSIGNING <result_fields> .
* ...
IF xxx.
IF.
ELSEIF. " These are the groundwork
ELSE.
DELETE result_package. " That's the problem
CONTINUE. " Great
ENDIF.
ENDIF.
IF <result_fields>-field IS INITIAL. " DUMP Field symbol has not been assigned yet.
" ...
ENDIF.
ENDLOOP.
边栏推荐
猜你喜欢

多图详解阻塞队列——SynchronousQueue

Unity基础到入门-导航系统(Navigation)

关于线程安全

Mysql - page de données

Hardware course design: novel reading of multi-function player based on stm32

SAP ABAP Selection Screen 选择屏幕看这一篇就够了(持续更新)

Go秒杀系统3--项目结构搭建,商品模型开发。

硬件课程设计:基于STM32的多功能播放器之图片浏览

LeetCode精讲——676. 实现一个魔法字典(难度:中等)

unity3d-MonoBehaviour基类
随机推荐
SAP ABAP DUMP GETWA_NOT_ASSIGNED 指针未分配错误
Unity2d mobile details official case exercise
Airplane games
Hardware course design: picture browsing of multi-function player based on stm32
SAP Logon 无法正常启动
二分查找法
Hardware course design: system design of multi-function player based on stm32
week3
Implementation of binarysearchtree (BST) class template for binary search tree
动态数组Vector类模板的实现
单向链表实现队列和栈
五子棋(一)
HeadFirst 状态模式 源码
LeetCode精講——676. 實現一個魔法字典(難度:中等)
Leatcode Speech - 676. Implémenter un dictionnaire magique (difficulté: moyenne)
JVM原理与实战
AMD RDNA 3 Navi 31旗舰GPU据称采用3D V-Cache封装以及最高384MB缓存
关于OSI七层模型
飞机小游戏
线程机制与事件机制