求助abap badi增强增强问题

abap 中相乘是不是有问题啊,急啊,求助了。_百度知道
abap 中相乘是不是有问题啊,急啊,求助了。
rate like tcurr-ukurs.netpr = netpr * rate??我修改了一原程序,其中有一个类似下面的一个乘法运算。data??: netpr like ekpo-netpr.data.netpr 出来的结果是正确结果的100000倍,这是怎么回事啊?
我有更好的答案
咚闶奖旧硎菦]有問題的,問題可能出現變數型態或其他的地方
查看原帖&&
采纳率:68%
为您推荐:
其他类似问题
abap的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。求助:ABAP里怎么操作 TXT文件_百度知道
求助:ABAP里怎么操作 TXT文件
请问一下:怎么在ABAP里操作 txt文件。我的意思不是导入TXT文件到某个表里,是指读取txt文件的某行信息,再对该行进行操作。
我有更好的答案
那也要把txt文件读入内表,然后进行操作,操作结束再写入txt文件。
为您推荐:
其他类似问题
abap的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。查看: 4827|回复: 3
求助!ABAP 中
slis_selfield 作用
论坛徽章:0
*---------------------------------------------------------------------*
* FORM USER_COMMAND *
*---------------------------------------------------------------------*
FORM user_command USING i_ucomm LIKE sy-ucomm
is_selfield TYPE slis_selfield. &#EC CALLED
CASE i_ucomm.
WHEN '&IC1'. & Pick
READ TABLE hd_itab INDEX is_selfield-tabindex.
IF sy-subrc EQ 0.
SET PARAMETER ID 'INF' FIELD hd_itab-infnr.
SET PARAMETER ID 'MAT' FIELD hd_itab-matnr.
SET PARAMETER ID 'LIF' FIELD hd_itab-lifnr.
SET PARAMETER ID 'EKO' FIELD hd_itab-ekorg.
======================================================
以上代码是用ALV写报表的例子程序中的一段,
对&&slis_selfield& &不了解,百度很久也没搜索到其作用的说明
还有&&CASE i_ucomm.
WHEN '&IC1'. & Pick
ABAP入门新人求助
论坛徽章:10
up同求slis_selfield
论坛徽章:0
回复 #1 ftsz0079 的帖子
CASE i_ucomm.
WHEN '&IC1'. & Pick& &&&--当功能码=&IC1的时候,
READ TABLE hd_itab INDEX is_selfield-tabindex.--读取内表中你鼠标或者选择行的数据
IF sy-subrc EQ 0.--如果存在此笔数据,则
SET PARAMETER ID 'INF' FIELD hd_itab-infnr.--设置参数INF的值为...,参数的使用范围是SAP memory级别的;
SET PARAMETER ID 'MAT' FIELD hd_itab-matnr.
SET PARAMETER ID 'LIF' FIELD hd_itab-lifnr.
SET PARAMETER ID 'EKO' FIELD hd_itab-ekorg.
以上,了解is_selfield每个字段的意义并不大,关键是你能读懂程序。只给初学者的建议,大侠就别来凑热闹了!
论坛徽章:10
搭车问一下ALV中的颜色
types: begin of slis_color,
& && && &col type i,
& && && &int type i,
& && && &inv type i,
& && & end of slis_color.
三个字段,col表示颜色,那int和inv分别是啥意思?
itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有    
 北京市公安局海淀分局网监中心备案编号:10 广播电视节目制作经营许可证:编号(京)字第1149号查看: 4772|回复: 12
求助: Field symbol has not yet been assigned
论坛徽章:0
ABAP菜鸟, 关于ALV输出同一个错误一直困扰着........如下是ST22远行结果
Short text
& & Field symbol has not yet been assigned.
What happened?
& & Error in the ABAP Application Program
& & The current ABAP program &SAPLSLVC& had to be terminated because it
& & come across a statement that unfortunately cannot be executed.
Error analysis
& & You attempted to access an unassigned field symbol
& & (data segment &-1&).
& & This error may occur if
& & - You address a typed field symbol before it has been set with
& && &ASSIGN
& & - You address a field symbol that pointed to the line of an
& && &internal table that was deleted
& & - You address a field symbol that was previously reset using
& && &UNASSIGN or that pointed to a local field that no
& && &longer exists
& & - You address a global function interface, although the
& && &respective function module is not active - that is, is
& && &not in the list of active calls. The list of active calls
& && &can be taken from this short dump.
--------------------------------------------------------------------------------------------
Information on where terminated
& & Termination occurred in the ABAP program &SAPLSLVC& - in &FILL_DATA_TABLE&.
& & The main program was &ZTEST_003 &.
& & In the source code you have the termination point in line 3273
& & of the (Include) program &LSLVCF36&.
Source Code Extract
Line&&SourceCde
3243& && && && && && && && && && & alv_style_align_center_top.
3244& && && &endif.
3246& && && &append ls_lvc_data to ct_lvc_data.
3247& && & endif.
3249 ************************************
3250 * Column per Fieldcat Entry
3251 ************************************
3252& && & loop at it_fcat_local assigning &ls_fcat&.
3253& && && &clear: ls_lvc_data-href_hndl,
3254& && && && && & ls_lvc_data-drdn_hndl,
3255& && && && && & ls_lvc_data-style,
3256& && && && && & ls_lvc_data-style2,
3257& && && && && & ls_lvc_data-style3,
3258& && && && && & ls_lvc_data-style4,
3259& && && && && & ls_lvc_data-maxlen.
3261& && && &clear: lt_color_lvc, lt_color_slis.
3263& && && &add 1 to ls_lvc_data-col_pos.
3265& && && &if not &ls_fcat&-indx_field is initial.
3266& && && &&&assign component &ls_fcat&-indx_field
3267& && && && && && && && && & of structure &ls_data& to &l_field_value&.
3268& && && &else.
3269& && && &&&assign component &ls_fcat&-fieldname
3270& && && && && && && && && & of structure &ls_data& to &l_field_value&.
3271& && && &endif.
&&&&&& && && &macro_cell_data_get
3274& && && &&&&ls_fcat&
3275& && && &&&&ls_data&
3276& && && &&&&l_field_value&
3277& && && &&&ls_lvc_data-value.
3279 *&&& new API
3280& && && &if ir_salv_adapter is bound.
3281& && && &&&clear ls_lvc_data-style.
3283 * color
3284& && && &&&if g_gui_type ne 1.
3285& && && && & if &ls_fcat&-key eq abap_true.
3286& && && && && &ls_lvc_data-style = alv_style_
3287& && && && & elseif l_style_color is initial
3288& && && && && && & and ( &ls_fcat&-emphasize
3289& && && && && && && && & &ls_fcat&-emphasize
3290& && && && && &if &ls_stin&-counter is initia
3291& && && && && &&&ls_lvc_data-style = alv_styl
3292& && && && && &else.
---------------------------------------------------------------------------------------------------------
顺便把测试的精简代码放上来:请大神帮忙看看原因。 谢谢!
REPORT ZR_SD004.
TYPE-POOLS: SLIS.
TABLES: vbak,
& && &&&vbap,
& && &&&likp,
& && &&&lips.
DATA: BEGIN OF lt_out OCCURS 0,
& && && & vkorg LIKE vbak-vkorg,& & &Sales organization
& && && & vtweg LIKE vbak-vtweg,& & &sales distribution channel
& && &END OF lt_out.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
& && &wa_fieldcat TYPE slis_fieldcat_alv,
& && &it_event TYPE slis_t_event,
& && &it_layout TYPE slis_layout_alv,
& && &g_f2code LIKE sy-ucomm VALUE ' &ETA '.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: s_vkorg FOR vbak-vkorg DEFAULT 'CN10' OBLIGATORY.& && Sales organization
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
& && &SELECT vbak~vkorg
& && && && & vbak~vtweg
& && &&&INTO CORRESPONDING FIELDS OF TABLE lt_out
& && && & FROM vbak
& && && & WHERE vbak~vkorg IN s_vkorg.
END-OF-SELECTION.
DEFINE initial_field.
&&wa_FIELDCAT-SELTEXT_L = &1.
&&wa_FIELDCAT-SELTEXT_M = &1.
&&wa_FIELDCAT-SELTEXT_S = &1.
&&wa_fieldcat-fieldname = &2.
&&APPEND wa_FIELDCAT TO it_FIELDCAT.
END-OF-DEFINITION.
initial_field 'SALES Organization'& & 'VKOGR'.
initial_field 'SALES Channel'& && && &'VTWEG'.
it_layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
& &i_callback_program = sy-repid
& &is_layout& && && & = it_layout
& &it_fieldcat& && &&&= it_fieldcat
& &i_default& && && & = 'X'
& &t_outtab& && && &&&= lt_out
EXCEPTIONS
& &program_error& && &= 1
& &OTHERS& && && && & = 2.
IF SY-SUBRC && 0.
认证徽章论坛徽章:59
字段不存在吧.
论坛徽章:0
shenzhen_sap 发表于
字段不存在吧.
大师, 能具体一点吗? 哪个字段不存在啊?
论坛徽章:4
试了你的程序,原封不动copy过来,能执行啊。
论坛徽章:2
Field Symbol使用前需要Assign,出现dump是因为这里有还没assign的fs,你结合程序检查下吧。
论坛徽章:4
raffinkira 发表于
Field Symbol使用前需要Assign,出现dump是因为这里有还没assign的fs,你结合程序检查下吧。
field symbol的assign是SAP的运行时环境在后台做的,不是楼主的这个程序中需要这个。你这是把人往沟里带的节奏。
这个程序我原封不动copy过来,可以执行。
论坛徽章:2
本帖最后由 kemingshi 于
13:22 编辑
initial_field 'SALES Organization'& & 'VKOGR'.
initial_field 'SALES Channel'& && && &'VTWEG'.
引号里面的都用大写字母,我以前越到过alv报错。是字段用了小写字母
论坛徽章:0
xiehuailian 发表于
field symbol的assign是SAP的运行时环境在后台做的,不是楼主的这个程序中需要这个。你这是把人往沟里带的 ...
还真不是, 我检查了N遍, 删掉了其它可有可无代码,留下了这些,每次试,每次都DUMP掉了..... 我也很郁闷是怎么回事
论坛徽章:0
kemingshi 发表于
initial_field 'SALES Organization'& & 'VKOGR'.
initial_field 'SALES Channel'& && && &'VTWEG'.
真的吗? 这个我去试试, 只是记得字段名一定要大字, 难到连描述也要大写!?
认证徽章论坛徽章:59
itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有    
 北京市公安局海淀分局网监中心备案编号:10 广播电视节目制作经营许可证:编号(京)字第1149号

我要回帖

更多关于 abap 隐式增强创建 的文章

 

随机推荐