Create an inward delivery order Bbp_inb_delivery_create

Source: Internet
Author: User

DATA:D El_headerTYPEBbp_inbd_l.
DATA:D El_tabTYPETABLE ofBbp_inbd_d withHEADER Line.
DATA:D El_retTYPETABLE ofBapireturn withHEADER Line.
DATA:D El_no likeLikp-vbeln.

LOOP atINPUT.
MOVE-correspondingINPUT toOUTPUT.

CLEARDel_header.
Del_header-deliv_date =INPUT-eindt.
Del_header-deliv_ext ="'.


CLEARDel_tab.
REFRESHDel_tab.

Del_tab-deliv_qty =INPUT-lfimg.
SELECT Single
Meins
intodel_tab-UNIT
fromEkpo
WHEREEbeln =INPUT-ebeln
andEbelp =INPUT-ebelp.

Del_tab-po_number =INPUT-ebeln.
Del_tab-po_item =INPUT-ebelp.

APPENDDel_tab.
CLEARDel_tab.

PagerFUNCTION' Bbp_inb_delivery_create '
Exporting
Is_inb_delivery_header = Del_header
Importing
Ef_delivery = Del_no
TABLES
It_inb_delivery_detail = Del_tab
RETURN= Del_ret.


IFSY-SUBRC =0.
OUTPUT-vbeln = Del_no.
OUTPUT-flag =' S '.
OUTPUT-MESSAGE=' Create inner item delivery success! '.
ELSE.
OUTPUT-flag =' E '.
OUTPUT-MESSAGE=' Create internal item delivery failed '.

ENDIF.
APPENDOUTPUT.
CLEAROUTPUT.

Endloop.

Create an inward delivery order Bbp_inb_delivery_create

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.