PO created though BAPI 'BAPI_PO_CREATE1' not visible in WPOHF4D
Hi Experts,
As per the client requirement, I am using BAPI 'BAPI_PO_CREATE1' to create PO. My client is using retail transactions majorly and wants to see the created PO in tcode WPOHF4D. The PO created using this BAPI are visbible in Me22n, but not in WPOHF4D.
Can you please let me know what has to be done to see the generated POs in WPOHF4D?
Below is the part of code where I am filling the stuctures to be passed to BAPI:
*Filling header
lwa_poheader-SALES_PERS = lwa_datatab-ihrez.
lwa_poheader-doc_type = lwa_datatab-bsart.
lwa_poheader-doc_date = lwa_datatab-bedat.
lwa_poheader-comp_code = lwa_datatab-bukrs.
lwa_poheader-purch_org = lwa_datatab-ekorg.
lwa_poheader-pur_group = lwa_datatab-ekgrp.
lwa_poheader-vendor = lwa_datatab-lifnr.
lwa_poheader-currency = lwa_datatab-waers.
lwa_poheader-pmnttrms = lwa_datatab-zterm.
lwa_poheader-exch_rate = lwa_datatab-wkurs.
lwa_poheader-ex_rate_fx = lwa_datatab-kufix.
lwa_poheader-incoterms1 = lwa_datatab-inco1.
lwa_poheader-incoterms2 = lwa_datatab-inco2.
*Filling Purchase Order Header Data (Change Parameter)
lwa_poheaderx-SALES_PERS = v_true.
lwa_poheaderx-doc_type = v_true.
lwa_poheaderx-doc_date = v_true.
lwa_poheaderx-comp_code = v_true.
lwa_poheaderx-purch_org = v_true.
lwa_poheaderx-pur_group = v_true.
lwa_poheaderx-vendor = v_true.
lwa_poheaderx-currency = v_true.
lwa_poheaderx-pmnttrms = v_true.
lwa_poheaderx-exch_rate = v_true.
lwa_poheaderx-ex_rate_fx = v_true.
lwa_poheaderx-incoterms1 = v_true.
lwa_poheaderx-incoterms2 = v_true.
*Filling Item
lwa_poitem-po_item = lv_po_index.
lwa_poitem-material = lwa_datatab-matnr.
lwa_poitem-quantity = lwa_datatab-menge.
lwa_poitem-po_unit = lwa_datatab-meins.
lwa_poitem-net_price = lwa_datatab-netpr.
lwa_poitem-trackingno = lwa_datatab-bednr.
lwa_poitem-preq_name = lwa_datatab-afnam.
lwa_poitem-plant = lwa_datatab-werks.
lwa_poitem-tax_code = lwa_datatab-mwskz.
lwa_poitem-ret_item = lwa_datatab-ret_item.
lwa_poitem-po_price = '2'.
APPEND lwa_poitem TO lt_poitem.
*Filling Item Data (Change Parameter)
lwa_poitemx-po_item = lv_po_index.
lwa_poitemx-material = v_true.
lwa_poitemx-quantity = v_true.
lwa_poitemx-po_unit = v_true.
lwa_poitemx-net_price = v_true.
lwa_poitemx-trackingno = v_true.
lwa_poitemx-preq_name = v_true.
lwa_poitemx-plant = v_true.
lwa_poitemx-tax_code = v_true.
lwa_poitemx-ret_item = v_true.
lwa_poitemx-po_price = v_true.
APPEND lwa_poitemx TO lt_poitemx.
*Filling schedule line
lwa_poschedule-po_item = lv_po_index.
lwa_poschedule-delivery_date = lwa_datatab-eindt.
APPEND lwa_poschedule TO lt_poschedule.
*Filling Delivery Schedule (Change Parameter)
lwa_poschedulex-po_item = lv_po_index.
lwa_poschedulex-delivery_date = v_true.
APPEND lwa_poschedulex TO lt_poschedulex.
Filling Partner
IF lwa_datatab-lifn2 IS NOT INITIAL.
lwa_popartner-partnerdesc = v_partner_desc.
lwa_popartner-langu = 'EN'.
lwa_popartner-buspartno = lwa_datatab-lifn2.
APPEND lwa_popartner TO lt_popartner.
ENDIF.
Filling Conditions in Purchase Order
IF lwa_datatab-kbetr1 IS NOT INITIAL.
lwa_pocond-itm_number = lv_po_index.
lwa_pocond-cond_type = v_cond1_zvol.
lwa_pocond-cond_value = lwa_datatab-kbetr1.
lwa_pocond-currency = lwa_datatab-waers.
lwa_pocond-change_id = c_insert_flg.
APPEND lwa_pocond TO lt_pocond.
ENDIF.
IF lwa_datatab-kbetr2 IS NOT INITIAL.
lwa_pocond-itm_number = lv_po_index.
lwa_pocond-cond_type = v_cond2_zcdq.
lwa_pocond-cond_value = lwa_datatab-kbetr2.
lwa_pocond-currency = lwa_datatab-waers.
lwa_pocond-change_id = c_insert_flg.
APPEND lwa_pocond TO lt_pocond.
ENDIF.
Filling Conditions (Items, Change Parameter)
IF lwa_datatab-kbetr1 IS NOT INITIAL.
lwa_pocondx-itm_number = lv_po_index.
lwa_pocondx-cond_type = v_true.
lwa_pocondx-cond_value = v_true.
lwa_pocondx-currency = v_true.
lwa_pocondx-change_id = v_true.
APPEND lwa_pocondx TO lt_pocondx.
ENDIF.
IF lwa_datatab-kbetr2 IS NOT INITIAL.
lwa_pocondx-itm_number = lv_po_index.
lwa_pocondx-cond_type = v_true.
lwa_pocondx-cond_value = v_true.
lwa_pocondx-currency = v_true.
lwa_pocondx-change_id = v_true.
APPEND lwa_pocondx TO lt_pocondx.
ENDIF.
<removed by moderator>. Would really appreciate if someone helps.
Thanks,
Priyanka
Edited by: Thomas Zloch on Apr 1, 2011 2:16 PM - standard priority
hi Priyanka,
In the T-code WPOHF4D
the select query
SELECT ekkolifnr ekkoekorg ekgrp ekko~ebeln pohf_type
ekko~fixpo waers frgrl frgsx submi
ekkobsart ekkobstyp ekkobedat ekpowerks ekko~otb_status
netwr stapo menge ekpo~loekz "959448
APPENDING CORRESPONDING FIELDS OF TABLE lt_worklist_loop
FROM ekpo INNER JOIN ekko
ON ekkoebeln = ekpoebeln
WHERE ekko~ebeln IN it_ran_ebeln
AND ekgrp IN it_ran_ekgrp
AND ekko~ekorg IN it_ran_ekorg
AND ekko~bukrs IN it_ran_bukrs
AND matnr IN it_ran_matnr
AND ekpo~werks IN lt_ran_werks
AND ekko~lifnr IN it_ran_lifnr
AND bedat IN it_ran_bedat
AND ekko~fixpo IN it_ran_fixpo
AND pohf_type IN it_ran_pohf_type
AND bsart IN it_ran_bsart
AND submi IN it_ran_submi
AND ernam IN it_ran_uname
AND source_id IN it_ran_source_id
AND ekko~bstyp = c_po
AND ekko~bsakz <> c_bsakz_transfer.
is responsible for data fetching.
If u r not getting data and this query failing check it while debugging.
Thanks,
Gaurav.
Similar Messages
-
"Create Interactive Dashboard" button not visible
Hi,
For Administrator, under Manage Interactive Dashboards link, the "Create Interactive Dasboard" button is not visible. Where should it be configured.
Regards,
Sreekanth.Got it, i didnt create any shared folder!! :)
thanks,
Sreekanth. -
New fields created in MDM Console not visible on Portal iViews
Hi All
I would like to ask you. I recently encouraged very strange and annoying problem. We are developing Vendor repository. Menatime we have created some iViews and pages on the Portal. All of them are displayed from Main table. We can see all fields and added/deleted records.
However I can not add any new fields (from MDM Console main table) we have created. That is whired because I only can see all fields beeing in repository for long time now, but all new fields (from that same table) ar not visible on portal.
I tried few options with creating new and different iViews. No help. All the time I can vise old fields from repository but new one are not available.
Can you plase advice what is/ may be wrong?
Thank you in advance.
BR
RafalHi All
After restarting server problem solved. That mean there is a casching problem. After investigation here is service to restart:
J2EE engine
Thank you for help.
BR
Rafal
Edited by: Rafal Paczynski on Sep 29, 2011 12:21 PM -
Folder created in Windows Explorer not visible in Command Line as SYSTEM user
Hello everyone,
We have an odd behavior with an application installation, which I cannot make much sense of.
We are trying to deploy an application on Windows 8.1 Enterprise x64 which tries to access
C:\windows\system32\config\systemprofile\Desktop during installation.
This folder does not exist by default in a Windows 8.1 installation. Hence we am creating this folder using a VBS script manually. The VBS script also launches the application EXE. The setup itself runs under the SYSTEM account (in order to be deployed using
SCCM).
When the install script is launched, we can see in the Windows Explorer that the "Desktop" folder is created in the systemprofile directory. However, to the setup running under the system account, this folder is not visible.
I have verified this by running a command line prompt under the SYSTEM user and navigating to
C:\windows\system32\config\systemprofile\. Using the "dir" command does not show you a "Desktop" folder under the EXACT same path.
When we create the Desktop folder from this command prompt, the application installs just fine.
What are we missing? Any inputs are highly appreciated.Hi,
Might this need to quit the command prompt after the folder creation, then reload it to continue the installation of the software?
Best regards
Michael Shao
TechNet Community Support -
Order created but it is not visible.
Hi Experts,
I came across a problem in which a user has created an order but he is not able to see the order through CIC0 and rest of the users are able to see the order.
i want to know if it is an abap problem or it is related to BASIS or any solution for this.
Thanks
Trupti.
Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again.
Edited by: Thomas Zloch on Oct 27, 2010 2:48 PMHi de0021,
Could you tell me what’s the meaning of the excel file is not visible? If it was opened as shown in the following figure without spreadsheet? Or it is a normal spreadsheet just without contents in the cells. And did you get any pop up message bar from file
when you open it?
You said the same file with other user’s account worked fine.
I suggest to check if the permission of the user’s account on the network is different from other normal users’ accounts. If yes, try to modify this user’s permission and try again.
Or this issue might be caused by DDE in excel. If you use Excel 2010 you might get an error when opening Excel or double clicking an Excel file that says “There Was a Problem Sending the Command to the Program”. Check if the user checked the checkbox “Ignore
other applications that use Dynamic Data Exchange (DDE)”, as shown in the following figure.
If possible could you take a screenshot and upload it so that we can get more accurate solutions to this problem. I am glad to help and forward to your reply.
Hope it’s helpful.
Regards, -
Doc is created frm BAPI_DOCUMENT_CREATE2 but not visible in CV02N
Hi Everyone,
I have created document through BAPI_DOCUMENT_CREATE2 and given the input values as below
DOCUMENTDATA:
DOCUMENTTYPE- DES
DOCUMENTDESCRIPTIONS:
LANGUAGE - EN
DESCRIPTION - TESTING FROM BAPI
OBJECTLINKS:
OBJECTTYPE - MARA
OBJECTKEY - 1000 MILES
DOCUMENTFILE:
WSAPPLICATION - TXT
DOCPATH - C:\USERS\V-KISHRK\DESKTOP
DOCFILE - WSDL.TXT
when i executed the function it returns Document number and other details, but when i check in CV01N with that document number
it showing error like data is not exsists.
DOCPATH and DOCFILE are from my desktop(local mechine).
Please tell me what input values i need to give.
Thanks,
KishoreYes,
COMMIT WORK is important.
But the path should end with "\"
Are you using parameter pf_ftp_dest ?
When working from local machine it should be: 'SAPFTP'
When the application server shoul pull the document apply 'SAPFTPA' and place original in a share the application server can reach.
Regards
Daniel K. -
New folder created in Windows explorer not visible in Bridge.
If I create a new folder in My Pictures
folder using Windows Explorer, it doesn't show up in Bridge
. I do it that way because selecting
Get Photos from Camera doesn't allow me to select only the photos I want from the card. Why does Bridge not show all folders in My Pictures. I have Windows 7 Home Premium 64 bit. This message is formatting rather strangely.
Thank youLibraries rely on a good bit of "magic" that has been added to Explorer.
My advice: Avoid them like the plague. They do nothing you can't do by organizing your folders yourself, but they cause a host of problems. I've disabled them in my system and in a year I haven't missed them one bit. I'm all the happier for it.
Windows 7 is a great system, but one of its weak points is [some parts of] Windows Explorer. I think the same people programmed Explorer as made those awful commercials.
-Noel -
Newly created item through personalization not visible
Hi All,
I have added on new item , in a page,
Howerver when I clicked apply on that item , once I define the required properties of the item.
I am getting this error
"Attachment item "%ITEM" has been created successfully, however, it does not have an Entity Map associated with it. To avoid a runtime error, please either create an Entity Map for this attachment item, or delete attachment item "%ITEM"."
I am not able to locate that item , anywhere * either in personalzied page nor in application pageI have gone to personalize page -> selected LOVRN -> create item ->
level - Site
Item Type - MessageLOVInput
Prompt - some custom prompt
Id - some custom id
External LOV- given exisitng seeded path for LOV with region name in the last
apply .
Then the error appeared as
Attachment item "%ITEM" has been created successfully, however, it does not have an Entity Map associated with it. To avoid a runtime error, please either create an Entity Map for this attachment item, or delete attachment item "%ITEM". appeared
After the above steps complete. I have again gone to personalization ->complete view . But I am not able to locate the item created in above mentioned steps.
One thing to note, I have tried creating new item , however everytime I am getting the above error after clicking on apply. In one occasion I have given incomplete path in the external LOV field mentioned above.(i.e. I forgot to mention the region Name )
Please help.... -
Sh.Cart created from PR - but not visible in SOCO(MaterialsHas MRPview)
Hi,
We are in SRM 7.0 Classic scenario - EhP4 - Using ECC-PI-SRM route to transfer docs.
When a PR is created with materials which has MRP1 view with MRP Type value 'ND - no mrp' .... transfered to central system - Shopping cart is getting created. Issue is : this Shopping cart is not displayed in Assign sources of Supply(SOCO) screen.
Shopping carts with PR's containing materials without MRP view are displayed in Assign Sources of supply(SOCO) screen.
We are creating RFx from Assign sources of supply screen by selecting the Shopping carts .
Pls suggest as how to make the "Shopping carts from PRs having materials with MRP view" available in SOCO.
Thanks,
Ashwin.This is little work around FM BBP_PDH_DB_DIRECT_UPDATE By using this FM you can can forcely send them to cockpit. but SAP has to do automatically .
Create ONE oss message under SRM-EBP-EXR
It may not happen due to your master data as you expected. let us wait for SAP reply ..
Question:
Why has my shopping cart not come to the Sourcing Cockpit ?
Answer:
Whether or not a shopping cart/external requirement goes to the Sourcing cockpit depends on the customizing SPRO settings for Define Product Categories for Sourcing (see attachment).
Here there are the following options:
Sourcing Always carried out
Sourcing Never carried out
Sourcing carried out for items withour Assd Source of supply
Aut. creation of Bid Inv for items w/o source of supply
Aut. Grouping. Sourcing for items withour source
Aut. Grouping, sourcing is never carried out
Aut. Grouping, and creation of Bid Inv w/o source
The technical field to check is : BBP_PDIGP-SOURCE_REL_IND -
Hello All,
I have WAS with ABAP + JAVA [EP7], Hence using <b> dataSourceConfiguration_abap.xml</b>. as a datasource file in UME.
As per my knowledge i cant create users from Portal hence I have created users in ABAP Stack but I am not able to view these users from Portal ?
I have chaecked the entry in Configtool this file is maintained as Datasource.
Please Guide me what may be the reson for this ??
Is it possible to add Users from portal if Datasource is ABAP Stack ??
Waiting for reply!
Thanks,
Smita.Hi Smita,
Please go through these links:
UME configured to use SAP ABAP
For the configuration using config tool : http://help.sap.com/saphelp_nw04/helpdata/en/49/9dd53f779c4e21e10000000a1550b0/frameset.htm for general remarks using this config and see http://help.sap.com/saphelp_nw04/helpdata/en/0f/bdd93f130f9115e10000000a155106/frameset.htm for changing the config.
Check out the section "Read-Only and Read-Write Access to the ABAP User Management.
This link would also be useful. This link talks about <b>User Management of Application Server ABAP as Data Source</b> : http://help.sap.com/saphelp_nw2004s/helpdata/en/49/9dd53f779c4e21e10000000a1550b0/frameset.htm
Hope this helps.
Regards,
Sunil -
Image is not visible in Smartforms
Hi Experts,
When uploaded color image & added in smartforms, unable to view it in preview.
While uploading I hv given type as Color Bitmap image, even though it is not visible.
Thanks
KavithaHi kavitha,
Delete the graphic node and create the graphic node again save and activate.
Regards,
Sravanthi -
Hi,
I am adding canvas to a custom actionscript component which extends UIComponent.
The canvas is created but it is not visible.The depth of the canvas is also shown.How to get it visible.
Any help is appreciated.
Thanks
SrinivasCanvas problem is in RUNTIME. Not development.
Frame prop has been changed to "Manually".
Thanks,
nicholas -
While creating PO using BAPI_PO_CREATE1 vendor batch number is not comming.
Hi Friends,
I am using BAPI " 'BAPI_PO_CREATE1' to create PO in my report.
The PO's are getting created but i the vendor batch number is not found in the PO.
Where as i am passing the vendor batch number.
bapimepoitem-vendrbatch = '2'.
bapimepoitemx-vendrbatch = 'X'.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = bapimepoheader
poheaderx = bapimepoheaderx
memory_uncomplete = 'X'
IMPORTING
exppurchaseorder = v_po_number
TABLES
return = bapiret2
poitem = bapimepoitem
poitemx = bapimepoitemx
poschedule = bapimeposchedule
poschedulex = bapimeposchedulx.
Commit the transaction
IF v_po_number NE space.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = bapiret2_c.
ENDIF.
Please reply urgently.
Thanks Regards,
Sandipan JenaHi
My answer is pure assumption.
Please check the following OSS notes
Note 758810 - BAPI_PO_CHANGE vendor batch and batch not visible
Note 1230268 - Field Vendor Batch never filled for PO BAPIs
Please take help from BASIS and SAP, before implementing the OSS note
Regards
Madhan D -
Salesorder created using BAPI_SALESORDER_CREATEFROMDAT2 not visible in VBAK
Hi Experts,
I created sales order using BAPI_SALESORDER_CREATEFROMDAT2, further salesorder ID was also indicated after creation.
But the same order ID is not visible in SD standard table VBAK.
Pls guide me to a valid standard CREATE BAPI for Sales order.
Regards,
Romi MalikHi Romi,
If you created a document through BAPI and it does not appear in the database afterwards, the logical conclusion is that ...
No it wasn't really created
With BAPIs for sales order data loading, there is no automatic COMMIT! (check SAP notes).
You need to add the call to BAPI BAPI_TRANSACTION_COMMIT to save to DB.
Regards,
Franck -
BAPI BAPI_PO_CREATE1 is not able to hold PO's
Hi All,
We have a requirement where-in the PR's for a same vendor needs to be converted to a single PO.
Say a PR has 10 line items, then a single PO should be created.
We used BAPI BAPI_PO_CREATE1 to create PO's. But, even if a single line item is faulty, the PR is not at all converted to PO.
Now the requirement is to omit the faulty line item and thus create a PO for the remaining 9 line items of the PR.
I used the variable MEMORY_UNCOMPLETE of BAPI_PO_CREATE1 interface to achieve this functionality.
But I am not able to get this.
Please suggest if anyone has worked on the similar requirements.
Thanks,
RaviHi all ,
I have used two parameters to hole PO :
check bellow code :
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = ls_po_header
poheaderx = ls_po_headerx
MEMORY_UNCOMPLETE = 'X' "held if faulty
MEMORY_COMPLETE = 'X' "held even no faulty
IMPORTING
Thanks,
reza rostami / saphiran.com Abap team .
Maybe you are looking for
-
Approval Status continues being APPROVED CCM 2.0
If we approve an item in the Procurement Catalog and then we change a characteristic using one of these following methods the status of the item continues being approved: 1. we manually change some characteristic (required or not) in the Procurement
-
Hi, I'm trying to export my reports to pdf using Java Servlets and Crystals is throwing the following error message: com.crystaldecisions.report.web.viewer.ReportExportControl com.crystaldecisions.reports.a.a.(Ljava/util/Properties;)V I really have n
-
Two ActionListeners problem.
I have this code and it's not working, and I'm sure that I did something wrong but I don't know what, and I don't know what to do The program has two buttons and a textfield. When I push the first button, it beeps, and when I push the second one it c
-
Can't get my emails or internet to download to my HP Office Jet
I can print to my hp 6110xi, but I cannot print emails or internet files. I think I set up something wrong. And why can't I ever get anyone at 1800 APPLE CARE to answer the phone? I need someone to go over all of my set up stuff while the computer is
-
Hello: everyone: Normally, when a JTextArea get focus, and if you enter character from keyboard,the characters will be displayed in JTextArea and inserted into document(Model). Is there a way not to insert entered characters into document(model) and