MB_CREATE_GOODS_MOVEMENT returning subrc = 5
Hiii guyz...
Need some help up here ...
In the below code ..we were calling these FMs to create and post goods movement.Here I have made a lill change, initially we were passing MIGO in parameter now I am passing MIGO_GO and now FM is returing subrc = 5 instead of 1. No other parameter has been changed.
v_imkpf-budat = budat.
v_imkpf-bldat = bldat.
v_imkpf-pr_print = migo_elikz.
v_imkpf-wever = wever.
v_imkpf-weverx = weverx.
v_imseg-global_counter = v_imseg-aufps
= v_imseg-posnr
= v_imseg-line_id
= 1.
v_imseg-called_by = 'MIGO_GO'. "Change of Jahan
v_imseg-bwart = bwart.
v_imseg-matnr = matnr.
v_imseg-werks = werks.
v_imseg-lgort = lgort.
v_imseg-charg = charg.
v_imseg-kzbew = kzbew.
v_imseg-menge = v_imseg-erfmg
= erfmg.
v_imseg-meins = v_imseg-erfme
= erfme.
v_imseg-migo_elikz = migo_elikz.
v_imseg-lgnum = lgnum.
v_imseg-hsdat = hsdat.
v_imseg-aufnr = aufnr.
v_imseg-bukrs = bukrs.
v_imseg-weanzx = weanzx.
v_imseg-wempfx = wempfx.
v_imseg-abladx = abladx.
APPEND v_imseg TO t_imseg.
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
EXPORTING
imkpf = v_imkpf
xallp = 'X'
xallb = 'X'
xallr = 'X'
ctcod = 'MIGO_GO' "Change of Jahan
IMPORTING
emkpf = v_emkpf
TABLES
emseg = t_emseg
imseg = t_imseg.
IF v_emkpf-subrc = 1.
CALL FUNCTION 'MB_POST_GOODS_MOVEMENT'
IMPORTING
emkpf = v_emkpf.
ELSE.
I tried to dubug , but couldnt figure out any thing.
Any ideas experts ..!
Thanks
Jahan.
Hi ,
Please check in table T158B is MIGO_GO entry with a movement type you passing has been maintained or not .
If you read the documenattion of FM MB_CREATE_GOODS_MOVEMENT for the Input CTCOD it mentions that entry should be in table T158 and T158B For the Transaction code you are passing .
Please reward if useful.
Similar Messages
-
Hello,
I'm working with crystal reports SP3 connected to SAP ERP. I'm already working with other reports and works fine. The problem is with one of the reports that when I refresh it it shows me this error,
CRYSTAL/OSQL_EXECUTE_QUERY returned: subrc: 4. Message: "CONTENT-2-0" has already been declared
Any idea?
Thanks & Regards
SUHi Diana,
I am also having the same problem. When we refresh a report, I added allia R/3 table in my Crystal report. I got the following error:
/CRYSTAL/OSQL_EXECUTE_QUERY returned: subrc: 4. Message: "CONTENT-4-0" has already been declared.. Line: 53. Word: 0.
Did you find a solution for your issue? If you had a solution, please share with me.
Thanks in advance,
Regards,
Venkata. -
Hi Experts,
Is the FM CONVERT_OTF_2_PDF obsolete in ECC 6? as it is returning subrc 1 (exception: err_conv_not_possible).
Also please suggest the best way to convert smartforms into PDF in ecc 6.
Helpful answers will be fully rewarded
Regards,
KHi
You will get this from the fun module of the samrtform
see the sample code
DATA: ls_job_info TYPE ssfcrescl.
call smartform invoice
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_appl_obj =
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
is_bil_invoice = ls_bil_invoice
is_nast = nast
is_repeat = repeat
importing job_output_info = <b>ls_job_info</b>
TABLES
GS_WIRING = GS_ITAB3
document_output_info =
job_output_options =
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
the Internal table ls_job_info consists of the Spool ID for the samrtform generated.
<b>Reward points for useful Answers</b>
Regards
Anji -
MB_CREATE_GOODS_MOVEMENT returning EMKPF-SUBRC = 5
Hi Guys,
Need help............!!!!!!!!!!!!!!!!!!!!!!!!!!
We are unable to delete the service entry sheet(SES) due to error message "Deficit of PU GR quantity 13 ACT" in ML81 tcode.
We found that the "Quantity Received" field under quantity tab is not updated in GR document(Mov Type 101) of SES. So, could you please suggest how to update the quantity received in the GR document. After doing this then only we can delete the SES.
We have debuggued the ML81N transaction and in this we found that function module "MB_CREATE_GOODS_MOVEMENT" is returing error EMKPF-SUBRC = 5(Where 5 indicates "No item generated").
Thanks in advance,
vinodThanks for the reply.
No. We have not posted. -
FM GUI_UPLOAD returns subrc 8
hi guys,
i have coded below but the subrc is always 8 , pls advice
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'S:\GAB\BOOK1.XLS'
filetype = 'ASC'
has_field_separator = ''
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17HI ,
Just u check the filename (Path)
filename = 'S:\GAB\BOOK1.XLS'
Or ,
you use FM " TEXT_CONVERT_XLS_TO_SAP" , instead of FM GUI_upload -
Unable to delete a file on application server
Hello Experts,
I have gone through couple of post and sample nothing worked that's the reason Iam posting a query here.
Please help me with your valuable suggestions.
I am reading a file from the application server running a BDC program to update my ztable all works fine.
now i wanted to move this file to another folder thats too working perfectly but now when i try deleting the older one it is not getting deleted.
I have closed the dataset and checked the authorization that is not a concern but still it is not getting deleted.
I have pasted the code below.
For READ and CLOSE dataset it returns subrc as 0 but after delete it returns 4.
data : mess type string.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT message mess.
IF SY-SUBRC = 0.
DO.
READ DATASET ld_file INTO wa_string.
if sy-subrc eq 0.
append wa_string to it_string.
clear wa_string.
else.
exit.
endif.
enddo.
close dataset ld_file.
delete dataset ld_file.
else.
WRITE 'Unable to open source file to move the content'.
endif.
Regards,
Ranjith NHello Mr Ghode,
Thaking you for your response on my query.
as you said to handle exception this is what i have done.
kindly verify the same would be of great help.
still iam unable to delete the file.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC = 0.
DO.
READ DATASET ld_file INTO wa_string. "LV_LINE is variable to hold line contents being read
if sy-subrc eq 0.
append wa_string to it_string.
clear wa_string.
else.
exit.
endif.
enddo.
close dataset ld_file.
if sy-subrc eq 0.
try.
delete dataset ld_file.
catch CX_dynamic_check into t_ref.
err_txt = t_ref->get_longtext( ).
endtry.
endif.
endif.
Regards,
Ranjith N -
Using save_text to change long text of sales
Hi All,
I am trying edit the long text on sales order header using FM save_text , But it does not work ,
the fm is returning subrc value 0 but the long text does nnot change i have also used commit_text .
data td1 type thead .
data : tdlin1 type table of tline.
data : wa_tdlin1 like line of tdlin1.
td1-TDOBJECT = 'VBBK'.
td1-TDname = '188238'.
td1-tdid = '0002'.
td1-tdspras = 'EN'.
td1-tdtxtlines = '1'.
wa_tdlin1-TDformat = 'U1'.
wa_tdlin1-tdline = 'this chnaged by vinay to test'.
append wa_tdlin1 to tdlin1.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
header = td1
INSERT = ' '
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
tables
lines = tdlin1
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
object = 'VBBK'
id = 'ZINT'
language = sy-langu.Hi Guys ,
I figured out the problem and its working now .
Cheers
vinay -
File to Idoc .If order is their need to send mail
Hi All,
I have scenario like this.
Sending file (order) to SAP -IDoc
I using RFC lookup .There is funtion module which has been developed in SAP R/3 it contains 5 import parameters and return SUBRC.
If the result is subrc = 4
This is the normal situation and the order / idoc should be
generated as normally.
If the result is subrc = 0
Now we are in a situation where we earlier have received this order.
Instead of generation an IDOC, an email must be send to respective persons with contents
SUBJECT: We have already received this EDI -order before.
And the mail should contain following:
We have already received this EDI-order before.
Purchase order no: <value of purchase order no>
Sold-to: <value of sold-to>
Salesorganisation: <value of salgsorganisation>
Distribution channel: <value of distribution channel>
Division: <value of division>
Note : BPM not recomended
Thanks
MMVHi,
Check the following link
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
it is possible to configure the mail adpater to send attachemnts without any ABAP coding. Just check out these
blogs by michal that deal with the mail adapter,
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
You can also check these links on SAP help for configuring the mail adapter,
http://help.sap.com/saphelp_nw04/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
Please reward points if it helps
Thanks
Vikranth -
Not able to use filed-get macro
Hi Experts,
I am trying to develop a small web aplication in integrated ITS. My web page containes a textarea and a pushbutton . In the PAI of the modulepool i have includede the below code.
lv_next = 1.
DO.
CLEAR lt_text.
REFRESH lt_text.
field-get 'GT_SCR_SPEC_NOTE' lv_next lt_text lv_datalan.
IF sy-subrc = 0.
READ TABLE lt_text INDEX 1.
gt_scr_spec_note-text = lt_text.
APPEND gt_scr_spec_note.
lv_next = lv_next + 1.
IF lt_text IS NOT INITIAL.
lv_last_not_blank = sy-tabix.
ENDIF.
ELSE.
lv_last_index = sy-tabix.
EXIT.
ENDIF.
ENDDO.
I have defined all the variables perfectly and in the front end I have included the textarea tag like this
<textarea style="font-family:courier;font-size:11px;"
id="GT_SCR_SPEC_NOTE:132[]" name="GT_SCR_SPEC_NOTE:132[]"
cols="40" rows="4" wrap="physical" title="`#AREA_INFO`">`
repeat with r in GT_SCR_SPEC_NOTE;write (r, "\r\n");end
`</textarea>
When I reied to debug the program from the front end, when the control comes to the field-get macro it is going to the FM ALEWEB_GET_CONTEXT in that the parameters are passed correctly like
FIELDNAME = GT_SCR_SPEC_NOTE
GT_SCR_SPEC_NOTE = 1
In this FM there is a call to another remote FM ALEWEB_GET_CONTEXT_EXT this FM is raising an exception saying "invalid_index" ( sy-subrc = 2). But the fieldindex field is filled with value 1 when this FM is called. I could not get into this FM as it is a RFC.
can anybody please let me knoe what might be the problem (or) if you have any sample code for transferring the data from the web to the r/3, please provide me with the sample code.
thanks
sankarHi,
I have a similar issue, with integrated ITS on SRM 5.0 in a migration project. When I try to register the certificate into USREXTID, before was implemented by the next steps:
1.- field-get '~http_auth_cert' 1 usercert_base64_c_tab certlen.
2.- CALL 'SNC_ABAP_INFO' ID 'OPCODE' FIELD get_cert_info
ID 'CERT' FIELD usercert_base64
ID 'CERTLEN' FIELD certlen
ID 'SUBJECT' FIELD subject
ID 'ISSUER' FIELD issuer
ID 'SNUMBER' FIELD serialno.
But, now the call to makro field-get not work whit the param '~http_auth_cert' , and I have to pass the value DN of the certificate (CN=name- NIF xxxxxxxy, OU=xxxxxxx, OU=xxxxxx Clase x CA, O=xxx, C=xx), and works fine executing the next ALEWEB_GET_CONTEXT function. Then the call to system function 'SNC_ABAP_INFO', returns subrc 300.
In this version, the standar service certmap do it similar.
Sorry, can anybody help me.
Tx and regards. -
Creating new record in infotype during BADI
Hi all,
We want to use the BADI HRPAD00INFTY "Update / Infotype maintenance" for trigering an automatic creation of some infotype records using FM HR_INFOTYPE_OPERATION.
The creation should only happen when a new record of infotype 2001 subtype GT01 is created.
Every time when we try something we get an error on the first insert we do using the FM.
The Enqueue goes fine (returns subrc = 0) but when doing the insert with the FM we get the error "EPG 428A complex application error has occurred" in the return.
We checked the data that we're passing thru the FM and there everything is fine.
Is it possible that due to the lock of the original save is generating we can't insert anything else and how can we work around this problem?
We also have this problem when using the user exit and we tried to do a submit to another report but there we can't even make the lock.
Regards,
OlivierForum post in ABAP, General: Infotype reecord creation in a BAdI - Issue
Infotype 0008 reecord creation in a BAdI - Issue
Reward Points if useful. -
Hi master
Sir
I use enter_query through button and give 10 in deptno textbox
But I execute_query through button no give result
An use form menu then give result easily what happen
Enter_query code
Go_block(emp);
Enter_query;
execute_query code
Go_block(emp);
execute_query;
and
execute_query code
execute_query;
and how use option button
please give me idea
thanking youHi Karen,
We have just run into this issue...trying to find out more, but the Crystal Report developer stated...
"When I alias a table in crystal and use a field from that alias I get the following error:"
Database connector error: /CRYSTAL/OSQL_EXECUTE_QUERY returned: subrc: 4. message "CONTENT-0-0" has already been declared.
Was this the same OSQL_EXECUTE_QUERY error you received? and by chance did you get it resolved.
Also having the resource go through the checks on the transports per Ingo.
Thanks.
Kevin -
Idoc syntx error me21 , abap proxy call transaction
Hi Experts,
I am struck with the below problem, could you please shed some light on the issue, appreciate your help and rewarded.
scenario:
XI sends NEW PO message to abap proxy, in abap proxy we populate bdc_tab
and call ME21 as below
CALL TRANSACTION 'ME21' using bdc_tab mode 'N' update 'S' messages into messtab.
problem:
EKSEKS01 idoc is getting created with syntax error status code :26 in ECC5.0
only 5 sigments are generated in the idocs. the three segments ( E1PISHO, E1PISIO,E1PISSO not generated).
after transaction executed it returns subrc 1001, msgid--> ME, MSGNO --> 218.
Thanks In Advance.
Ranjit.Hi Atish and Nishant,
Thanks much for the immediate response.
1.Would like to know what is the mandatory data to be passed for PO creation in BDC table.
2. Is there any user exit or where the idoc creation happens during me21 execution.
I have verified the po in we02 , as before mentioned the three sigments are not getting created and i am not sure the reason.
Note: We didnot have any output configured in ECC 5.0 for this idoc to be created.
I am really not able to locate in debug mode FOR ME21, where this ekseks01 idoc getting created and triggered.
Appreciate your help.
Thanks in Advance.
Ranjit. -
File not creating in AL11 wen executing in Background
Hi,
I have written code to upload some data to Appln server(AL11). When i execute in foreground, file is creating. But wen i execute in background, i couldnt find that file in the path which i have given.
Since we cant debug the program in Background, i dont know whether OPEN DATASET returns SUBRC = 0 or not. I even checked with the Path thr AL11. The same path is accessible too..
Plz help me out for this.
Thanks,
RameshRamesh,
You can debug a background job.
go to sm37 and select the job and type /JDBG in the command prompt.
search in sdn on how to debug a background job
Thanks
Bala Duvvuri -
Control Authorisation Access based on Planning type in Flexible SOP
hi,
How can we control MC93 and MC94 access based on Planning type for different users?i.e only certain Planning types allowed for one user.Hello
I would like to do the same...
So far the only thing I can find is enhancement MCP20005 which allows you to extend authorization check for planning. The planning type is available in this function module and if you return subrc ne 0 authorization is denied.
Hope you find this helpful.
Thanks,
Heidi -
higurus,
while iam processing BDC session system is crashed iwant toknow howmanyrecords have successfully uploaded. how about doing it.how to resehedule the failed ones.
does call transaction methos returns SY-subrc orsession method returns explain.
regards.
Due points will begiven.Hi,
call transaction method returns sy-subrc value
but session will not return subrc value.
error records can
be again reprocessed in session method using
session name.
Using call transaction If any error occurs you
can store the recorss in internal table and
send this records to BDC session by
calling BDC_open_group,BDC_insert,BDC_close_group
Error Analysis and Restart Capability
Unlike batch input methods using sessions, CALL TRANSACTION USING processing does not provide any special handling for incorrect transactions. There is no restart capability for transactions that contain errors or produce update failures.
You can handle incorrect transactions by using update mode S (synchronous updating) and checking the return code from CALL TRANSACTION USING. If the return code is anything other than 0, then you should do the following:
write out or save the message table
use the BDCDATA table that you generated for the CALL TRANSACTION USING to generate a batch input session for the faulty transaction. You can then analyze the faulty transaction and correct the error using the tools provided in the batch input management facility.
also check link
http://help.sap.com/saphelp_nw2004s/helpdata/en/69/c2501a4ba111d189750000e8322d00/frameset.htm
regards
amole
Maybe you are looking for
-
LR 3.6 - Rename Photos Issue - Win 7
It is my understanding that when you rename a photo in LR the name should also change in the root folder. However this does not seem to be happening, I have checked the name in Lightroom and it has changed, ie. family_trip_100 then I go into the fold
-
Outlook E-Mail View - Task toolbar - Calendar show more days
Hi In Outlook 2013 you can enable the Calendar View on the right side of the Mail View: Here you can see the calendar and the (cut off) text (on top of People panel) "You have nothing else scheduled today". This calendar panel shows only appointments
-
What does "Easily import photos from other applications" really mean?
What does "Easily import photos from other applications" really mean in the Lightroom 4 features list? I also see it stated as "...from other software" as well. Yes, I understand the LR can import from Elements libraries but can't find any reference
-
Hi, I have report on a cube which when execute vit all main characteristics(highest level char[plant] to lowest level[material] chars) like plant, external-material grp, material type, project-plant and material the report vil come vit correct value
-
Trouble downloading latest update to itunes
I'm trying to download the latest update to itunes on my laptop (Windows) and the only way I can see how to do it is to download itunes all over again. Please direct me on how to update the latest update. Thank you in advance