SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

START_DATE и RULE_START_DATE



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Sed0Y
Специалист
Специалист


Age: 41
Joined: 17 Mar 2010
Posts: 88
Location: Ukraine - Kiev

PostPosted: Thu May 20, 2010 2:30 pm    Post subject: START_DATE и RULE_START_DATE Reply with quote

через БАПИ "BAPI_BUSPROCESSND_GETDETAILMUL" получаю таблицу "BILLPLAN" где "START_DATE" = '30.04.2010 21:00:00' и есть "RULE_START_DATE" как мне получить конечную дату по этому правилуQuestion

Или как получить дату которая выделена на рирунках ниже Question Sad



22222.JPG
 Description:
или
 Filesize:  51.28 KB
 Viewed:  4237 Time(s)

22222.JPG



11111.JPG
 Description:
или тут
 Filesize:  41.78 KB
 Viewed:  4237 Time(s)

11111.JPG


Back to top
View user's profile Send private message
Sed0Y
Специалист
Специалист


Age: 41
Joined: 17 Mar 2010
Posts: 88
Location: Ukraine - Kiev

PostPosted: Fri May 21, 2010 6:58 pm    Post subject: Reply with quote

я уже и сам решил эту проблему:

Code:
DATA:
        lv_guid         TYPE CRMT_OBJECT_GUID,
        data_ TYPE CRMT_START_DATE,
        lt_bapi_order_guid TYPE TABLE OF bapibus20001_guid_dis,
        lv_bapi_order_guid TYPE bapibus20001_guid_dis,
        lt_billplan_dis TYPE TABLE OF BAPIBUS20001_BILLPLAN_DIS,
        lv_billplan_dis TYPE BAPIBUS20001_BILLPLAN_DIS,
        BILLING_TIMEZONE  TYPE CRMT_BILLING_TIMEZONE,
        start_date_tztf TYPE tztf_io.

  FREE lv_guid.
  SELECT SINGLE guid FROM crmd_orderadm_h INTO lv_guid WHERE OBJECT_ID LIKE '%111'.

  MOVE lv_guid TO lv_bapi_order_guid.
  APPEND lv_bapi_order_guid TO lt_bapi_order_guid.

  CALL FUNCTION 'BAPI_BUSPROCESSND_GETDETAILMUL'
  TABLES
  GUID = lt_bapi_order_guid
  BILLPLAN = lt_billplan_dis


  READ TABLE lt_billplan_dis INTO lv_billplan_dis INDEX 1.

  data_             = lv_billplan_dis-start_date.
  BILLING_TIMEZONE  = lv_billplan_dis-billing_timezone.

*  CALL FUNCTION 'CRM_BILLPLAN_GET_RULES'
*    IMPORTING
*      ev_timeprof = lv_timeprof.

*     convert date to output format
  CALL FUNCTION 'TZTF_SINGLE_OUTPUT_PROFILE'
    EXPORTING
      if_profile   = 'IST_ORDITEM'
      if_type      = 'START_DATA'
      if_timestamp = data_
      if_timezone  = BILLING_TIMEZONE
    IMPORTING
      ef_io_field  = start_date_tztf.

WRITE start_date_tztf. 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.