BAPI_SHIPMENT_CREATE
How can i create a shipment with the execution dates in the deadline?? How i fill the BAPISHIPMENTSTAGEDEADLINE?
can anybody post an example please? i need to create a shipment with status "shipment completion". thanks
Hi Sreenivas,
I need to assign certain type of deliveries to a particular shipment rite now i am trying with the following code. plz suggest me how to use this BAPI_SHIPMENT_CEATE. If possible send me sample code.
Code rite now i am using is
*& Report Y_EPP001
REPORT y_epp001.
DATA : is_xvttk TYPE vttkvb, " Shipment Header
it_xvttp TYPE TABLE OF vttpvb, " Shipment Item
it_yvttp TYPE TABLE OF vttpvb, " Shipment Item
it_xvtsp TYPE TABLE OF vtspvb, " Stage or Item assignment
it_yvtsp TYPE TABLE OF vtspvb,
it_deliveries TYPE TABLE OF ship_deliv," Store Deliveries.
it_xtrlk TYPE TABLE OF vtrlk,
it_xtrlp TYPE TABLE OF vtrlp,
it_xvtts TYPE TABLE OF vttsvb.
DATA : wa_deliveries LIKE LINE OF it_deliveries.
DATA : ws_xvtts LIKE LINE OF it_xvtts.
*wa_deliveries-vbeln = '0080000754'.
*wa_deliveries-tprfo = '1'.
*APPEND wa_deliveries TO it_deliveries.
wa_deliveries-vbeln = '0080000691'.
wa_deliveries-tprfo = '2'.
APPEND wa_deliveries TO it_deliveries.
**** Reading of deliveries for shipment processing
CALL FUNCTION 'SD_SHIPMENT_DELIVERY_VIEW'
EXPORTING
i_partner_role = 'X'
opt_items = 'X'
opt_status_data = 'X'
opt_partners = 'X'
opt_customer_data = 'X'
opt_customizing_data = 'X'
opt_order_data = 'X'
opt_export_data = 'X'
opt_stawn_data = 'X'
opt_hazmat_dat = 'X'
TABLES
i_deliv = it_deliveries
* Delivery Header data
c_vtrlk = it_xtrlk
* Delivery Item data
c_vtrlp = it_xtrlp
EXCEPTIONS
no_deliveries = 1
error_reading_delivery_header = 2
error_reading_partner_table = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*** Pass the shipment numbe here and get Previous deliveris assigned.
BREAK-POINT.
CALL FUNCTION 'RV_SHIPMENT_VIEW'
EXPORTING
shipment_number = '0000001292'
option_tvtk = 'X'
option_ttds = 'X'
option_items = 'X'
option_sales_orders = 'X'
option_export_data = 'X'
option_stawn_read = 'X'
option_segments = 'X'
option_partners = 'X'
option_messages = 'X'
option_packages = 'X'
option_package_dialog = 'X'
option_flow = 'X'
option_authority_check = ' '
activity = 'A'
option_no_refresh = ''
option_ignore_missing_deliv = 'X'
IMPORTING
*** The Lastitem no assigend & lastsequence num asigned.
f_vttkvb = is_xvttk
TABLES
*** Old Deliveries asigned to Shipment.
f_vttp = it_xvttp
*** Stage/item assignment.
f_vtsp = it_xvtsp
EXCEPTIONS
not_found = 1
no_authority = 2
delivery_missing = 3
delivery_lock = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*** Assign Delivery to Shipment.
CALL FUNCTION 'SD_DELIVERY_ASSIGN_TO_SHIPMENT'
EXPORTING
i_tknum = '0000001292'
tables
c_xvttp = it_xvttp
c_yvttp = it_yvttp
c_xvtsp = it_xvtsp
c_yvtsp = it_yvtsp
i_deliveries = it_deliveries
i_xtrlk = it_xtrlk
i_xtrlp = it_xtrlp
i_xvtts = it_xvtts
changing
c_xvttk = is_xvttk
EXCEPTIONS
NO_TRANSPORT_RELEVANCE = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
BREAK-POINT.
Thanks in advance. Plz send usful document to [email protected]
Similar Messages
-
Issue in Creation of shipment with events using BAPI_SHIPMENT_CREATE
Hello experts,
I am trying to create shipments using BAPI_SHIPMENT_CRETAE for which data is provided in an excel.
The issue here is I have to create the events in shipment i.e., I need to fill the Further dates tab. But in this BAPI there is no such structure or field which can take the input and create an entry in this tab. Please let me know if we can do this using this BAPI .
Also let me know if there are any other bapi's for shipment creation or the only way is to go for BDC.
Thanks.Hi,
The BAPI_SHIPMENT_CREATE can't upload further dates, partners etc.
You can try below options.
1. Use BAPI to create basic shipment and update further dates data through BDC(VT02)
2. Create shipment using BDC(VT01)
Regards
Praveen -
Problem with BAPI_SHIPMENT_CREATE
Hi,
I am using BAPI_SHIPMENT_CREATE in se37 to create shipment.
I've given proper data and it does return sy-subrc 0 with a shipment number.
But, when i try to change the same in Tcode VT02N, it says "Shipment 104689 is currently being processed by user DZ9S07".
When i used the same BAPI in a program, it gives me the shipment number and when i try to display it in the Tcode VT03N, it gives me a message, "Shipment 104689 is neither in the database nor in the archive."
do i have to do anything specific for these shipments to get saved?
I doubt if i need to do a commit work, anyway i've tried doing that in the debugging. No luck.
Please help me.
Cheers,
Ajit.In earlier Versions of SAP 4.7 etc. there are a lot of BAPIs that do their commit thmeselves.
This has been proven not too good so in later releases some BAPIs lost this functionality and you need to do the commit manually using BAPI_TRANSACTION_COMMIT.
Edited by: Florian Kemmer on Dec 15, 2010 9:43 AM -
BAPI-VT01 BAPI_SHIPMENT_CREATE DATA UPLOAD
Dear All,
Can anybody send step by step of data upload in TCODE vt01
bY using BAPI -BAPI_SHIPMENT_CREATE with soms basic datas.
MohamedHi,
Check this link,
bapi_shipment_create
and see this function module IDOC_INPUT_SHIPMENT_CHANGE
Regards,
Raghava Channooru -
BAPI_SHIPMENT_CREATE Stages
How to create stages for BAPI shipment when there are multiple stages to same ship to location for multiple deliveries.
eg. del ship to
100001 10044
100002 10044
100003 100056
100005 100056
It should create 2 stages one with (100001 and 100002 going to 10044
and (10003 and 100005 going to 100056 ) as another stage
PL let me know if any body knows how to populate the
Bapi_shipment_create bapi or is there any other method.BAPI_SHIPMENT_CREATE is for creating only, if existi, then you should execute BAPI_SHIPMENT_CHANGE
-
BAPI_SHIPMENT_CREATE Vehicle?
Hello everyone. I've faced the problem: in the set of parameters of FUNCTION BAPI_SHIPMENT_CREATE i can't find which exactly place to pass "VEHICLE" parameter (see transaction VT01N ). Does anyone have idea to solve this problem?
Sincerly yours, Long Nguyen.Sorry for upping, but i have to.
-
BAPI_SHIPMENT_CREATE - Shipment without outbound deliveries
Hello experts,
I am implementing bapi BAPI_SHIPMENT_CREATE for generating shipment number (VT01N). The user inputs are (1) outbound delivery number (2) shipment type and (3) forwarding agent. BAPI is generating shipment number in simulation and when called in abap program but without outbound deliveries (and Net Value calculation). Along with three user input parameters, i am also populating relavant
1--> TRANS_PLAN_PT, SHIPMENT_ROUTE, status flags, SERVICE_AGENT_ID of Header data.
2.->STAG_SEQ, INCOTERM, LEG_INDICATOR, ORG_SHIPP_DPMNT, plant of departure, dest. plant of STAGEDATA table (optional)
3.-->outbound delivery number in ITEMDATA table (optional)
4.--> corresponding fields of tables STAGEDEADLINE, ITEMONSTAGE, HDUNHEADER/ITEM (optional)
After populating these fields, RETURN parameter shows the shipment number but without attached outbound delivery (after clicking stage tab -- deliveries) and net value calulation.
Any help or suggestion in this regard will be of greate help.
Thanks,
HarishBAPI_SHIPMENT_CREATE is for creating only, if existi, then you should execute BAPI_SHIPMENT_CHANGE
-
Reg BAPI_SHIPMENT_CREATE
Hi All!,
I know dat these two need to be filled to create shippment.
TRANS_PLANT_PT
SHIPMENT_TYPE are mandatory to create shipment.But I even need to populate service_agent in STAGEDATA.Can any one help me out in providing required parameters to successfully run this bapi (BAPI_SHIPMENT_CREATE) in such a case?
Thanking u in Advance,
Regards,
ChandanaKick me please.
-
BAPI_SHIPMENT_CREATE - Additional Custom Fields
Hello BAPI Guru's,
I use the BAPI_SHIPMENT_CREATE to create Shipments. All normal requirements are working good. I need your expertise for the following situation:
- I have extended table VTTK with couple of fields to store information about (License plate, Driver information, Vessel Info, Seal No....)
- Using this BAPI when I create the shipment I would like to update the above fields/information also.
- By default this BAPI will not update these new custom fields as these new fields are not existing in the BAPI interface (structure BAPISHIPMENTHEADER).
Can you pls share your views/ideas on how to achieve something like this?
Thanks a lot !
Regards,
HiteshHi,
Hope the following threads will help you regarding your problem.
Re: Creating Contract from Quotation
Thanks.
Nitesh -
Getting No measurement unit is assigned to ISO-Code in BAPI_SHIPMENT_CREATE
I have been entering all the required value in order to create a new shipment number linked to a delivery number and am getting the return: No measurement unit is assigned to ISO-Code SEC
Could someone please help me or guide me in another direction to create a shipment number?
Thank you in advanceThx for the fast reply.
I sent an OSS to SAP and they replied with this:
If there is a different order price unit in the purchase order, the
fields Quantity in order price unit (PO_PR_QNT) and Order price unit
(PO_PR_UOM), or Order price unit in ISO code (PO_PR_UOM_ISO) must be
filled as well.
As in your case, 'Order Unit' and 'Order Price Unit' may not the same,
you need to input the above mentioned fields as well.
Can someone tell me where are the fields mentioned above? None of the parameters have these fields.
Thanks in advance -
ERROR message while posting SHIPMENT order
Hi all,
i have developed one program which can create a shipment order using BAPI_SHIPMENT_CREATE.After uploading, i have passed all the data to this FM.
in my return parameter, i am getting only error message number & type of message but message is blank.so it is very difficult to know what is the actual error.
my error is like below
message type -warning
message no.-000
message- (it is blank)
i am getting 3 error message numbers. all are 000.so how could i solve this error.plz suggest.
Regards
pabitraHi vasanth,
Thanks for ur help. but i am getting only message no & type of message.message ID is also blank.i tried to find this message by debugging but can not succeed.
type of message--warning
message no--000
so, how to find this message.plz suggest.
Regards
pabitra -
Hi All,
I would like to know what are the minimum required parameters to pass in BAPI BAPI_SHIPMENT_COST_ESTIMATE. And from which tables I can pull out that information to pass to this BAPI.
Does this BAPI creates a shipment cost document in the system or just shows the estimate of the shipment cost.
If it creates a shipment cost document then its good for me. but if it shows us just the estimate does it shows estimate for each delivery (total Qty, Unit Price & Total Price).
What will be the item category it will pick. I like to see it picks basic price related item category.
Does any body has used this bapi ?
Appreciate your fast reply.
Regards,
LeonaHello, I´ll try to answer your question:
1. is it possible to run the bapi without actual shipment number and the shipment ( & cost ) will be created in simulation mode ?
I think that the bapi only run with external shipment number and only run in simulation mode, that´s mean the bapi can not create any shipment and cost document, if you want to create a shipment use BAPI_SHIPMENT_CREATE, to create a cost document I don´t know if there is a bapi but you can create easily with transaction VI01 (batch-input)
The shipment number that you use to call the bapi is a ficticious number always between external range indicated in field V_TVTK-NUMKE with the shipment type that you use.
2. is it possible to perform estimation to inbound shipments ?
Yes it´s depend on the shipment type. In standard system 0010 is used
In the example that I have I use an inbound delivery
3. does the bapi creates shipment and scd in simulate mode like transaction VICI ( from sales order ) ?
I think that the bapi only run in simulation mode and it can not create any document
4. is there any problem if i customized my scd item categories to open manualy ?
I think that the bapi needs to work properly automatic iten categories
can you please post sample code ( or any other doc's ) for this bapi ?
I send you a document with an example if you give me an e-mail because I don´t know how to attach a word document
Best regards, -
How to send Internal table records to Idoc Inbound posting FM to create Ido
Hello Experts,
I have all the data necessary to create shipments in one internal table inside my ABAP program.
I can use BAPI_SHIPMENT_CREATE to create shipments. But associated with this BAPi there is one ALE message type SHIPMENT_CREATEFROMDATA. Now my requirement is to use this message type to cretae my shipments via idocs for one scenario for some of the records in the internal table.
For this message type, I got the inbound function module IDOC_INPUT_SHIPMENT_CREATEFROM from TBDBE table.
Can anybody please let me know how to send the data from the internal table to this inbound function module?
Becasue it has mandatory parameters INPUT_METHOD, MASS_PROCESSING. What values should be passed to these parameters if the data has to be sent to this function module?
Regards.Hi Ravikanth,
Thankyou very much for your quick reply.
So If I split my internal table data and populate IDOC_DATA and IDOC_CONTROL and pass to the inbound function module directly in my ABAP program, will that be going to create idocs and post shipments?
I mean is it enough to call the Inbound posting function module directly in my ABAP program or any other FMs to be called to take care of ALE settings and shipment creation?
Please confirm.
REgards. -
Problem in Creating Shipment using BAPI
Hi All,
I am using the bapi BAPI_SHIPMENT_CREATE for creating shipment for deliveries in my program.
When I schedule it in the background (i.e.SM37) the job gets cancelled when there is a dynamic credit block (Message type is E).
When I execute the program in the foreground i.e. using transaction SA38, the shipment gets created successfully.
It would be great if anyone suggest a way to overcome this issue.
Thanks.
Regards, Senthil G.hi,
Try thsi BAPi
BAPI_CUSTOMER_CREATE
Regards
Sandipan -
hi all,
bapi_shipment_create is the bapi ,i want to use for the creation of shipment order but the structures & the fields inside that bapi is unfamiliar to me.so i need some samples so that i can follow.
1)i want to know which structures , i have to use & what r the fields of that structures, i have to pass so that a shipment order will be created.
that means, what r the fields of that bapi i have to use to crete a complete shipment order?plz suggest.
can anyone send me some sample code for creating shipment order using bapi?
Thanks & RegardsHi,
Check this sample code.
REPORT ztest_bapi_shipment_create .
* This report is provided to help understanding the interface *
* of function module 'BAPI_SHIPMENT_CREATE' with regard to *
* its ability to fill the different shipment-deadlines *
* With running this report, new shipments are created *
* fill the interface for bapi
DATA: headerdata LIKE bapishipmentheader,
headerdeadline LIKE bapishipmentheaderdeadline
OCCURS 0 WITH HEADER LINE,
itemdata LIKE bapishipmentitem OCCURS 0 WITH HEADER LINE,
stagedata LIKE bapishipmentstage OCCURS 0 WITH HEADER LINE,
stagedeadline LIKE bapishipmentstagedeadline
OCCURS 0 WITH HEADER LINE,
itemonstage LIKE bapishipmentitemonstage
OCCURS 0 WITH HEADER LINE,
address LIKE bapishipmentaddress
OCCURS 0 WITH HEADER LINE,
hdunheader LIKE bapishipmenthdunheader
OCCURS 0 WITH HEADER LINE,
hdunitem LIKE bapishipmenthdunitem
OCCURS 0 WITH HEADER LINE,
return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN COMMENT /1(83) com1.
SELECTION-SCREEN COMMENT /1(83) com2.
SELECTION-SCREEN COMMENT /1(83) com3.
SELECTION-SCREEN COMMENT /1(83) com4.
SELECTION-SCREEN COMMENT /1(83) com5.
SELECTION-SCREEN COMMENT /1(83) com6.
SELECTION-SCREEN COMMENT /1(83) com7.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN BEGIN OF BLOCK header WITH FRAME TITLE text-hrd.
* Headerdate - obligatory
SELECTION-SCREEN COMMENT /1(79) com8 FOR FIELD tplst.
PARAMETER: tplst LIKE vttk-tplst.
SELECTION-SCREEN COMMENT /1(79) com9 FOR FIELD tplst.
PARAMETER: shtyp LIKE vttk-shtyp.
SELECTION-SCREEN END OF BLOCK header.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN BEGIN OF BLOCK status WITH FRAME TITLE com10.
* Plan
PARAMETER: plan LIKE bapishipmentheader-status_plan.
*checkin
PARAMETER: check LIKE bapishipmentheader-status_checkin.
*load start
PARAMETER: load_s LIKE bapishipmentheader-status_load_start.
*load end
PARAMETER: load_e LIKE bapishipmentheader-status_load_end.
*Completion
PARAMETER: compl LIKE bapishipmentheader-status_compl.
* tra begin
PARAMETER: ship_s LIKE bapishipmentheader-status_shpmnt_start.
* tra end
PARAMETER: ship_e LIKE bapishipmentheader-status_shpmnt_end.
SELECTION-SCREEN END OF BLOCK status.
* Headerdeadline
SELECTION-SCREEN BEGIN OF BLOCK h_deadline WITH FRAME TITLE com11.
PARAMETERS: ttype(10)
DEFAULT 'HDRSTPLDT', "= End of planning
utc LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype2(10)
DEFAULT 'HDRSTCIPDT',"= planned date of check-in
utc2 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone2 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype3(10)
DEFAULT 'HDRSTCIADT',"= actual date of check-in
utc3 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone3 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype4(10)
DEFAULT 'HDRSTLSPDT',"= planned date f. start loading
utc4 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone4 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype5(10)
DEFAULT 'HDRSTLSADT',"= current date f. start loading
utc5 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone5 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype6(10)
DEFAULT 'HDRSTLEPDT',"= planned date f. end loading
utc6 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone6 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype7(10)
DEFAULT 'HDRSTLEADT',"= actual date f. end loading
utc7 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone7 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype8(10)
DEFAULT 'HDRSTCPDT',"= planned date f. shpmnt completion
utc8 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone8 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype9(10)
DEFAULT 'HDRSTCADT',"= actual date f. shpmnt completion
utc9 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone9 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype10(10)
DEFAULT 'HDRSTSSPDT',"= planned date f. start shpmnt
utc10 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone10 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype11(10)
DEFAULT 'HDRSTSSADT',"= actual date f. start shpmnt
utc11 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone11 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype12(10)
DEFAULT 'HDRSTSEPDT',"= planned date f. end shpmnt
utc12 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone12 LIKE bapishipmentheaderdeadline-time_zone.
PARAMETERS: ttype13(10)
DEFAULT 'HDRSTSEADT',"= actual date f. end shpmnt
utc13 LIKE bapishipmentheaderdeadline-time_stamp_utc,
zone13 LIKE bapishipmentheaderdeadline-time_zone.
SELECTION-SCREEN END OF BLOCK h_deadline.
* Format the select-options *
INITIALIZATION.
com1 = 'This report was provided to help understanding the behaviour'.
com2 = 'of function module BAPI_SHIPMENT_CREATE with regard to its '.
com3 = 'ability to fill the new shipments deadlines: '.
com4 = 'Planning, Check-In, Loading Start, Loading end, '.
com5 = 'Shpmnt completion, Shipment start and shipment end.'.
com6 = 'This report creates new shipments which can be '.
com7 = 'viewed e.g. with transaction VT03n'.
com8 = 'Transportation Planning Point (obligatory)'.
com9 = 'Shipment type (obligatory)'.
com10 = 'BAPISHIPMENTHEADER-Flags --> see note 531207 '.
com11 = 'HEADERDEADLINE-Structure --> see note 531207 '.
START-OF-SELECTION.
******************head begin***********************************
headerdata-trans_plan_pt = tplst.
headerdata-shipment_type = shtyp.
* change Plan status
* HEADERDATA-SHIPMENT_NUM = tknum.
IF plan <> space.
headerdata-status_plan = plan.
ENDIF.
* Change Check_in status
IF check <> space.
headerdata-status_checkin = check.
ENDIF.
*load beginn
IF load_s <> space .
headerdata-status_load_start = load_s.
ENDIF.
* load end
IF load_e <> space .
headerdata-status_load_end = load_e.
ENDIF.
* completion
IF compl <> space.
headerdata-status_compl = compl.
ENDIF.
*tra beginn
IF ship_s <> space.
headerdata-status_shpmnt_start = ship_s.
ENDIF.
*tra beginn
IF ship_e <> space.
headerdata-status_shpmnt_end = ship_e.
ENDIF.
***** HEADERDEADLINE END OF PLANNING
IF ttype <> space.
headerdeadline-time_type = ttype.
headerdeadline-time_stamp_utc = utc.
headerdeadline-time_zone = zone.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE PLANNED DATE OF CHECK-IN
IF ttype2 <> space.
headerdeadline-time_type = ttype2.
headerdeadline-time_stamp_utc = utc2.
headerdeadline-time_zone = zone2.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE ACTUAL DATE OF CHECK-IN
IF ttype3 <> space.
headerdeadline-time_type = ttype3.
headerdeadline-time_stamp_utc = utc3.
headerdeadline-time_zone = zone3.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE PLANNED D START OF LOADING
IF ttype4 <> space.
headerdeadline-time_type = ttype4.
headerdeadline-time_stamp_utc = utc4.
headerdeadline-time_zone = zone4.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE CURRENT D START OF LOADING
IF ttype5 <> space.
headerdeadline-time_type = ttype5.
headerdeadline-time_stamp_utc = utc5.
headerdeadline-time_zone = zone5.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE PLANNED D END OF LOADING
IF ttype6 <> space.
headerdeadline-time_type = ttype6.
headerdeadline-time_stamp_utc = utc6.
headerdeadline-time_zone = zone6.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE ACTUAL D END OF LOADING
IF ttype7 <> space.
headerdeadline-time_type = ttype7.
headerdeadline-time_stamp_utc = utc7.
headerdeadline-time_zone = zone7.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE PLANNED D SHIPMENT COMPLETION
IF ttype8 <> space.
headerdeadline-time_type = ttype8.
headerdeadline-time_stamp_utc = utc8.
headerdeadline-time_zone = zone8.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE ACTUAL D SHIPMENT COMPLETION
IF ttype9 <> space.
headerdeadline-time_type = ttype9.
headerdeadline-time_stamp_utc = utc9.
headerdeadline-time_zone = zone9.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE PLANNED D START OF SHIPMENT
IF ttype10 <> space.
headerdeadline-time_type = ttype10.
headerdeadline-time_stamp_utc = utc10.
headerdeadline-time_zone = zone10.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE ACTUAL D START OF SHIPMENT
IF ttype11 <> space.
headerdeadline-time_type = ttype11.
headerdeadline-time_stamp_utc = utc11.
headerdeadline-time_zone = zone11.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE PLANNED D END OF SHIPMENT
IF ttype12 <> space.
headerdeadline-time_type = ttype12.
headerdeadline-time_stamp_utc = utc12.
headerdeadline-time_zone = zone12.
APPEND headerdeadline.
ENDIF.
***** HEADERDEADLINE CURRENT D END OF SHIPMENT
IF ttype13 <> space.
headerdeadline-time_type = ttype13.
headerdeadline-time_stamp_utc = utc13.
headerdeadline-time_zone = zone13.
APPEND headerdeadline.
ENDIF.
itemdata-DELIVERY = '0080000028'.
itemdata-ITENERARY = '0001'.
append itemdata.
CALL FUNCTION 'BAPI_SHIPMENT_CREATE'
EXPORTING
headerdata = headerdata
TABLES
headerdeadline = headerdeadline
itemdata = itemdata
stagedata = stagedata
stagedeadline = stagedeadline
itemonstage = itemonstage
address = address
hdunheader = hdunheader
hdunitem = hdunitem
return = return.
LOOP AT return.
WRITE:/ return-message.
ENDLOOP.
Regards
vijay
Maybe you are looking for
-
Hi, The subject is sort of self explanatory but for the last few months (not sure exactly when) i have had regular Firefox crashes, it seems to happen when i'm out of memory and FF has used all the available RAM. I have a MBP with i7 and 8gig of RAM
-
T410: How to dual boot Win 7 with Ubuntu?
I would like to keep my original win 7 config, but to add the option to dual boot into ubuntu 10.10 as my primary OS. Anyone had experience on how to go about doing this? Solved! Go to Solution.
-
GL Security in Discoverer.
Hi. I have some urgent issue for which i'm struggling since couple of days. We have a GL report in discoverer which has data coming from both GL Accounts and LD(Labour distribution) accounts. Now i need to provide a security so that the users should
-
How to link a marketing characteristic with a table? ( TR CL03 - CT04 - BP)
Hello, I'm trying to link a table (CRM_MKTPL_CAMPAIGN field : EXTERNAL_ID) with a mkt characteristic so that the user could select a value for this characteristic through a matchcode in transaction BP. I understood that i had to deassign the characte
-
External editing wants to open in CS6 by my trial has expired need to go back to CS5
It's going to be awhile before I can upgrade to CS6. My external editor in Lightroom wants to open in CS6 by my trial version has expired. How do I get lightroom to go back to CS5?