Skip to content

Instantly share code, notes, and snippets.

@chumpa
Last active September 18, 2018 16:01
Show Gist options
  • Save chumpa/2056ec84407e4b1401b674d35a372c70 to your computer and use it in GitHub Desktop.
Save chumpa/2056ec84407e4b1401b674d35a372c70 to your computer and use it in GitHub Desktop.
CPI-DS useful functions and tips

CPI-DS notes

Row functions

gen_row_num()=1 -- 1, 2, etc

dumps on IBP ABAP side

https://launchpad.support.sap.com/#/notes/0002317018 -- execute preload for each task in flow

PERIODID4 to week and date conversion:

https://archive.sap.com/discussions/thread/3621086 1я неделя года содержит 4е января (по ISO).

примеры

№ недели неделя даты
62525 w20 2018 2018-05-14 - 2018-05-20
62526 w21 2018 2018-05-21 - 2018-05-27
62527 w22 2018 2018-05-28 - 2018-06-03
62528 w32 2018 2018-06-04 - 2018-06-10
62548 w43 2018 2018-10-22 - 2018-10-28

формула

Формулы не существует. Надо лезть в таблицу SOPDD_TIMEPERIOD_XXXXXXXXX и оттуда вытаскивать TSTFR и TSTTO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment