We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] Not Creating Account Document

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from Juan_Tamad on Jul 18 at 6:17 AM
Why do you need the net value?

---------------Original Message---------------
From: sri_ponappalli
Sent: Wednesday, July 18, 2012 5:08 AM
Subject: Not Creating Account Document

Hi Experts,

I have created Billing using BAPI_BILLINGDOC_CREATEFROMDATA Bapi. but it is
not creating any account Document.

I found that the bapi is not picking the net value.

But there is no option to pass netvalue to bapi.

Please tell me the solution. Its urgent friends.

I giving my code.


MOVE: it_create-fkart TO t_billing_data_in-ordbilltyp ,
it_create-fkdat TO t_billing_data_in-bill_date ,
it_create-prsdt TO t_billing_data_in-price_date,
it_create-fbuda TO t_billing_data_in-serv_date .
READ TABLE it_vbak INTO wa_vbak WITH KEY vbeln = it_create-vbeln .
MOVE : wa_vbak-vkorg TO t_billing_data_in-salesorg ,
wa_vbak-vtweg TO t_billing_data_in-distr_chan,
wa_vbak-spart TO t_billing_data_in-division ,
wa_vbak-auart TO t_billing_data_in-doc_type,
wa_vbak-kunnr TO t_billing_data_in-sold_to,
wa_vbak-vbeln TO t_billing_data_in-ref_doc .

LOOP AT it_vbap INTO wa_vbap WHERE vbeln EQ wa_vbak-vbeln.

MOVE : wa_vbap-posnr TO t_billing_data_in-itm_number,
wa_vbap-werks TO t_billing_data_in-plant ,
wa_vbap-matnr TO t_billing_data_in-material ,
wa_vbap-zmeng TO t_billing_data_in-req_qty .

IF t_billing_data_in-bill_date IS INITIAL.
t_billing_data_in-bill_date = sy-datum.
ENDIF.
APPEND t_billing_data_in .
CLEAR wa_vbap .
ENDLOOP.

AT END OF vbeln.
REFRESH: t_condition_data_in, t_returnlog_out, t_ccard_data_in.
ENDAT.
ENDLOOP.
IF t_billing_data_in IS NOT INITIAL.
SORT t_billing_data_in[] .
ENDIF.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEFROMDATA'
TABLES
billing_data_in = t_billing_data_in
condition_data_in = t_condition_data_in
returnlog_out = t_returnlog_out
ccard_data_in = t_ccard_data_in.

Thanks in advance.
Sri.p

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Juan_Tamad  
ABAP Developer
achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language