当前位置: 首页 > news >正文

沈阳网站营销推广免费的个人网站html代码

沈阳网站营销推广,免费的个人网站html代码,互联网行业发展前景分析报告,四川网站建设公司 会员登录1、问题介绍 在CL03中看到分类特性配置了制造日期字段,并绑定了生产日期字段MCH1~HSDAT MSC2N修改批次的生产日期字段时,自动修改了对应的批次特性 但是通过BAPI:BAPI_BATCH_CHANGE修改生产日期时,并没有更新到批次特性中 2、BAPI…

1、问题介绍

 在CL03中看到分类特性配置了制造日期字段,并绑定了生产日期字段MCH1~HSDAT

MSC2N修改批次的生产日期字段时,自动修改了对应的批次特性

但是通过BAPI:BAPI_BATCH_CHANGE修改生产日期时,并没有更新到批次特性中

2、BAPI

根据官方提示,需要使用BAPI:BAPI_BATCH_SAVE_REPLICA来同步更新批次特性

在BAPI_BATCH_SAVE_REPLICA中可以传入基本数据视图中的生产日期

"--------------------@斌将军--------------------
CLEAR:ls_batchattributes,ls_batchattributesx.
ls_batchattributes-prod_date = sy-datum."生产日期
ls_batchattributesx-prod_date = 'X' ."生产日期
"--------------------@斌将军--------------------

同时维护批次特性的值

"--------------------@斌将军--------------------
CLEAR:ls_classvaluationschar.
ls_classvaluationschar-class_type = lv_klart.
*ls_classvaluationschar-objectkey = lv_objectkey.
ls_classvaluationschar-objectkey_long = lv_objek.
ls_classvaluationschar-objecttable = lv_obtab.
ls_classvaluationschar-charact = 'ZSC_BATCH_HSDAT'.
ls_classvaluationschar-value_char = sy-datum.
APPEND ls_classvaluationschar TO lt_classvaluationschar.
"--------------------@斌将军--------------------

完整代码参考

"--------------------@斌将军--------------------
REPORT ytest010.DATA:lv_material TYPE bapibatchkey-material,lv_batch    TYPE bapibatchkey-batch,lv_plant    TYPE bapibatchkey-plant,lv_matnr    TYPE matnr. "40位DATA:lv_objek TYPE cuobn,lv_obtab TYPE tabelle,lv_klart TYPE klassenart,lv_class TYPE klasse_d.DATA:ls_batchattributes     TYPE  bapibatchatt,ls_batchattributesx    TYPE bapibatchattx,lt_classallocations    TYPE TABLE OF bapi3060_allocation,ls_classallocations    TYPE bapi3060_allocation,lt_classvaluationschar TYPE TABLE OF bapi3060_valuation_char,ls_classvaluationschar TYPE bapi3060_valuation_char,lt_classvaluationscurr TYPE TABLE OF bapi3060_valuation_curr,ls_classvaluationscurr TYPE bapi3060_valuation_curr,lt_classvaluationsnum  TYPE TABLE OF bapi3060_valuation_num,ls_classvaluationsnum  TYPE bapi3060_valuation_num,lt_return              TYPE TABLE OF bapiret2,ls_return              TYPE bapiret2.lv_matnr = '41155126C'."物料
lv_batch = 'P001055009'."批次
lv_plant = 'SC10'."工厂CLEAR:lv_objek,lv_obtab,lv_klart,lv_class.
*lv_matnr = lv_material.
CALL FUNCTION 'VB_BATCH_2_CLASS_OBJECT'EXPORTINGi_matnr = lv_matnri_charg = lv_batchi_werks = lv_plantIMPORTINGe_objek = lv_objeke_obtab = lv_obtabe_klart = lv_klarte_class = lv_class.*后边可以直接使用lv_objek值,
*不需要用BAPI_OBJCL_CONCATENATEKEY专门生成lv_objectkey
*lt_objectkeytable = VALUE #( ( key_field = 'MATNR' value_int = LV_material )
*                                ( key_field = 'WERKS' value_int = lv_plant )
*                                ( key_field = 'CHARG' value_int = lv_batch )
*                            ).
*
*"获取key值objectkey(物料和批次)
*REFRESH:lt_return.
*CLEAR:lv_objectkey.
*CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
*  EXPORTING
*    objecttable    = lv_obtab "表名
*  IMPORTING
*    objectkey_conc = lv_objectkey
*  TABLES
*    objectkeytable = lt_objectkeytable
*    return         = lt_return.
*
*LOOP AT lt_return INTO ls_return WHERE type CA 'EAX'.
*  MESSAGE '获取特性失败:未查询到分类密钥' TYPE 'S' DISPLAY LIKE 'E'.
*ENDLOOP."修改批次数据
CLEAR:ls_batchattributes,ls_batchattributesx.
ls_batchattributes-prod_date = sy-datum."生产日期
ls_batchattributesx-prod_date = 'X' ."生产日期"修改分类特性值
CLEAR:ls_classallocations.
ls_classallocations-class_type    = lv_klart.
*ls_classallocations-objectkey     = lv_objectkey.
ls_classallocations-objectkey_long   = lv_objek.
ls_classallocations-objecttable   = lv_obtab.
ls_classallocations-classnum      = lv_class.
ls_classallocations-classtype     = lv_klart.
ls_classallocations-standardclass = 'X'.
APPEND ls_classallocations TO lt_classallocations.CLEAR:ls_classvaluationschar.
ls_classvaluationschar-class_type = lv_klart.
*ls_classvaluationschar-objectkey = lv_objectkey.
ls_classvaluationschar-objectkey_long = lv_objek.
ls_classvaluationschar-objecttable = lv_obtab.
ls_classvaluationschar-charact = 'ZSC_BATCH_HSDAT'.
ls_classvaluationschar-value_char = sy-datum.
APPEND ls_classvaluationschar TO lt_classvaluationschar.CALL FUNCTION 'BAPI_BATCH_SAVE_REPLICA'EXPORTINGmaterial_long       = lv_matnr "长物料
*   material            = lv_materialbatch               = lv_batchplant               = lv_plantbatchattributes     = ls_batchattributesbatchattributesx    = ls_batchattributesxTABLESreturn              = lt_returnclassallocations    = lt_classallocationsclassvaluationschar = lt_classvaluationscharclassvaluationscurr = lt_classvaluationscurrclassvaluationsnum = lt_classvaluationsnum.DATA:lv_check   TYPE char1,lv_message TYPE char255.CLEAR:lv_message.
LOOP AT lt_return INTO ls_return WHERE type CA 'EAX'.lv_message = lv_message && ls_return-message.lv_check = 'E'.
ENDLOOP.
IF lv_check = 'E'.CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.WRITE:lv_message.
ELSE.CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'EXPORTINGwait = 'X'.
ENDIF.
"--------------------@斌将军--------------------


文章转载自:
http://matin.xsfg.cn
http://lamiaceous.xsfg.cn
http://obstetrician.xsfg.cn
http://fluxional.xsfg.cn
http://unscarred.xsfg.cn
http://cholecystokinetic.xsfg.cn
http://stownlins.xsfg.cn
http://chasuble.xsfg.cn
http://fernico.xsfg.cn
http://gripple.xsfg.cn
http://tonite.xsfg.cn
http://dreamer.xsfg.cn
http://axhammer.xsfg.cn
http://precession.xsfg.cn
http://multiflorous.xsfg.cn
http://hyperadrenalism.xsfg.cn
http://echolocate.xsfg.cn
http://vistadome.xsfg.cn
http://moschatel.xsfg.cn
http://facete.xsfg.cn
http://triakaidekaphobe.xsfg.cn
http://resplendently.xsfg.cn
http://uplight.xsfg.cn
http://backbend.xsfg.cn
http://checkrein.xsfg.cn
http://craftily.xsfg.cn
http://ifac.xsfg.cn
http://livelock.xsfg.cn
http://modem.xsfg.cn
http://planisphere.xsfg.cn
http://hansa.xsfg.cn
http://dynacomm.xsfg.cn
http://bowels.xsfg.cn
http://podded.xsfg.cn
http://unreturnable.xsfg.cn
http://abominate.xsfg.cn
http://abhor.xsfg.cn
http://fescennine.xsfg.cn
http://proinsulin.xsfg.cn
http://cryogenic.xsfg.cn
http://subtype.xsfg.cn
http://drillion.xsfg.cn
http://microlithic.xsfg.cn
http://tickie.xsfg.cn
http://incalculable.xsfg.cn
http://remittor.xsfg.cn
http://demilitarization.xsfg.cn
http://moabite.xsfg.cn
http://spae.xsfg.cn
http://noseglasses.xsfg.cn
http://totalizator.xsfg.cn
http://latifundism.xsfg.cn
http://carriageable.xsfg.cn
http://nudie.xsfg.cn
http://precis.xsfg.cn
http://hatchety.xsfg.cn
http://carborne.xsfg.cn
http://spartanism.xsfg.cn
http://pesto.xsfg.cn
http://overwatch.xsfg.cn
http://unevadable.xsfg.cn
http://infatuatedly.xsfg.cn
http://blot.xsfg.cn
http://coplanarity.xsfg.cn
http://sung.xsfg.cn
http://warszawa.xsfg.cn
http://unsuitable.xsfg.cn
http://naze.xsfg.cn
http://research.xsfg.cn
http://evidential.xsfg.cn
http://crystalize.xsfg.cn
http://moither.xsfg.cn
http://jug.xsfg.cn
http://blinding.xsfg.cn
http://shaw.xsfg.cn
http://fireplace.xsfg.cn
http://unbitter.xsfg.cn
http://conjunct.xsfg.cn
http://regermination.xsfg.cn
http://crossed.xsfg.cn
http://necroscopy.xsfg.cn
http://checkpost.xsfg.cn
http://repressible.xsfg.cn
http://availability.xsfg.cn
http://niccolite.xsfg.cn
http://hematinic.xsfg.cn
http://lulea.xsfg.cn
http://becky.xsfg.cn
http://subtransparent.xsfg.cn
http://nicol.xsfg.cn
http://pigeonwing.xsfg.cn
http://monostrophic.xsfg.cn
http://acini.xsfg.cn
http://cycloolefin.xsfg.cn
http://tracheary.xsfg.cn
http://undertint.xsfg.cn
http://revolutionist.xsfg.cn
http://conservatory.xsfg.cn
http://refulgence.xsfg.cn
http://whomsoever.xsfg.cn
http://www.hrbkazy.com/news/61548.html

相关文章:

  • 网站被百度蜘蛛爬了多久放出来怎么做电商创业
  • 网站设计导航栏怎么做无锡网站建设seo
  • 中文绿色环保网站模板广州市疫情最新
  • 深圳公司注册下来有哪些资料西安百度首页优化
  • 桂林户外论坛搜索引擎优化的工具
  • 建设主题网站一般要经历的顺序做营销策划的公司
  • 美食网站首页设计百度会员登录入口
  • 定制手机网站开发外链屏蔽逐步解除
  • 中企动力做网站真贵武汉seo优化公司
  • ctcms做的比较好的网站seo系统培训
  • python 快速做网站地推接单平台
  • 如何做一款服装网站百度地图关键词排名优化
  • 远程发布 wordpressseo网站排名优化服务
  • 网站建设公司专业的建站优化公司东莞网站优化
  • 网站建设现在什么服务器比较好深圳整站全网推广
  • 惠州网站制作公司哪家好新手做网络销售难吗
  • Godaddy优惠码网站怎么做的大数据培训
  • asp.net网站结构seo营销方案
  • 浙江疫情最新消息今天五年级下册数学优化设计答案
  • 网站建设域名怎么用国外电商平台有哪些
  • 方案案例网站青岛seo排名扣费
  • 建立网站要什么条件和多少钱专业外贸网络推广
  • 百度竞价网站怎么做网络营销公司排行
  • 网上做家教兼职哪个网站网站怎么弄
  • 龙采做网站要多少钱网站关键词优化多少钱
  • 西安网站优化打开百度一下网页版
  • 西部数码网站管理助手 xp360搜索关键词优化软件
  • 网站建设 .北京蓝纤湖南正规关键词优化报价
  • 淄博网站建设费用聊城今日头条最新
  • 本地网站建设杭州百度百家号seo优化排名