BAPI to create case ID for a patient ID
Hello everyone
I have to generate case ID of a patient using patient ID as is done in NV2001.
Can anyone tell me the procedure to to do so or any BAPI for this.
I have tried using BAPI_CASE_CREATE & BAPI_PATCASE_ADDOUTPATVISITCAS.
But the bapis are unable to create Case ID.Pls Help.
Thank You in advance.
Regards.
Abhinandan Kumar
Hi friends
I finally got the solution to generate caseID,
While Using this BAPI:-BAPI_PATCASE_ADDOUTPATVISITCAS we have to keep in mind aout the movement date and outpatient status.
Otherwise it will not generate the CASEID.
Feel free to ask anything if anyone have problem in patient case ID generation.
Similar Messages
-
FM or BAPI to create 1001 IT for Central Person
Hi Friends
I need FM or BAPI to create 1001 relationship for OTYPE CP ' Central Person ' .
FM HR_CENTRALPERSON_INSERT is there to create IT 1000 for CP i need for 1001 IT
anybody pls guide me.
Regards
MeetaHi
Thanks for your response
i have to create CP for B209 relations type ( subtype )
but prog giving me error ( Relationship CP B 209 P cannot be maintained using basic trainsaciton )
CALL FUNCTION 'RH_RELATION_MAINTAIN'
EXPORTING
ACT_FCODE = 'INSE'
ACT_PLVAR = '01'
ACT_OTYPE = 'CP'
ACT_OBJID = '01119840'
ACT_ISTAT = '1'
ACT_RSIGN = 'B'
ACT_RELAT = '209'
ACT_SCLAS = 'P'
ACT_SOBID = '01119840'
ACT_BEGDA = SY-DATUM
ACT_ENDDA = '99991231'
ACT_PRIOX =
ACT_PROZT =
REL_ENDDA =
EXCEPTIONS
MAINTAINANCE_FAILED = 1.
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Meeta -
Which BAPI can Create handling Unit for VL02N.
Dear All,
Which BAPI can Create handling Unit for VL02N.
The Business is: VL02N, click head toolbar PACK, then call up handling Unit.
ThanksHi sun!
I'm facing the same requirement since three days and i'm not able to get it workin.
Did you resolve the problem and if yes which function modules did you use?
Thanks in advance!
Florian
Edited by: Florian Visintin on Sep 17, 2009 10:21 AM
Edited by: Florian Visintin on Sep 17, 2009 10:22 AM -
BAPI to create tax classification for business partners
Hi all,
I'm trying to create tax classification for a business partner (situated in the tab Control) from a BAPI.
I tried to use BAPI BUTX_FRG0010_CREATE, but I always receive an error...
Does someone know how to implemnt this ? Or do I need to use another fm ?
Thanks in advance !
kr,
BjörnHello,
I should have mentioned that I'm creating Business partners in ERP, and not in CRM
The error I receive is this one :
Tax classification does not exist
The data I specify in the table is the same dataI fill in when creating a business partner manually. -
BAPI to create Billing DOC for deliveries
Hi All,
I am looking for a BAPI to create a billing document based on the Shipment number.
I found Bapi_BILLINGDOC_CREATEMULTIPLE, but not working as expected.
If anyone has used above or another bapi, please inform.
Thx-PraveenHi Praveen,
i'm using same bapi and i'm able to create the invoice for the del.doc.
for your ref. , here i'm attaching the code , please go through once.
LS_BAPIVBRK-REF_DOC = DELIVERY_NO.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = LS_BAPIVBRK-REF_DOC
IMPORTING
OUTPUT = LS_BAPIVBRK-REF_DOC.
LS_BAPIVBRK-REF_DOC_CA = '8'. Shipment
APPEND LS_BAPIVBRK TO LT_BAPIVBRK.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
TABLES
BILLINGDATAIN = LT_BAPIVBRK
ERRORS = LT_BAPIVBRKERRORS
RETURN = LT_BAPIRET1
SUCCESS = LT_BAPIVBRKSUCCESS.
after this do commit.
you might miss the document category .
Regards,
Krishna -
BAPI to create Purchase Requisition for selective BOM Material
Dear Experts,
I need ur help, Actually I am developing a module Pool prg to create Purchase Requisition for selective Bom Material .
Actually, standard T.Code (ME21N) create PR for a multiple BOM Materia lwhich are used to create a prepared material. But my requirement is PR should be generate for selective BOM material .
Multiple BOM Material is used to prepared a complete Material .
I have checked a particular BOM Material, for this matrial Purchase Requisition should be genrate.
Please suggest me the related code and Bapi which helps me .
Thanks & Regards,
SwapnikaHi
you can Use BAPI BAPI_REQUISITION_CREATE
Hope Its help You.
Regards
Ajit -
BAPIs to create sales orders for Returns and Debit Memo Request
Hi,
I have to create a sales order for document type Returns as well as a debit memo request.The BAPI 'BAPI_SALESORDER_CREATEFROMDAT2' is giving the following error message for Debit Memo Request document creation as well as for Returns.
761 Unpermitted combination of business object BUS2032 and sales doc. category L
I found BAPIs:
BAPI_CUSTOMERRETURN_CREATE for creating sales document of type ZDRE and SD document category H.
BAPI_DEBITREQUEST_PROXY_CREATE for creating sales document of type ZDDR and SD document category L.
please let me know if anybody have used them. If so what values need to be passed to I_UPLOAD_ID,I_DESTIN,I_SFA_REL parameters of BAPI_DEBITREQUEST_PROXY_CREATE. Are there any alternative solutions using the Salesorder bapi.
I have to create documents based on the flat file data no reference sales document numbers are available.
Appreciate your help..
Good Day
Regards
BhargaviLook at the code done by me
Program Name: *
SAP Name : ZAXXXXXX Version : *
Programmer : Chris Dong of ITDC *
Description : *
Includes : *
Function Modules: XX_XXXXXX *
Transactions : *
Programs : *
REPORT XXXXXXXX LINE-SIZE 80
LINE-COUNT 65
MESSAGE-ID ZA
NO STANDARD PAGE HEADING.
CLEAR l_order_partners.
l_order_partners-partn_role = 'AG'.
l_order_partners-partn_numb = '0001202491'.
APPEND l_order_partners TO li_order_partners.
CLEAR l_order_partners.
l_order_partners-partn_role = 'WE'.
l_order_partners-partn_numb = '0001202491'.
APPEND l_order_partners TO li_order_partners.
Sales document type
l_order_header_in-doc_type = 'ZDR'.
Sales organization
l_order_header_in-sales_org = '1000'.
Distribution channel
l_order_header_in-distr_chan = '01'.
Division
l_order_header_in-division = '04'.
REF DOCUMENT
l_order_header_in-REF_DOC = '9100000144'.
order reason
l_order_header_in-ord_reason = '925'.
item number
l_order_items_in-itm_number = '000001'.
material no
l_order_items_in-material = '000000000007000012'.
Qty
l_order_items_in-target_qty = '0000000000100.000'.
APPEND l_order_items_in TO li_order_items_in.
*BUS2094 Credit memo request " OSS NOTE 93091
*BUS2096 Debit memo request " OSS NOTE 93091
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
EXPORTING
ORDER_HEADER_IN = l_order_header_in
BUSINESS_OBJECT = 'BUS2096'
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = ' '
IMPORTING
SALESDOCUMENT = l_vbeln
RETURN = li_return
TABLES
ORDER_ITEMS_IN = li_order_items_in
ORDER_PARTNERS = li_order_partners
Message was edited by:
Chris Dong
null -
BAPI to create Purchse View for Article
Hi,
I have created article using MM41 and maintained BASIC DATA and ADDITIONAL BASICDATA for it. I have to now maintain PURCHASE VIEW for that article.
I am using FM WRF_MATERIAL_MAINTAINDATA_RT to create purchase view.
I am passing data to two structure INFORECORD_GENERAL STRUCTURE BAPIEINA
INFORECORD_PURCHORG STRUCTURE WRFBAPIEINE
that holds purchase view data.
BAPI returns telling article is changed. but if i go check in MM43 it is not changed.
BAPI works fine if i try to modify any data except for the above.
Can any one suggest me how to tackle this or is there any other way to create new purchse view for existing article.
Vanitha P>
Vanitha P wrote:
> Hi,
>
> I have created article using MM41 and maintained BASIC DATA and ADDITIONAL BASICDATA for it. I have to now maintain PURCHASE VIEW for that article.
>
> I am using FM WRF_MATERIAL_MAINTAINDATA_RT to create purchase view.
>
> I am passing data to two structure INFORECORD_GENERAL STRUCTURE BAPIEINA
> INFORECORD_PURCHORG STRUCTURE WRFBAPIEINE
> that holds purchase view data.
>
> BAPI returns telling article is changed. but if i go check in MM43 it is not changed.
>
>
> BAPI works fine if i try to modify any data except for the above.
>
> Can any one suggest me how to tackle this or is there any other way to create new purchse view for existing article.
>
>
>
> Vanitha P
Here a simple example code for upload Material data:
*& Form call_bapi
* text
FORM call_bapi USING is_head TYPE bapimathead
is_mara TYPE bapi_mara
is_marax TYPE bapi_marax
is_marc TYPE bapi_marc
is_marcx TYPE bapi_marcx
is_mbew TYPE bapi_mbew
is_mbewx TYPE bapi_mbewx
is_mvke TYPE bapi_mvke
is_mvkex TYPE bapi_mvkex
is_mlan type bapi_mlan.
Data: lt_mlan type table of bapi_mlan.
Append is_mlan to lt_mlan.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = ls_head
clientdata = ls_mara
clientdatax = ls_marax
plantdata = ls_marc
plantdatax = ls_marcx
* FORECASTPARAMETERS =
* FORECASTPARAMETERSX =
* PLANNINGDATA =
* PLANNINGDATAX =
* STORAGELOCATIONDATA =
* STORAGELOCATIONDATAX =
valuationdata = ls_mbew
valuationdatax = ls_mbewx
* WAREHOUSENUMBERDATA =
* WAREHOUSENUMBERDATAX =
salesdata = is_mvke
salesdatax = is_mvkex
* STORAGETYPEDATA =
* STORAGETYPEDATAX =
* FLAG_ONLINE = ' '
* FLAG_CAD_CALL = ' '
* NO_DEQUEUE = ' '
* NO_ROLLBACK_WORK = ' '
IMPORTING
return = gs_return
TABLES
materialdescription = gt_makt
* unitsofmeasure = gt_uom
* unitsofmeasurex = gt_uomx
internationalartnos = gt_mean
* MATERIALLONGTEXT =
TAXCLASSIFICATIONS = lt_mlan
* RETURNMESSAGES =
* PRTDATA =
* PRTDATAX =
* EXTENSIONIN =
* EXTENSIONINX =
* READ TABLE gt_return INTO gs_return WITH KEY type = gc_return_s.
* IF sy-subrc = 0.
IF gs_return-type EQ gc_return_s.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
ELSE.
WRITE: /.
WRITE: ls_mara-old_mat_no, gs_return-type,
' ', gs_return-message(50).
ENDIF.
CLEAR gs_return.
ENDFORM. "call_bapi -
Bapi to create finance document for a customer
Hi ,
Can any one of you please tell me how to create a finance document of type(BLART ex: Z3) for a customer with the details customer number , invoice number, Billing date(baseline date) and a price value , G/L account number, Payment terms , Payment method , Due days, Text.
Please tell me BAPI name and also tell me how to pass the data to that bapi.
Thanks in advance.
Regards,
Manju
Edited by: manj1325 on Jan 13, 2010 8:38 AMYa Thank you very much.
I will give you the fields that i need to pass please let me how to pass and where to pass.
Accounting document number (BELNR)
customer
baseline date(ZFBDT)
price(WRBTR)
G/L account number (SAKNR)
payment terms(ZTERM)
payment method(ZLSCH)
due days(VERZN)
text(SGTXT)
and document type(BLART) - Z3
Please let me.I have not time to analyse it now.Thats why i am asking.
Thanks in advance
Edited by: manj1325 on Jan 13, 2010 11:10 AM -
Is there a BAPI to create Distribution demand for BOM purchase order?
I have a scenario wherein Material# in ECC differs from that in APO. So when a BOM purchase order comes in the inbound CIF queue to APO, I am trying to create dependent demands manually reading the subsequent materials from ECC and mapping with APO data
Please do not open a new thread with the same question:
Re: Is there any FM to create manually Subsequent demands for BOM header product?
Kind Regards,
Mariano -
BAPI to create home address for ERP contact
hi all,
i am using this bapi (BAPI_ADDRESSPERS_CHANGE) to update the home address of the contact,but when the home address
is not there ,i am suppose to create the home address first,but which i am not able to do using this bapi,is there any RFC or BAPI there to create the home address first...
regards,
gouthamHi Pradeep,
You can use the BAPI BAPI_BUPA_ADDRESS_ADD. The table ADDRESSUSAGE could be used to differentiate among the different addresses of the BP. Fill the ADDRESSTYPE field in this table with the type of address you want to create. You can pass the address data in ADDRESSDATA.
<b>Reward points if it helps.</b> -
Bapi to create delivery for purchase orders
Hi Expets,
what is the bapi to create a delivery for purchase orders.urgent.please do the needful
kiran jHi,
Check below link.
Re: BAPI for Inbound delivery
Re: BAPI_OUTB_DELIVERY_CREATE_STO -
BAPI to create demands on MD04
Hello,
Can anyone direct me to a BAPI that will create the demands for a Goods Issue of a material to a subcontractor? I need the demands to show up in MD04 and ME2O.
I plan to use the FM CS_BOM_EXPL_MAT_V2 to explode a subcontracting BOM and then use a BAPI to create the demands for a GI to the subcontractor.
Any ideas?
Thanks,
MattThanks for the response.
In this case, I am trying to get a kanban that uses a scheduling agreement with subcontracting to work.
Standard SAP does not allow scheduling agreements and subcontracting to work together. The other option is a PO with a reference to a contract and that creates too many POs.
So I am working on a mod that will allow scheduling agreements to work with subcontracting for our kanbans.
Does that make sense?
Thanks,
Matt -
Problem in creating a SyncBo for Purchase Order BAPIs
Hello Everybody,
I am trying to create a smart sync application for Purchase Orders.
I have used standard bapis like BAPI_PO_GETDETAIL AND BAPI_PO_CREATE1.
I have developed my own wrapper functions using these std bapis. For the PO creation i only plan to insert the necessary and mandatory data. The problem i face is that some of the tables in the create bapi which are mandatory for a PO creation are freezed in the SyncBo.
Tables like POITEMX, POADDRDELIVERY, POSCHEDULE and structure POHEADERX are all required for the creation of a PO. Without this minimum data a PO cannot be created.
After i have created the syncBo, on the mapping screen i can only see these tables under the create BAPI. But i am not able to perform the mapping of their fields. These are non-editable or i must say that they are freezed.
And if i cannot map them then i cannot pass data for them from the client. Although i can do the mapping for the table PO_ITEM and the structure PO_HEADER.
I hope i am able to expplain my problem. Kindly get back to me if i am not clear. Any sort of help is welcome.
Thanking in advance,
Saurabh.Hi Saurabh,
Hope you are aware of the prerequisites for creating the BAPI Wrappers.
If you want to insert some data into the Business Object, then you have to include
GETLIST, GETDETAIL and CREATE Bapi Wrappers.
I think in your case,
You might not have mapped those fields in your GETLIST Bapi Wrapper.Just check whether you have mapped those fields that are necessary for PO creation in your GETLIST and GETDETAIL BApi wrapper mapping screen.
Those fields you have mapped in the GETLIST and GETDETAIL BAPI wrappers will be visible (for selection - checkboxes will be editable) in the mapping screen for CREATE BAPI Wrapper.
So first of all, you have to map fields there in the mapping screens for GETLIST and GETDETAIL Bapi Wrappers...
check this thing...
refer these links..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/introduction.html
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/bapi_wrapper_types.html
In the second link, you can see one figure, which is explaining the things that are to be satisfied by the BAPI Wrappers for SyncBO creation...
Let me know If you have doubts in the prerequisite section itself...
Regards,
Kishor Gopinathan -
BAPI - Goods receipt and then create transfer order for a production order
Hello Everyone
We need to do goods receipt and then create transfer order for a production order (Material for WM scenario)
We are using BAPI 'BAPI_GOODSMVT_CREATE'
i_items-orderid = wa_afpo-aufnr .
i_items-order_itno = wa_afpo-posnr.
i_items-mvt_ind = 'F'.
i_items-stge_loc = wa_afpo-lgort.
i_items-stge_type = '901'. "wf_styp.
i_items-stge_bin = wf_sbin.
i_items-entry_qnt = wf_qty.
i_items-entry_uom = wa_afpo-meins.
i_items-entry_uom_iso = wa_afpo-meins.
i_items-batch = wa_zmobtag-charg.
i_items-move_type = '101'.
i_items-move_reas = wl_3131.
We are passing i_items (like line of goodsmvt_item) along with other parameters to BAPI and its creating material document and Transfer order automatically. Problem is the TO created is showing destination storage bin as default storage bin( from material master).
The field goodsmvt_item-stge_bin is just changing the Source bin details. There is no field for bin in the BAPI so that we can change the Destination storage bin as per our requirement.
My requirement : Creating material doc and then TO. Material should move to specified storage bin.
Please let me know any alternate way( No BDC) so that my requirement is achieved.
Regards
SwetabhHi ,
can u check these fields ,
STGE_TYPE_PC UBTYP CHAR 3 0 Storage type for transfer posting
STGE_BIN_PC UBPLA CHAR 10 0 Storage bin for transfer posting
Regards
Prabhu
Maybe you are looking for
-
Pivot_table's percent_of_column not displayed correctly in graph
I have a pivot table with one field of value X. I duplicated that column and set 'show data as' value as percent_of_column. It works great on the table, where I see percentages figures, but the y_axis of the related chart still show the origin values
-
XML + webservices = no filtering??
Greetings! I have the following situation: I use a webservice to get my information. This returns an xml in the following state: [code]<getBronnenResult xmlns=" http://tempuri.org/" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="
-
Opening the report from forms9i
well i am new to oralce 9i what i need is to attach the reports with form on a button soo when i pressed the button the report opens either with parameters or without it help me ok
-
Intergration with XACML system
Hi, We have a policy server in the landscape, which communicates only through XACML and an SAP system with BRF+ setup. XACML is nothing but an XML message with additional declarative access control tags. We are trying to use policy server for validat
-
Macbook Pro crashing after 10.5.5 update
I updated to 10.5.5 last week and since then my macbook pro has been crashing. I am not sure the two things are related, but it wasn't crashing before then. I'm really not sure what is happening because all 4 times that it has happened so far I have