BP相关的相关日记条目。

2020-09-03 06:51发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


尊敬的专家,

我有以下情况,

我正在准备MIS报告,以支付Clint的所有费用。 我的报告基于日记帐分录,当我被选为日记帐分录时,所有供应商都被记入贷方,我们需要所有借方。

当特定的BP(供应商)涉及信贷时,我们需要所有借方费用。

案例1:BP(所有供应商)=>信用

费用=>借记

案例2:BP(特定供应商)=>信用

费用=>借记

在以上两种情况下,我们只需要针对不同情况下的借方条件,我将如何进行处理,将两种费用分开。 拜托我

SELECT year(dateadd(month,-3,T0.RefDate))为[Years],DATENAME(month,T0.RefDate)作为[Months],CAST(MONTH(T0.RefDate)AS VARCHAR(MAX)) AS [Monthnum],t1.ShortName作为"帐户代码",t1.transId,t0.RefDate,如果t2.AcctName在("娱乐-国内","娱乐-国际","娱乐-员工T&E","属性" 费率","专业费","法律费","审计费","会计费","咨询费","咨询费","咨询费-其他","捐赠-合同","礼品"- 合同","杂项费用-合同"," Pooja费用-合同","客户娱乐费","法律和专业费用-合同","佣金和经纪业务","费率税金","劳动福利基金" ,"法律和专业费用-合同","费率和税收","物业税-Ambattur办公室","罚金","专业费用","注册费","四舍五入","研讨会费用"," 经纪费用","关税和税费","专业税","业务促销" 费用","费用和执照和税费","法律费用","法律费用-合同","法律和专业费用","会员费"," Pooja费用","招标费","法院印章" FEES","杂项费用","财务费用","银行利息CC","已支付的银行费用","信用费用","坏账费用","银行费用-合同"),然后在t2时为" MISC费用" .AcctName("维护和修理","机械和设备维护","维修和更新","园艺","消耗品和备件","消耗品和备件-合同","消耗品和备件Telangana","消耗品" &备件","消耗品和备件AP","人工费用-合同","服务费用技术和顾问","测试费用A/C","人工费用-其他","服务费用技术和咨询-进口" ,"维修和保养","服务费-其他","维修和保养-机械"),然后在t2.AcctName("旅行和娱乐","票价","票价-员工T&E", "机票预订费","旅行费" s-航空预订","旅行费用-航空预订-合同","旅行费用-公共汽车预订","旅行费用-合同","旅行费用-火车预订","旅行费用-火车预订-合同",' 在t2.AcctName中("建筑物维护","教育和培训","管理","其他管理费用","审计费用","一般","计算机维护")中的t2.AcctName离开旅行优惠"),然后选择"旅行费用"。 ,"内部审计费用","办公室维护"),然后在t2时选择"办公室维护"。(tutils中的"实用程序","气体","烹饪气体","烹饪气体-杂物房")中的AcctName然后在t2时选择" MESS"。 在('雇主国民保险供款','雇员保险供款','保险(WC/GPA)','雇主国民保险供款','雇主责任保险','私人医疗保健费用','雇员保险供款', 然后是"雇主保险金","保险","物业保险","海洋保险","海外保险","保险","团体保险","建筑保险") 当t2.AcctName出现在"保险"中("水","员工奖金","购买安全项目-合同","员工福利-合同","超时费用","员工福利","激励"),然后是"职员" t2时为WELFARE'.AcctName(在"电话","邮资和快递合同","电话费-合同","互联网费用","电话费","邮资和快递"中),然后在t2时为" COMMUNICATUION"。 t2中的AcctName('物业租金','电费-续','租金-合同','电费','广告费用')然后是'ESTABLISHMENT'(t2).AcctName在('清洁和洗衣','有线电视 当在('住宿-国内','住宿-国际','住宿-员工')中输入t2.AcctName时,再选择'Guest HOUSE MAINTENANCE'(租金-合同),'Guest House Maintenance','清洁费用','Books&Journals') T&E","住宿费用-合同"),然后在t2.AcctName("旅行费用-其他","机动车费用","车辆租赁","车辆维修和服务","车辆燃料和 石油","车辆杂项支出" enses","设备-租赁费用","燃油费用-合同","本地运输-合同","车辆租赁费用","车辆燃料费用","车辆保险","车辆维护","本地运输" ),然后在t2.AcctName中("薪资和福利","薪资和工资-加班","裁员","董事薪金","董事酬金","薪金")中的t2.AcctName然后是" STAFF SALARY" 当t2.AcctName位于("运费","材料处理费","运输","运送费","运费和运输","入站货运和运输","出站货运和运输","货运费用" ),然后在("印刷和文具","印刷和文具-合同")中的t2.AcctName时使用"运输费用",然后是"印刷和文具",否则t2.AcctName以"费用名称"结尾,(T1.DEBIT)AS [ [发票金额]来自OJDT T0内部联接JDT1 T1在T0.TransId = T1.TRINSD内部联接OACT T2在T2.AcctCode = T1.Account t1.project ='CISL/OM092'和T1.DEBIT <>'0'和 t1.ShortName <>'201000'和t1.account <> t1.ShortName和t0.TransType = '30'GROUP BY year(dateadd(month,-3,T0.RefDate)),DATENAME(month,T0.RefDate),MONTH(T0.RefDate),t1.Account,t1。 ShortName,t2.AcctName,t1.TransId,t0.RefDate,T1.DEBIT将所有SELECT年(dateadd(month,-3,T0.RefDate))合并为[Years],DATENAME(month,T0.RefDate)合并为[Months ],CAST(MONTH(T0.RefDate)AS VARCHAR(MAX))AS [Monthnum],t1.ShortName作为"帐户代码",t1.transId,t0.RefDate,当t2.AcctName in('Entertainment-domestic' ,"娱乐-国际","娱乐-员工T&E","物业费率","专业费","法律费","审计费","会计费","咨询费","咨询费"," 顾问费-其他','捐赠-合同','礼品文章-合同','杂项费用-合同','Pooja费用-合同','客户娱乐费','法律和专业费用-合同','佣金 和经纪","关税和税费","劳动福利基金","法律和专业费用-合同","税费"," P" r税-Ambattur办事处','罚金','专业费','注册费','四舍五入','研讨会费用','经纪费','费率税款','专业税',' 商业推广费用","费用和执照及税费","法律费用","法律费用-合同","法律和专业费用","会员费"," Pooja费用","招标费","法院印章" 纸费","杂项费用","财务费用","银行利息CC","已支付的银行费用","信用费用","坏账费用","银行费用-合同"),然后在"杂项费用" t2.AcctName在(``维护和修理'',``机械和设备维护'',``修理和更新'',``园艺'',``消耗品和备件'',``消耗品和备件-合同'',``消耗品和备件Telangana'',`` 消耗品和备件","消耗品和备件AP","人工费用-合同","服务费用技术和顾问","测试费用A/C","人工费用-其他","服务费用技术和Conslt-进口" ','维修与保养','服务 冰收费-其他","维修和保养-机械"),然后在t2.AcctName("旅行和娱乐","票价","票价-员工T&E","订票费用"," 旅行费-航空预订","旅行费-航空预订-合同","旅行费-巴士预订","旅行费-合同","旅行费-火车预订","旅行费-火车预订-合同", t2.AcctName("建筑物维护","教育和培训","管理","其他管理费用","审计费用","一般","计算机维护"中的t2.AcctName时,"离开旅行优惠")然后"旅行费用" ','内部审计费用','办公室维护'),然后在t2时进行'办公室维护'。(tutils,'Gas','Cooking Gas','Cooking Gas-Cauvery')中的AcctName在t2时是'MESS' .AcctName中的名称("雇主国民保险缴费","雇员保险缴费","保险(WC/GPA)","雇主国民保险缴费","雇主责任保险","私人医疗保健费用" ,"员工保险金","雇主保险金","保险","物业保险","海洋保险","海外保险","保险","团体保险","建筑保险"),然后是"保险" 当t2.AcctName在("水","员工奖金","安全项目购买-合同","员工福利-合同","加班费","员工福利","激励")中时为"员工福利"时 (t2.AcctName)中的t2.AcctName(``电话'',``邮资和快递合同'',``电话费-合同'',``互联网费用'',``电话费'',``邮资和快递'')中的 在(``清洁与洗衣'',``有线电视租用-合同'')中的t2.AcctName时,先是``物业租金'',``电费-续'',``租金-合同'',``电费'',``广告费用'')然后是``ESTABLISHMENT''。 ','宾馆房屋维护','清洁费用','书籍和期刊'),然后在('住宿-国内','住宿-国际','住宿-员工T&E','t2.AcctName'中输入'Guest HOUSE MAINTENANCE' '留C 在(旅行成本-其他','机动车费用','车辆租赁','车辆维修和服务','车辆燃料和机油','车辆' 杂项费用","设备-租赁费用","燃油费用-合同","本地运输-合同","车辆租赁费用","车辆燃料费用","车辆保险","车辆维护","本地运输" '),然后在t2.AcctName中("薪资和福利","薪资和工资-加班","裁员","董事薪金","董事酬金","薪水")中的t2.AcctName时,然后是"员工薪水" '当t2.AcctName在('货运费','物料搬运费','运输','运输费','货运和运输','入站货运和运输','出站货运和运输','货运费用 '),然后在(打印和文具,打印和文具-合同)中的t2.AcctName时输入"运输费用",然后在"打印和文具"中输入t2.AcctName结束,否则t2.AcctName以"支出名称"结尾,(T1.DEBIT)AS [发票金额 T]来自OJDT T0内部联接JDT1 T1处于T0.TransId = T1。过渡内部联接OACT T2处于T2.AcctCode = T1。帐户t1.project ='CISL/OM092'和T1.DEBIT <>'0'和t1 .ShortName <>'201000'和T1.ShortName ='SI00004'和t0.TransType = '18'GROUP BY year(dateadd(month,-3,T0.RefDate)),DATENAME(month,T0.RefDate),MONTH (T0.RefDate),t1.Account,t1.ShortName,t2.AcctName,t1.TransId,t0.RefDate,T1.DEBIT

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


尊敬的专家,

我有以下情况,

我正在准备MIS报告,以支付Clint的所有费用。 我的报告基于日记帐分录,当我被选为日记帐分录时,所有供应商都被记入贷方,我们需要所有借方。

当特定的BP(供应商)涉及信贷时,我们需要所有借方费用。

案例1:BP(所有供应商)=>信用

费用=>借记

案例2:BP(特定供应商)=>信用

费用=>借记

在以上两种情况下,我们只需要针对不同情况下的借方条件,我将如何进行处理,将两种费用分开。 拜托我

SELECT year(dateadd(month,-3,T0.RefDate))为[Years],DATENAME(month,T0.RefDate)作为[Months],CAST(MONTH(T0.RefDate)AS VARCHAR(MAX)) AS [Monthnum],t1.ShortName作为"帐户代码",t1.transId,t0.RefDate,如果t2.AcctName在("娱乐-国内","娱乐-国际","娱乐-员工T&E","属性" 费率","专业费","法律费","审计费","会计费","咨询费","咨询费","咨询费-其他","捐赠-合同","礼品"- 合同","杂项费用-合同"," Pooja费用-合同","客户娱乐费","法律和专业费用-合同","佣金和经纪业务","费率税金","劳动福利基金" ,"法律和专业费用-合同","费率和税收","物业税-Ambattur办公室","罚金","专业费用","注册费","四舍五入","研讨会费用"," 经纪费用","关税和税费","专业税","业务促销" 费用","费用和执照和税费","法律费用","法律费用-合同","法律和专业费用","会员费"," Pooja费用","招标费","法院印章" FEES","杂项费用","财务费用","银行利息CC","已支付的银行费用","信用费用","坏账费用","银行费用-合同"),然后在t2时为" MISC费用" .AcctName("维护和修理","机械和设备维护","维修和更新","园艺","消耗品和备件","消耗品和备件-合同","消耗品和备件Telangana","消耗品" &备件","消耗品和备件AP","人工费用-合同","服务费用技术和顾问","测试费用A/C","人工费用-其他","服务费用技术和咨询-进口" ,"维修和保养","服务费-其他","维修和保养-机械"),然后在t2.AcctName("旅行和娱乐","票价","票价-员工T&E", "机票预订费","旅行费" s-航空预订","旅行费用-航空预订-合同","旅行费用-公共汽车预订","旅行费用-合同","旅行费用-火车预订","旅行费用-火车预订-合同",' 在t2.AcctName中("建筑物维护","教育和培训","管理","其他管理费用","审计费用","一般","计算机维护")中的t2.AcctName离开旅行优惠"),然后选择"旅行费用"。 ,"内部审计费用","办公室维护"),然后在t2时选择"办公室维护"。(tutils中的"实用程序","气体","烹饪气体","烹饪气体-杂物房")中的AcctName然后在t2时选择" MESS"。 在('雇主国民保险供款','雇员保险供款','保险(WC/GPA)','雇主国民保险供款','雇主责任保险','私人医疗保健费用','雇员保险供款', 然后是"雇主保险金","保险","物业保险","海洋保险","海外保险","保险","团体保险","建筑保险") 当t2.AcctName出现在"保险"中("水","员工奖金","购买安全项目-合同","员工福利-合同","超时费用","员工福利","激励"),然后是"职员" t2时为WELFARE'.AcctName(在"电话","邮资和快递合同","电话费-合同","互联网费用","电话费","邮资和快递"中),然后在t2时为" COMMUNICATUION"。 t2中的AcctName('物业租金','电费-续','租金-合同','电费','广告费用')然后是'ESTABLISHMENT'(t2).AcctName在('清洁和洗衣','有线电视 当在('住宿-国内','住宿-国际','住宿-员工')中输入t2.AcctName时,再选择'Guest HOUSE MAINTENANCE'(租金-合同),'Guest House Maintenance','清洁费用','Books&Journals') T&E","住宿费用-合同"),然后在t2.AcctName("旅行费用-其他","机动车费用","车辆租赁","车辆维修和服务","车辆燃料和 石油","车辆杂项支出" enses","设备-租赁费用","燃油费用-合同","本地运输-合同","车辆租赁费用","车辆燃料费用","车辆保险","车辆维护","本地运输" ),然后在t2.AcctName中("薪资和福利","薪资和工资-加班","裁员","董事薪金","董事酬金","薪金")中的t2.AcctName然后是" STAFF SALARY" 当t2.AcctName位于("运费","材料处理费","运输","运送费","运费和运输","入站货运和运输","出站货运和运输","货运费用" ),然后在("印刷和文具","印刷和文具-合同")中的t2.AcctName时使用"运输费用",然后是"印刷和文具",否则t2.AcctName以"费用名称"结尾,(T1.DEBIT)AS [ [发票金额]来自OJDT T0内部联接JDT1 T1在T0.TransId = T1.TRINSD内部联接OACT T2在T2.AcctCode = T1.Account t1.project ='CISL/OM092'和T1.DEBIT <>'0'和 t1.ShortName <>'201000'和t1.account <> t1.ShortName和t0.TransType = '30'GROUP BY year(dateadd(month,-3,T0.RefDate)),DATENAME(month,T0.RefDate),MONTH(T0.RefDate),t1.Account,t1。 ShortName,t2.AcctName,t1.TransId,t0.RefDate,T1.DEBIT将所有SELECT年(dateadd(month,-3,T0.RefDate))合并为[Years],DATENAME(month,T0.RefDate)合并为[Months ],CAST(MONTH(T0.RefDate)AS VARCHAR(MAX))AS [Monthnum],t1.ShortName作为"帐户代码",t1.transId,t0.RefDate,当t2.AcctName in('Entertainment-domestic' ,"娱乐-国际","娱乐-员工T&E","物业费率","专业费","法律费","审计费","会计费","咨询费","咨询费"," 顾问费-其他','捐赠-合同','礼品文章-合同','杂项费用-合同','Pooja费用-合同','客户娱乐费','法律和专业费用-合同','佣金 和经纪","关税和税费","劳动福利基金","法律和专业费用-合同","税费"," P" r税-Ambattur办事处','罚金','专业费','注册费','四舍五入','研讨会费用','经纪费','费率税款','专业税',' 商业推广费用","费用和执照及税费","法律费用","法律费用-合同","法律和专业费用","会员费"," Pooja费用","招标费","法院印章" 纸费","杂项费用","财务费用","银行利息CC","已支付的银行费用","信用费用","坏账费用","银行费用-合同"),然后在"杂项费用" t2.AcctName在(``维护和修理'',``机械和设备维护'',``修理和更新'',``园艺'',``消耗品和备件'',``消耗品和备件-合同'',``消耗品和备件Telangana'',`` 消耗品和备件","消耗品和备件AP","人工费用-合同","服务费用技术和顾问","测试费用A/C","人工费用-其他","服务费用技术和Conslt-进口" ','维修与保养','服务 冰收费-其他","维修和保养-机械"),然后在t2.AcctName("旅行和娱乐","票价","票价-员工T&E","订票费用"," 旅行费-航空预订","旅行费-航空预订-合同","旅行费-巴士预订","旅行费-合同","旅行费-火车预订","旅行费-火车预订-合同", t2.AcctName("建筑物维护","教育和培训","管理","其他管理费用","审计费用","一般","计算机维护"中的t2.AcctName时,"离开旅行优惠")然后"旅行费用" ','内部审计费用','办公室维护'),然后在t2时进行'办公室维护'。(tutils,'Gas','Cooking Gas','Cooking Gas-Cauvery')中的AcctName在t2时是'MESS' .AcctName中的名称("雇主国民保险缴费","雇员保险缴费","保险(WC/GPA)","雇主国民保险缴费","雇主责任保险","私人医疗保健费用" ,"员工保险金","雇主保险金","保险","物业保险","海洋保险","海外保险","保险","团体保险","建筑保险"),然后是"保险" 当t2.AcctName在("水","员工奖金","安全项目购买-合同","员工福利-合同","加班费","员工福利","激励")中时为"员工福利"时 (t2.AcctName)中的t2.AcctName(``电话'',``邮资和快递合同'',``电话费-合同'',``互联网费用'',``电话费'',``邮资和快递'')中的 在(``清洁与洗衣'',``有线电视租用-合同'')中的t2.AcctName时,先是``物业租金'',``电费-续'',``租金-合同'',``电费'',``广告费用'')然后是``ESTABLISHMENT''。 ','宾馆房屋维护','清洁费用','书籍和期刊'),然后在('住宿-国内','住宿-国际','住宿-员工T&E','t2.AcctName'中输入'Guest HOUSE MAINTENANCE' '留C 在(旅行成本-其他','机动车费用','车辆租赁','车辆维修和服务','车辆燃料和机油','车辆' 杂项费用","设备-租赁费用","燃油费用-合同","本地运输-合同","车辆租赁费用","车辆燃料费用","车辆保险","车辆维护","本地运输" '),然后在t2.AcctName中("薪资和福利","薪资和工资-加班","裁员","董事薪金","董事酬金","薪水")中的t2.AcctName时,然后是"员工薪水" '当t2.AcctName在('货运费','物料搬运费','运输','运输费','货运和运输','入站货运和运输','出站货运和运输','货运费用 '),然后在(打印和文具,打印和文具-合同)中的t2.AcctName时输入"运输费用",然后在"打印和文具"中输入t2.AcctName结束,否则t2.AcctName以"支出名称"结尾,(T1.DEBIT)AS [发票金额 T]来自OJDT T0内部联接JDT1 T1处于T0.TransId = T1。过渡内部联接OACT T2处于T2.AcctCode = T1。帐户t1.project ='CISL/OM092'和T1.DEBIT <>'0'和t1 .ShortName <>'201000'和T1.ShortName ='SI00004'和t0.TransType = '18'GROUP BY year(dateadd(month,-3,T0.RefDate)),DATENAME(month,T0.RefDate),MONTH (T0.RefDate),t1.Account,t1.ShortName,t2.AcctName,t1.TransId,t0.RefDate,T1.DEBIT

付费偷看设置
发送
2条回答
callcenter油条
1楼-- · 2020-09-03 07:39

您好 Balaji Bala

请您详细说明或解释它以了解更多信息。

因为我仍然无法理解您的要求。

此致

Brij

95年老男孩
2楼-- · 2020-09-03 07:24

当信用额度为Site Imprest -cauvery时,我希望分别扣除相关的借方金额。

当贷项是"网站定额备用金"以外的任何其他借项时,我要分别分配相关的借方金额。

一周热门 更多>