cancel
Showing results for 
Search instead for 
Did you mean: 

IBGI - How to specify billing type explicitly to create proforma invoice

masaki_nagano
Advisor
Advisor
0 Kudos
2,150

Hello colleagues,

What I want to do are listed below for outbound shipment to oversea customers (export).

Sales order(ERP) -> Outbound delivery(ERP) -> Outbound delivery order(EWM)

-> Pick/Pack/Stage/Load(EWM) -> Outbound delivery(EWM)

-> "Request Invoice"(EWM) -> Proforma invoice(F8)(ERP) -> Receive B/L from forwarder

-> G/I(EWM) -> G/I(ERP) -> Invoice(F2) with FI posting(A/R,Revenue)(ERP)

To achieve that, I configured IBGI (Invoice creation Before Goods Issue) and clicked "Request Invoice" button on outbound delivery/TU maintenance screen in EWM, but it created normal invoice (billing type F2) in ERP.

It seems billing type F2 is derived from configuration of sales order type (transaction VOV8).

I looked for EWM configuration to specify billing type F8 explicitly in IBGI interface, but I didn't find.

Please advice me if there is any solution (configuration or BADI).

Best regards,

Masaki Nagano / SAP Japan

Accepted Solutions (0)

Answers (4)

Answers (4)

masaki_nagano
Advisor
Advisor
0 Kudos

Hi Juergen,

I tried enhancement spot /SCWM/EW_SR_IBGI, but it can't fulfill my requirement because this BADI has changing parameter CT_ROUTE_IBGI only and then we can't influence billing type determination by this BADI.

I also share the program calling structures as below.

Click "Request Invoice and Save" in transaction /SCWM/FD -> method SEND_INVOICE_CREATE_MESSAGE of class /SCWM/CL_SR_IBGI is called -> fm /SCWM/SR_INVOICE_CREATE is called as background task -> fm /SPE/CREATE_NEW_BILLING_CALL is called -> fm RV_INVOICE_CREATE is called -> Billing document is created in ERP

RV_INVOICE_CREATE has importing parameter INVOICE_TYPE (billing type), but caller fm doesn't pass any value to this parameter (off course there is no BADI to change this coding), so I concluded that we can't control billing type from EWM as of now (OP 2020).

I hope SAP will provide new customizing parameter or BADI to be able to specify billing type from EWM.

masaki_nagano
Advisor
Advisor
0 Kudos

Hi Juergen,

Thank you for your advice !

I will try enhancement spot /SCWM/EW_SR_IBGI.

masaki_nagano
Advisor
Advisor
0 Kudos

Hi Juergen,

I tried enhancement spot /SCWM/EW_SR_IBGI, but it can't fulfill my requirement because this BADI has changing parameter CT_ROUTE_IBGI only and then we can't influence billing type determination by this BADI.

I also share the program calling structures as below.

Click "Request Invoice and Save" in transaction /SCWM/FD -> method SEND_INVOICE_CREATE_MESSAGE of class /SCWM/CL_SR_IBGI is called -> fm /SCWM/SR_INVOICE_CREATE is called as background task -> fm /SPE/CREATE_NEW_BILLING_CALL is called -> fm RV_INVOICE_CREATE is called -> Billing document is created in ERP

RV_INVOICE_CREATE has importing parameter INVOICE_TYPE (billing type), but caller fm doesn't pass any value to this parameter (off course there is no BADI to change this coding), so I concluded that we can't control billing type from EWM as of now (OP 2020).

I hope SAP will provide new customizing parameter or BADI to be able to specify billing type from EWM.

Lakshmipathi
Active Contributor
0 Kudos

When you create a discussion and start adding additional information as asked by the members, please add the same under Comments and not under Answer as you were not answering but sharing additional information. Also, when you add under comments, a mail will be triggered to who you respond.

JuergenPitz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I think this only works via a BAdI, there is one specifically for IBGI, /SCWM/EX_SR_IGBI of enhancement spot /SCWM/ES_SR_IBGI. The node documentation does not refer to a change like this, and as a non-developer, I have never worked out if this can be used for this requirement, but I have never found any other BAdI, and there is also no other setting for this available.

Brgds

Juergen

---

All the above is no official SAP statement.

Want to learn EWM?

Check for EWM courses: https://training.sap.com/trainingpath/Applications-Extended+Warehouse+Management-EWM+in+S4HANA

Get a SAP Learning Hub Subscription: https://training.sap.com/learninghub

And it is EWM. NOT eWM - Duh!

And if your question includes the word "transfer order" - do NOT tag the question with Extended Warehouse Management!

Lakshmipathi
Active Contributor
0 Kudos

Not sure what copy control you have in vtfl. Also, it is not clear whether you have different delivery types for export and domestic sales in which case, you can very well set f8 proforma to your export delivery type in vtfl. Also, in standard, system will allow you to create f2 only after goods issue is posted and in your case, if that is happening, then, routine 11 is set in copy control

masaki_nagano
Advisor
Advisor
0 Kudos

Hello Genesan,

Thank you for your answer.

We use standard sales order type OR and delivery type LF.

Copy routine 003 (Header/dlv.-related) is assigned to F2/LF combination in VTFL and normally billing document F2 can only be created after G/I posting as you mentioned.

But we use IBGI (Invoice Before Goods Issue) (SAP Help - IBGI) in EWM and in this case we can create billing document F2 before G/I posting. It may be done by IBGI specific coding of routine 003 (see attached PNG file).

copy-routine-003-in-vtfl.png

What I really want to know is how to specify billing type F8 in IBGI interface instead of F2 to create proforma invoice in advance.