点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
专家们,
我正在尝试在同一软件包中使用两个PROMPT(SELECTINPUT),但这返回了一般错误-参见图片。
当我仅使用一个SELECTINPUT时,一切正常,但无法同时使用两者。 下面是我正在编写的脚本:
PROMPT(SELECTINPUT ,,," anyText","%TIME_DIM%" ,, 1)
PROMPT(SELECTINPUT ,,," anyText","%CATEGORY_DIM%" ,, 1)
INFO(%EQU%,=)
INFO(%TAB%,;)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)任务(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)任务(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)任务 ,%SELECTION%)TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,ATINGIR_META.LGF)
我将不胜感激!
Tks
capture.jpg (33.2 kB)
即使您更正了原始问题(通常是错误的主意-失去了答案逻辑),我也只能重复:
PROMPT(SELECTINPUT ,,," anyText","%TIME_DIM%" ,, 1)
PROMPT(SELECTINPUT ,,," anyText","%CATEGORY_DIM%" ,, 1)
两者都会覆盖相同的默认变量:%SELECTION%
您想实现什么?
再次,请阅读帮助:
"语法如下:PROMPT(SELECTINPUT,[变量] 、、 [标签],[尺寸],[默认成员])"
表示默认值
[variable]返回变量%SELECTION%的名称
P.S。 我可以重写您的声明:
PROMPT(SELECTINPUT,%SELECTION%,," anyText","%TIME_DIM%" ,, 1)
PROMPT(SELECTINPUT,%SELECTION%,," anyText","%CATEGORY_DIM%" ,, 1)
""在第一个中,仅要选择Category_DIM,第二个中将要选择TIME_DIM,ENTITY_DIM,MOREONE_DIM等。
对我来说,这个要求看起来非常简单,但是我在努力实现它。"
对不起,但仍然不清楚为什么您要在一个页面上选择某些内容而在另一页面上选择某些内容? 这样做有什么好处?
嗨,布鲁诺,请关闭您的上一个问题,接受正确的答案...
关于这个问题:
放2个SELECTINPUT 、、、 ???
真是个奇怪的主意两者都会覆盖相同的默认变量:%SELECTION%
您想实现什么?
阅读帮助:
https://help.sap.com/查看器/ec68e48b18a44a49abb12b8ee8ae306f/10.0.29/zh-CN/f9c652116faf1014878bae8cb0e91070.html
PS 顺便说一句,也请阅读我关于COMBOBOX的博客:
https: //blogs.sap.com/2014/09/19/dm-promptcombobox-behavior-in-bpc-nw-10-and-75 /
我已经实现了 它这样做:
PROMPT(MESSAGE,ANY_MESSAGE," PROPERTY_01","","","","")
PROMPT(SELECT,%VAR1%,," ANY_TEXT"," DIMENSION" ,, 1)
PROMPT(SELECTINPUT ,,," ANY_TEXT","%TIME_DIM%,%CATEGORY_DIM%,%ENTITY_DIM%" ,, 1)
PROMPT(COMBOBOX,%VARIABLE2%," ANY_TEXT",0 ,, {" JAN"," FEV"," MAR"," ABR"," MAI"," JUN"," JUL"," AGO" ," SET"," OUT"," NOV"," DEZ"})
PROMPT(COMBOBOX,%VARIABLE3%," ANY_TEXT",0 ,, {" [AT_001]-OPTION1,[AT_002]-OPTION2,[AT_003]-OPTION3"})
PROMPT(TEXT,%VARIABLE4%,Valor,"%ANY_TEXT",)
PROMPT(COMBOBOX,%VARIABLE5%," ANY_TEXT"},)
INFO(%EQU%,=)INFO(%TAB%,;)任务(/CPMB/DEFAULT_FORMULAS_LOGIC,TAB,%TAB%)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,MEMBERSELECTION,SOURCE%EQU %% VAR1%)
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,REPLACEPARAM,VARIABLE2%EQU %% VARIABLE2 %% TAB%VARIABLE3%EQU %% VARIABLE3 %% TAB%VARIABLE4%EQU %% VARIABLE4 %% TAB%VARIABLE5%EQU %% VARI5%
任务(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,LOGIC_FILELGF)
因此,在脚本逻辑中,我能够使用以下变量:%TIME_SET%,%CATEGORY_SET%(第一屏)和$ SOURCE $(第二屏
屏幕)。
为您提供帮助
您好,如果要获取二维,则不需要两个SELECTINPUT,只需一个,您就可以使用它来获取二维,像这样。
>PROMPT(SELECTINPUT ,,,"%CATEGORY_DIM%,%TIME_DIM%")
致谢
一周热门 更多>