PO created successfully using BAPI. But G/L, Cost Center are not displaying
Hi,
I am trying to create a purchase Order type limit order using BAPI_PO_CREATE1. PO created successfully. when I try to see the PO using ME23N transaction,in the account assignment tab G/L and cost center are blank. In my BAPI, I am populating all the values in item and account internal tables.
I am debugging all the time and not able to find why G/L and Cost center are not poplulating in PO.
Pls suggest me how to finish this problem.
Thankm,
Ram
Hi,
Are you passing the update flag in POACCOUNTX table?
regards,
Ankur Parab
Similar Messages
-
I have set up my iPhone to wifi sync with iTunes on my Mac Air, but my iPhone's contacts are not displaying in Contacts on my Mac...any ideas?
Hi there kushfromgbr,
You may find the information in the article below helpful.
About SyncServices
http://support.apple.com/kb/HT5847
OS X Mavericks
OS X Mavericks v10.9 and later do not use SyncServices. Instead, Mavericks supports sharing your information using several network-based and cloud-based solutions. If you want to sync your information across multiple devices and computers, you should use one or more of these methods. These include iCloud, CardDAV servers, CalDAV servers, and servers that utilize the Exchange ActiveSync protocol.
If you would like more information about setting up iCloud on your devices you can take a look at the article below.
iCloud: Set up iCloud on your devices
http://support.apple.com/kb/PH2609
-Griff W. -
Mouse is very laggy while using trackpad, but click and right click are not
This problem started yesterday. While using the trackpad, the mouse became very laggy. I stopped to see if a few minutes would help fix the problem, but the mouse kept moving sporadically. I can click and right click fine and with no lag, but the mouse is either non responsive or extremely laggy. The problem was infrequent at first, but now it is almost constantly there. I'm using a MacBook Pro with Mac OSX version 10.5.8.
Use the Toshiba application installer to reinstall the Touchpad driver.
To find it search your laptop for Toshiba application installer and run it is will download and install all your drivers.
S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!**** -
ERROR IN CREATING PO USING BAPI
Hi friends,
My requirement is to create po using BAPI but i am getting error message .i have entered all the fields but still i am getting This errors.
E BAPI 001 No instance of object type Purchase Order has been created. External reference:
E MEPO 000 Purchase order still contains faulty items
E ME 645 Subcontracting as stock transfer within a company code not possible
I ME 123 Supplying and receiving plants identical (Please check)
please help.
thanks in advance.
Moderator message: please read message long texts, speak to a functional expert (these are not ABAP related errors), do more research before asking, do not use all capitals in the title.
Edited by: Thomas Zloch on Nov 30, 2011 1:06 PMHi
It seems you're creating a transfer order and an item is set for subcontracting, that's not possible, so check the item type
Max -
Create material using bapi ' bapi_material_savedata'
Hi Experts,
i was tring to create material using bapi ' bapi_material_savedata' but the material is not updating in the table.
please find the code and suggest me if any modification
data: la_headdata type BAPIMATHEAD,
la_clientdata type BAPI_MARA,
la_CLIENTDATAX type BAPI_MARAX,
la_return type BAPIRET2.
data: i_materialdescription type table of BAPI_MAKT,
wa_materialdescription like line of i_materialdescription.
*la_headdata-MATERIAL = int_matnum-MATERIAL.
*LOOP AT int_matnum.
la_headdata-MATERIAL = int_matnum-MATERIAL.
write : int_matnum-material.
*ENDLOOP.
la_headdata-MATERIAL = '100000518'."int_matnum-MATERIAL.
la_headdata-IND_SECTOR = p_indsr.
la_headdata-MATL_TYPE = p_matype.
la_clientdata-BASE_UOM = 'FT3'.
la_clientdata-pur_valkey = ' '.
la_CLIENTDATAX-BASE_UOM = 'X'.
la_clientdata-MATL_GROUP = '01'.
la_CLIENTDATAX-MATL_GROUP = 'X'.
wa_materialdescription = 'TEST'.
append wa_materialdescription to i_materialdescription.
clear: wa_materialdescription.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = la_headdata
CLIENTDATA = la_clientdata
CLIENTDATAX = la_CLIENTDATAX
PLANTDATA =
PLANTDATAX =
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA =
VALUATIONDATAX =
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA =
SALESDATAX =
STORAGETYPEDATA =
STORAGETYPEDATAX =
FLAG_ONLINE = ' '
FLAG_CAD_CALL = ' '
IMPORTING
RETURN = la_return
TABLES
MATERIALDESCRIPTION = i_materialdescription
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
Please Help me
Regards,
NareshHi all,
Now it is asking me for the other fields,
E ,
The field MARA-XCHPF/BAPI_MARA-BATCH_MGMT is defined as a required field; it does not contain an entry
i have passed this val as
la_clientdata-batch_mgmt = 'X'.
even though i am getting the same error.
can you help me to solve the issue.
Tthanks
Naresh
Edited by: naresh.k.dasari on Jan 4, 2011 10:36 AM -
Hi,
I am trying to create PDF using BAPI. I got one BAPI(Z_MM_EPSP_BAPI_GET_PO_PDF). That bapi returns bytecodes. How can I generate PDF file using this BAPI output in BLS. Give some example
Thanks & Regards
ArtArt,
Are you familiar with xMII at all? I would like to answer your question but it seems more like a tutoring lesson rather than a technical problem.
Please post a problem and not how somone can help you do your work. Unless of course you are willing to paypal some money over. :-D -
Account assignment while creating reservation using bapi
Hi , I am creating reservation using BAPI (BAPI_RESERVATION_CREATE1), but when I seeing the open reservation account assignment field is blank, could any on ehelp me on this, i.e what parameter I am missing in BAPI for account assignment.
best regards
pankajHi,
there is not field to assign the account assignment in Bapi..
you need to assignt he account manaually.
Assign account assignment category.
SELECT * FROM eban INTO TABLE lt_eban WHERE banfn = w_banfn .
IF sy-subrc = 0.
LOOP AT lt_eban .
lt_eban-knttp = 'J'. "assign your own account categeory
MODIFY eban FROM lt_eban.
COMMIT WORK AND WAIT.
ENDLOOP.
endif.
Regards,
Prabhudas -
i hve written foll code to crate PO using BAPI. but i get a runtime error:
"Type conflict when calling a function module (field length)."
the code is as follows:
REPORT z_h_d_bapi_1 .
DATA : bapiekko like bapiekko,
po_header LIKE bapiekko OCCURS 0 WITH HEADER LINE,
po_items LIKE bapiekpo OCCURS 0 WITH HEADER LINE,
po_item_schedules like bapieket occurs 0 with header line,
return LIKE bapireturn OCCURS 0 WITH HEADER LINE.
*POPULATE HEADER DATA FOR PO
CLEAR po_header.
REFRESH po_header.
po_header-po_number = '4500000000' .
po_header-created_on = '06/05/2006' .
po_header-purch_org = '1000' .
po_header-pur_group = '026' .
po_header-vendor = '420' .
po_header-sales_pers = 'Mr. rahul' .
APPEND po_header.
*POPULATE ITEM DATA.
CLEAR po_items.
REFRESH po_items.
po_items-po_item = '00030'.
po_items-material = 'T-M15D06'.
po_items-plant = '1000'.
po_items-store_loc = '0001'.
po_items-quantity = '1000'.
po_items-unit = '10'.
po_items-net_price = '1000000'.
po_items-price_unit = '67000'.
APPEND po_items.
*POPULATE SCHEDULES DATA
clear po_item_schedules.
refresh po_item_schedules.
po_item_schedules-po_item = '00030'.
po_item_schedules-deliv_date = sy-datum.
po_item_schedules-quantity = '1000'.
append po_item_schedules.
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = bapiekko
PO_HEADER_ADD_DATA = po_header
HEADER_ADD_DATA_RELEVANT = '1'
PO_ADDRESS =
SKIP_ITEMS_WITH_ERROR = 'X'
ITEM_ADD_DATA_RELEVANT = '1'
HEADER_TECH_FIELDS =
IMPORTING
PURCHASEORDER =
tables
po_items = po_items
PO_ITEM_ADD_DATA =
po_item_schedules = po_item_schedules
PO_ITEM_ACCOUNT_ASSIGNMENT =
PO_ITEM_TEXT =
RETURN = return
PO_LIMITS =
PO_CONTRACT_LIMITS =
PO_SERVICES =
PO_SRV_ACCASS_VALUES =
PO_SERVICES_TEXT =
PO_BUSINESS_PARTNER =
EXTENSIONIN =
POADDRDELIVERY =
LOOP AT return.
WRITE / return-message.
ENDLOOP.Hiral,
Check the below code for creating PO using the BAPI BAPI_PO_CREARE.
Check u have used conversion input (CONVERSION_EXIT_ALPHA_INPUT) for the vendor. Also check in table <b>lfa1</b> that the given vendor is present or not.
*& Report YPRA_SAMPLE08 *
REPORT ypra_sample08.
Create Service PO
DATA: wa_po_header TYPE bapiekkoc,
wa_po_add_header TYPE bapiekkoa,
ws_po_number TYPE bapiekkoc-po_number,
ws_po_number1 TYPE bapimepoheader-po_number,
ws_pack_no TYPE packno,
i_poitems TYPE bapiekpoc OCCURS 0 WITH HEADER LINE,
i_poitems_sch TYPE bapieket OCCURS 0 WITH HEADER LINE,
i_acct_*** TYPE bapiekkn OCCURS 0 WITH HEADER LINE,
i_return TYPE bapireturn OCCURS 0 WITH HEADER LINE,
i_return1 TYPE bapiret2 OCCURS 0 WITH HEADER LINE,bapiret2,
i_services TYPE bapiesllc OCCURS 0 WITH HEADER LINE,
bapi_esll TYPE bapiesllc OCCURS 0 WITH HEADER LINE,
i_srv_accass TYPE bapiesklc OCCURS 0 WITH HEADER LINE,
i_po_limits TYPE bapiesuhc OCCURS 0 WITH HEADER LINE,
i_po_contract_limits TYPE bapiesucc OCCURS 0 WITH HEADER LINE.
DATA: serial_no LIKE bapiesknc-serial_no,
line_no LIKE bapiesllc-line_no,
pack_no LIKE bapiesllc-line_no.
wa_po_header-doc_date = sy-datum.
wa_po_header-doc_type = 'ZES3'.
wa_po_header-co_code = 'SP01'.
wa_po_header-purch_org = 'SP01'.
wa_po_header-pur_group = 'ES1'.
wa_po_header-vendor = '0001000025'.
wa_po_header-created_by = sy-uname.
wa_po_header-langu = sy-langu.
i_poitems-po_item = 10.
i_poitems-item_cat = '9'.
i_poitems-acctasscat = 'K'.
i_poitems-plant = 'SP01'.
i_poitems-short_text = '007002046'.
i_poitems-disp_quan = '1'.
*i_poitems-mat_grp = 'ZES1'.
*i_poitems-pckg_no = '0000000265'.
*i_poitems-line_no = 1.
i_poitems-pckg_no = 10.
APPEND i_poitems.
i_poitems_sch-po_item = 10.
i_poitems_sch-deliv_date = sy-datum.
APPEND i_poitems_sch.
i_acct_***-po_item = 10.
i_acct_***-serial_no = 01.
*i_acct_***-g_l_acct = '0007910100'.
i_acct_***-co_area = '1000'.
i_acct_***-cost_ctr = '0000012000'.
APPEND i_acct_***.
i_acct_***-po_item = 10.
i_acct_***-serial_no = 02.
i_acct_***-co_area = '1000'.
i_acct_***-cost_ctr = '0000012000'.
APPEND i_acct_***.
i_acct_***-po_item = 10.
i_acct_***-serial_no = 03.
i_acct_***-co_area = '1000'.
i_acct_***-cost_ctr = '0000012000'.
APPEND i_acct_***.
*i_acct_***-po_item = 10.
*i_acct_***-serial_no = 04.
*i_acct_***-co_area = '1000'.
*i_acct_***-cost_ctr = '0000012000'.
*APPEND i_acct_***.
bapi_esll-pckg_no = 10.
bapi_esll-line_no = 1.
bapi_esll-outl_no = '0'.
bapi_esll-outl_ind = 'X'.
bapi_esll-subpckg_no = 20.
bapi_esll-from_line = 1.
bapi_esll-to_line = 3.
APPEND bapi_esll.
bapi_esll-pckg_no = 20.
bapi_esll-line_no = 2.
bapi_esll-service = '000000000003000018'.
bapi_esll-quantity = '317946.000'.
bapi_esll-gr_price = '21111.0000'.
bapi_esll-price_unit = '10000'.
APPEND bapi_esll.
*bapi_esll-pckg_no = 30.
*bapi_esll-line_no = 1.
*bapi_esll-outl_no = '0'.
*bapi_esll-outl_ind = 'X'.
*bapi_esll-subpckg_no = 40.
*APPEND bapi_esll.
bapi_esll-pckg_no = 20.
bapi_esll-line_no = 3.
bapi_esll-service = '000000000003000017'.
bapi_esll-quantity = '317946.000'.
bapi_esll-gr_price = '21111.0000'.
bapi_esll-price_unit = '10000'.
APPEND bapi_esll.
i_srv_accass-pckg_no = 10.
i_srv_accass-line_no = 1.
i_srv_accass-serno_line = 01.
i_srv_accass-serial_no = 01.
i_srv_accass-percentage = 100.
APPEND i_srv_accass.
i_srv_accass-pckg_no = 20.
i_srv_accass-line_no = 2.
i_srv_accass-serno_line = 02.
i_srv_accass-serial_no = 02.
i_srv_accass-percentage = 100.
i_srv_accass-quantity = '1'.
APPEND i_srv_accass.
i_srv_accass-pckg_no = 20.
i_srv_accass-line_no = 3.
i_srv_accass-serno_line = 03.
i_srv_accass-serial_no = 03.
i_srv_accass-percentage = 100.
i_srv_accass-quantity = '1'.
APPEND i_srv_accass.
*i_srv_accass-pckg_no = 40.
*i_srv_accass-line_no = 3.
*i_srv_accass-serno_line = 03.
*i_srv_accass-serial_no = 03.
*i_srv_accass-percentage = 100.
*i_srv_accass-quantity = '1'.
*APPEND i_srv_accass.
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = wa_po_header
po_header_add_data = wa_po_add_header
HEADER_ADD_DATA_RELEVANT =
PO_ADDRESS =
skip_items_with_error = 'X'
ITEM_ADD_DATA_RELEVANT =
HEADER_TECH_FIELDS =
IMPORTING
purchaseorder = ws_po_number
TABLES
po_items = i_poitems
PO_ITEM_ADD_DATA =
po_item_schedules = i_poitems_sch
po_item_account_assignment = i_acct_***
PO_ITEM_TEXT =
return = i_return
po_limits = i_po_limits
po_contract_limits = i_po_contract_limits
po_services = bapi_esll
po_srv_accass_values = i_srv_accass
PO_SERVICES_TEXT =
PO_BUSINESS_PARTNER =
EXTENSIONIN =
POADDRDELIVERY =
IF NOT ws_po_number IS INITIAL.
ws_po_number1 = ws_po_number.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = '2'.
WRITE: / ws_po_number.
ENDIF.
break gbpra8.
LOOP AT i_return.
ENDLOOP.
Regards,
Prakash. -
How to create invoice using bapi base on delivery number with example
hi,
Pl give me one example to create invoice using bapi base on delivery number (PGI).Use this code
* Pass the delivery no to the FM to create the invoice
wa_vbsk-smart = u2018Fu2019.
wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
APPEND wa_komfk TO it_komfk.
CLEAR wa_komfk.
* To fill the message structure
* l_wa_error-vbeln_vl = nast-objky. " Delivery No.
* l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
* delivery_date = 0
invoice_date = v_date u201C<- date
* invoice_type = ' '
* pricing_date = 0
vbsk_i = wa_vbsk
with_posting = u2018Du2019
* select_date = 0
i_no_vblog = ' '
i_analyze_mode = ' '
id_utasy = ' '
id_utswl = ' '
id_utsnl = ' '
id_no_enqueue = ' '
id_new_cancellation = ' '
** IMPORTING
* VBSK_E =
* OD_BAD_DATA =
* DET_REBATE =
TABLES
xkomfk = it_komfk
xkomv = it_komv
xthead = it_thead
xvbfs = it_vbfs
xvbpa = it_vbpa
xvbrk = it_xvbrk
xvbrp = it_vbrp
xvbss = it_vbss
* XKOMFKGN =
* XKOMFKKO = -
Need code for sales order create report using bapi's
need code for sales order create report using bapi's
Hi,
Go through below link
http://www.saptechies.com/bapi_salesorder_createfromdat2/
<b>Reward points if it helps,</b>
Satish -
Problem while creating assets using BAPI
Use table enhancement BAPI_TE_ANLU
Diagnosis :The BAPIs for creating and changing assets currently support only those customer enhancements that relate to the user fields created using SAP enhancement AIST0002.
Can anybody give the appropriate solution why this error is coming while creating assets using BAPI.Looks like you are trying to transfer custom fields into the asset master data that were not added following the steps in enhancement AIST0002.
Using EXTENSIONIN parameter, you can transfer user fields from the asset master record. However, it is not possible to transfer fields that are updated in user-defined tables. Only user fields that were defined using SAP enhancement AIST0002 and are automatically updated in table ANLU can be udpated in this way. This means you have to use table extension BAPI_TE_ANLU.
Enhancement AIST0002 contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
The documentation ( BAPIPAREX) of the structure that forms the basis for this parameter contains additional information about using this parameter.
Please check how table ANLU has been enhanced and also go through the documentation of enhancement AIST0002.
Regards,
Shyam -
I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all. Obviously some setting has changed but I can't find which one.
I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all. Obviously some setting has changed but I can't find which one.
-
SRM is a procurement system from SAP which we use to purchase goods and service. We have external catalogs like officemax, cdw etc which we punchout the items and bring it to SRM for ordering.
When we use firefox version 3.5 and below the items which we add from the Catalogs are correctly brought back to SRM for us to order. But when we use versions 3.6.12 the items are not brought back to SRM.
Internet Explorer 7 and 8 works fine. Is there anyway you can help us.
Thanks
JayantHi,
Firstly I would suggest you to upgrade your database from Oracle Release 11.2.0.1.0 to Oracle Release 11.2.0.2 . This is the recommended Oracle 11g database version for SAP solutions. Many of your problem will get resolved with it.
Question 1:
So my first question would be is there any other suggestions besides adjusting the mentioned parameter above in order to ensure that no work processors going into hang state due to RFCs' occupying it as this issue always happens at the end of the month only when there are massive users accessing it.
For immediate resolution the approach you have followed is correct viz limiting number of dialog processes for RFC. Secondly you need to analyze why RFC processing takes so much time. You need check which programs are getting executed by those RFC.
Generate EarlyWatch report for more detailed view
Question 2:
My second question is what went wrong with the libttsh11.so file. How could it be 0 size in PRD when no signs of changes had happen to the PRD system. Is this a proven Oracle Bug or something else since I have never encountered anything like this before.
The libttsh11.so library cannot be found in the related directory.
Cause
The file system is mounted using CIO option, but per Note 257338.1 Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L, an ORACLE_HOME on a filesystem mounted with "cio" option is not supported.
Such a configuration will cause, installation, relinking and other unexpected problems.
Solution
Disable the CIO option on the filesystem.
References
NOTE:257338.1 - Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L
Hope this helps.
Regards,
Deepak Kori -
how do i get my photos back on usb after editing. i used export but after checking my photos were not back on usb?
You're really going to need to explain that. What's "USB"? Do you mean a Disk, Drive or volume connected by USB? How is your iphoto set up? What version are you using?
Regards
TD -
this is bullshite again, i just updated the phone my partner gave me and now is locked and he doesn't remember ever using icloud and all my icloud accounts are not working, *** what's this now Apple ? good idea to secure us but seriously many will have t
If your device is disabled...
Connect to your computer in recovery mode per the instructions in http://support.apple.com/kb/HT1212
You may need to do this more than once.
Maybe you are looking for
-
Derivation Of partner profit center in COPA (Direct Posting from FI)
When posting from SD partner profit center is derived and transfered to COPA, so eliminations can take place. When ever we made posting from SD, Partner profit center is coming from derivation rule which is exclusively for sales and maintained in tra
-
How dowloand a file from spool ?
Hi expert, I have some file in the spool, I would download the file from spool and store it in local.. how can I do it ? some function or transaction ? tks, bye.
-
Dreamweaver Developer Toolbox - Show border on empty cell using Horizontal Looper Wizzard
Hello, I just applied a horizontal looper, 3 columns, unlimited rows. Works nice. One question however. On the last row, my recordset does not have data for 3 columns, thus, the 2 cells on the right is empty, as it should be. But my table has a borde
-
Why can't I use remote router's name for CHAP authentication - ISDN
Hello there, I've got a problem: we have sent ISDN router to client, but now it looks like we can't connect to it, it says : 18w3d: %ISDN-6-CONNECT: Interface BRI0:1 is now connected to 0555555555 *Jul 7 07:55:13.735: BR0:1 PPP: Treating connection a
-
Tab-highlighting duirng the inital Load of the application
Hi All, Currently I m developing a Flex application where in the home page,set of seven tabs are there as per the design. Whenever i click the tab, I have changed the style of the text to bold..to make it look like highlited.But this works fine excep