CALL FUNCTION 'BAPI_OUTB_DELIVERY_CREATENOREF'
EXPORTING
SHIP_POINT = SHIP_POINT
DLV_TYPE = 'ZPR'
SALESORG = SALESORG
DISTR_CHAN = DISTR_CHAN
DIVISION = DIVISION
SHIP_TO = SHIP_TO
* IMPORTING
* DELIVERY = DELIVERY
* NUM_DELIVERIES = NUM_DELIVERIES
TABLES
DATES = DATES
DLV_ITEMS = DLV_ITEMS
CREATED_ITEMS = CREATED_ITEMS
RETURN = RETURN .
'BAPI_OUTB_DELIVERY_CREATENOREF' 이펑션을 타는데요~
다른건 다괜찬흥데 DATES 라는 테이블에서 에러가나요~
이렇게 시간은 필수입니다 라고요~
1 | E | VLBAPI | 66 | 시간은 필수입니다. | ||||||
2 | E | BAPI | 1 | 오브젝트유형 OutboundDelivery 인스턴스를 생성할 수 없습니다. 외부참조: |
DATES LIKE BAPIDLVDEADLN OCCURS 0 WITH HEADER LINE,
DATES 라는 테이블 구조는 이렇습니다.
구성요소
구성요소유형
Dictionary 유형
길이
소숫자
내역
DELIV_NUMB
VBELN_VL
CHAR
10
0
납품
TIMETYPE
TSEGTIMTYP
CHAR
10
0
논리시간
TIMESTAMP_UTC
TZNTSTMPS
DEC
15
0
간단한 서식의 UTC 시간 표시(YYYYMMDDhhmmss)
TIMEZONE
TZNZONE
CHAR
6
0
시간대
저 색칠 한 부분에서 문제가 나는 것 같은데요~
저부분을 그냥 대충 제생각대로 넣어줬거든여~
DATES-TIMETYPE = SY-UZEIT." syst
CONCATENATE SY-DATUM SY-UZEIT INTO L_N .
MOVE L_N TO DATES-TIMESTAMP_UTC .
DATES-TIMEZONE = 'UTC+9'.
APPEND DATES.
이런식으로 넣어줬더니 . 에러나요~ 해결좀~해주세요^^;;
해당 function의 'DATES' 파라메터의 long text를 보면 설명이 나와있습니다.
구조 'BAPIDLVDEADLN'의 해당 필드를(data element등) 조사하셔도 실제 사용하셔야할 값들을 찾으실 수 있을 겁니다.
============================================
FU BAPI_OUTB_DELIVERY_CREATENOREFDATES
____________________________________________________
내역
Delivery Deadlines
Description
You can use parameter DATES to specify delivery dates or how they are calculated.
The following date categories TIMETYPE (logical events according to table TTSEGTIME) can be used:
For historical reasons, internal format (TTSEGTIME-TIME) is used. Use this format in programs that fill the parameter DATES.
Caution:
When entering a date category on a screen (for example, parameter entry in test mode for transaction SE37), external format must be used, due to the conversion exits. You will find this in the following tables:
Use
Depending on parameter DATE_USAGE, the following dates must be transferred:
The dates are to be specified as time stamps with the above date category and time zone. The field for the delivery number is not used.
If the time zone is not specified, the UTC time stamp cannot be converted to local time.
Notes
DATE_USAGE = '0':
If no value is specified for DATE_USAGE or if DATE_USAGE has the value '0', the planned goods issue date is required. Other dates may also be transferred, although all of the following dates must be transferred:
If a date is missing, only the planned goods issue date is copied for calculation of dates.
DATE_USAGE = '1' or '2':
Dates other than the dates shown above as required are ignored.
기능 모듈
BAPI_OUTB_DELIVERY_CREATENOREF