Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PO creation with call tranaction fails in a BDC program

selvakumar_mohan
Active Participant
0 Kudos

Hi All,

There is a BDC with out client which creates Purchase order with the delivery numbers.

We are using the call transaction as shown below:

CALL TRANSACTION 'ME21'USING bdcdata UPDATE synch MODE display.

Where display = 'A"

Before that the BDC_DATA is filled as follows:

PERFORM dynpro USING:
   space        space  space   'BDC_OKCODE'   'KOPF',
  'SAPMM06E'    '101'  'X'     space          space  ,
   space        space  space   'EKKO-IHREZ'   int_lips-vbeln,
   space        space  space   'EKKO-UNSEZ'   int_lips-vgbel,
   space        space  space   'BDC_OKCODE'   '/11',
* Have to code past message screen and save, despite absence of output.
  'SAPLSPO1'    '300'  'X'     space          space  ,
   space        space  space   'BDC_CURSOR'   'SPOP-OPTION1',
   space        space  space   'BDC_OKCODE'   'YES'.

Now when we try to execute the report the report shows as a error message as follows:

System messages received during processing.
          S00                  378 Start screen does not exist in batch input data
          S00                  378 Above reason code caused PO Creation to fail.

Please help me understand why this happens.

Thanks & Regards,

Selvakumar M.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Just check it out if the error is coming out only in background and not in foreground. If only in background, try recording with "Simulate backrgound processing" option.

Regards,

Chitwanjit

0 Kudos

This not only happens in the background job. Even if is ran as normal report with variant it shows this error.

Selva

0 Kudos

Have you tried it screen by screen ? Is the flow same as when recorded ? If not, recording with simulate background mode might help.

Chitwanjit

Former Member
0 Kudos

HI,

You can use the BAPI --> BAPI_PO_CREATE1 for PO creation.

Or there might be screen missing in the BDC can you show the BDC data fill program

Regards,

Madhukar Shetty